Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following rsync command:

0 0  * * *  rsync -av --delete /media/VIDEOS/ /media/lacie1/backup/videos/

I want to set it so instead of doing a replication like what it's doing now, it does a normal backup and only deletes file from the destination only after they haven't been found on the source for X days (like 7 days). This is to give a larger window of recovery if files go missing, but without keeping loads of duplicate files as the files being backed up get moved around a lot.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

I wouldn't reinvent the wheel; for example rdiff-backup is rsync based and can do what you need, among many other things.

share|improve this answer
    
brilliant stuff! –  David Jul 28 '11 at 15:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.