Added option -b to enable image backups pre pull. (#242)

* added new variables, options and setup

* datecheck function rewrite

* moved the cleanup and prune logic to always run. Changed some wording on messages.

* added function to print currently backed up images

* Patched bugfix to not recreate stopped containers

* changed the RepoDigests grab and logic

* Moved the backup - cleanup to always trigger if -b option is used. Added -p&-b warning.

* version bump and readme fixes
This commit is contained in:
mag37 2025-12-12 11:12:57 +01:00 committed by GitHub
parent f1cc8190f9
commit 8ee5575081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 140 additions and 40 deletions

View file

@ -28,6 +28,7 @@
#CurlRetryCount=3 # Max number of curl retries
#CurlConnectTimeout=5 # Time to wait for curl to establish a connection before failing
#DisplaySourcedFiles=false # Display what files are being sourced/used
#BackupForDays=7 # Enable backups of images and removes backups older than N days.
### Notify settings
## All commented values are examples only. Modify as needed.