-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change mtime to mmin in find command? #4
Comments
@rossica , I've changed the code to mmin, see https://github.com/Mondane/timebackup/tree/feature/4_mtime-to-mmin . You are welcome to test it too. |
Reading the stackexchange question and looking at the script code, this looks like a good change. |
@Mondane One more thing: You might want to store "60*24" in a constant for better readability in all the places where you have doing multiplication for -mmin. |
I'm noticing in my deployment that the daily rotation folder is deleting every other backup. |
I'll have a look into it sometime. It's a part I find difficult to wrap my 2016-01-10 21:16 GMT+01:00 rossica [email protected]:
|
Is this package ready for use by non technical users? |
@OferLapid since this is unrelated from mmtime, see #5 |
Another thing I've noticed with the mmin change is that if I go a long period of time without a backup, the script deletes ALL previous versions and only keeps the latest one. This is generally undesirable because some history is preferred over none, and my understanding of the purpose of deleting older backups is to save space. |
Based on http://unix.stackexchange.com/questions/92346/why-does-find-mtime-1-only-return-files-older-than-2-days
I'm thinking of changing the mtime parameter in the find commands to mmin to have a better selection of files. This would hopefully improve the hourly and daily rotate so not several backups from the same day are saved.
@rossica , what do you think about this?
The text was updated successfully, but these errors were encountered: