Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.