search for: sync0

Displaying 1 result from an estimated 1 matches for "sync0".

Did you mean: sync
2011 Jul 01
1
keep 2 dirs in sync
...d so I keep a few dirs sync'd between the two. I have a docs dir where I may be modifying files, adding files, renaming files and deleting files on *either* host. I have a nightly cron script (run on hosta) sync the docs dir on the two hosts that does; rsync -au --delete hostb:docs/ docs # sync0 rsync -au --delete docs/ hostb:docs # sync1 which takes care of modified files on either host - last mod wins. That works. Problem is adding, deleting and renaming files. I'm sure most know the problem here but I'll illustrate it to be clear; If I add a new file91 on hostb then the nigh...