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.

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? –  ring0 Mar 19 '13 at 5:39

1 Answer 1

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.