|
From: Rene R. <re...@gr...> - 2004-04-25 18:13:12
|
On Sun, 2004-04-25 at 18:16, Joe Zacky wrote: > >Anyway. A simple "delete after X incremental backups" would be a good > >start. X not being days, since we can be sure the backup is run every > >day, requires a little date manipulation or some other system of telling > >when and what to delete. > > > > > Here you're saying X is "how many." I'm confused, should X be number of > days or number of files? > X should be the number of backup runs. Example: Backups run on monday,tuesday,and wednesday. I have chosen to keep 20 incremental backups. 20/3 is 6.6 times one week (7 days) which gives 46.6 days to keep backups and we round the number up to 47 to be safe. 20/3 is the number of weeks times 7 is the day count. I hope this makes sense. > > > The tests I ran on 2 of my redhat systems showed that using find with > -ctime picked the dates the file was backed up. That is, not the date it > was last modified (-mtime), but the date it was rsync'd to bobs. > > I didn't realize that information was in the database. I never did > anything with the database so I wasn't thinking about it. I'll have to > play with that - I agree that sounds like the right way to find the files. It seems like I'm wrong here. Guess we could use the find method. But I'd still prefer the db method. That is better if we want to do more advanced things in the future. Cheers Rene |