Removing outdated files
Laurent Pointal
laurent.pointal at limsi.fr
Tue Jan 23 03:53:55 EST 2007
More information about the Python-list mailing list
Tue Jan 23 03:53:55 EST 2007
- Previous message (by thread): Removing outdated files
- Next message (by thread): beep or sound playing under linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jan Danielsson a écrit : > Hello all, > > I have a backup system which produces files using the following pattern: ... > > Obviously, I have little need for *all* those files. What I want to > do is to delete old files according to this pattern: > > - Keep all backup files which are two weeks, or less, old > - If backups are more than two weeks old, then keep only the latest > one for each week. > - If backups are more than two months old, then keep only the latest > one for each month. > - If backups are more than two years old, then keep only the latest > one for each year. You should take a look at snapy, AFAIR it does things like this to manage snapshot backups (with cp [+rsync] [+ssh]). http://www.flibuste.net/libre/snapy/
- Previous message (by thread): Removing outdated files
- Next message (by thread): beep or sound playing under linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list