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

On the server I'm making every day a backup with rdiff-backup like: rdiff-backup /home/ /backup/home

Then every week I want to make a rsync backup offside with sshfs like:

rsync -avz /home/server/backup/home /backup/server-home/

This is giving me the following errors:

Fatal Error: Previous backup to /backup/server-home/. seems to have failed.
Rerun rdiff-backup with --check-destination-dir option to revert directory to state    before unsuccessful session.

Does anybody have a good solution to deal with this errors/situation?

*2x edit for typo's

share|improve this question
    
Can you confirm the error "Previous backup..." is actually from rdiff-backup, not rsync? – ringø Mar 19 '13 at 5:39

Try using the "--delete" option: this causes rsync to delete files from the destination directory if they no longer exist in the source. Also, it's possible that "-H" is required (to preserve hard links)

share|improve this answer

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.