You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of my backups older than the given DEFAULT_CLEANUP_TIME are getting removed.
It looks like at some point all backups are being touched which makes their modified timestamp to become the same time as the current backup process.
This makes the find command unable to successfully process older backups.
Summary
None of my backups older than the given
DEFAULT_CLEANUP_TIME
are getting removed.It looks like at some point all backups are being touched which makes their modified timestamp to become the same time as the current backup process.
This makes the find command unable to successfully process older backups.
find "${backup_job_filesystem_path}"/ -type f -mmin +"${backup_job_cleanup_time}" -iname "${backup_job_filename_base}*" -exec rm -f {} \;
Screenshot below
I'm not sure when the files are being touched, but I think it might be during the blobxfer sync process.
Steps to reproduce
Environment variables I have set
DEFAULT_BACKUP_LOCATION
= blobxferDEFAULT_BACKUP_INTERVAL
= 2880DEFAULT_CLEANUP_TIME
= 10080What is the expected correct behavior?
Expect backups to be removed older than the DEFAULT_CLEANUP_TIME using the
find ... -exec rm-f
command.Relevant logs and/or screenshots
Environment
Possible fixes
Instead of using the find command, actually parsing the filename would fix the problem. However I know that can be CPU heavy for some scenarios.
The text was updated successfully, but these errors were encountered: