Thanks for this script @JoeUnraidUser!
Quick question: Is there a reason a cache is used for this rather than running Gzip on the original files? I'd prefer not to have a complete copy of my docker files in addition to the archive, but before I modify the script I want to make sure I'm not missing something that makes the cache necessary. Thanks for any help you can provide!
EDIT: After using the script a bit further, it seems like the cache is to enable as minimal downtime to the docker as possible. After the first cache is created, each subsequent "caching" only copies the changed/new files to the cache which means the docker is only offline for a short period of time. Then the Gzip is run on the cached files while the docker is already back up and running. If there's another reason I'm not seeing, please let me know. Thanks again!