Or you could come with an aging script that deletes the oldest directory after a certain amount of time. For example, if dir1 was created more than 30 days ago, delete it to make room for dir31. Depends how your backup script actually works though.
I don't see the point of deleting all occurances of file3 if it no longer exists in the last directory. Isn't that the point of backups? So that you can go back in time to before a file was deleted so that you can recover it?
|