Expiration example:
- backshift --save-directory /backshift-production/save-directory --expire
- find /backshift-production/save-directory/chunks -mindepth 2 -type d -empty -mtime +60 -print0 | xargs -0 --no-run-if-empty --verbose rmdir
Notes
- The first time you run an expire, it'll ask you how long you want to keep a given file in the backshift repository. You currently must
enter the time to keep files, in units of seconds. The author likes to use 1 year, which is about 31556925 seconds.
- backshift-expire is deprecated. Please use backshift --expire instead.
- The find | xargs removes old, empty chunk directories - specifically those that haven't been modified in over 60 days.