I always do a mutual sync by issuing always "rsync -avuzb src dest" and then "rsync -avuzb dest src". If I use "rsync -avuzb ", already existing files are renamed to ~ on the destination, due to the b option. Now assume I have two files file and file~ on both, src and dst. The mutual sync now renames file~ to file~~ on each side. Although this is logically correct is is not practically desireble for me, since this means that the ~~~~~-files are piling up at each backup. Is there a way to only have one backup-file?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Try this additional parameter:

--exclude '*~'

to make:

rsync -avuzb --exclude '*~' src dst

Hope that helps.

link|improve this answer
Thanks. It's so embarrassingly obvoius. – Christian Jun 30 '10 at 8:57
feedback

Your Answer

 
or
required, but never shown

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