Thanks, but I am really looking for a bidirectional sync. For deleting I may be able to come up with a way to compare file listings and dates. Do something like if filex is older than last sync time and removed then remove file on other server. But I would like an more elegant "easy" way of doing this. On 11/6/07, JD Austin wrote: > > Shawn Badger wrote: > > I need to sync a folder on 2 servers, sounds easy, but the catch is that > they basically have to mirror each other. So if I deleted a file on one it > goes away on the other, but If I add a file it shows up on both. The catch > is that a file could be added or deleted form either system. Is there a way > to make rsync catch these changes and make sure they get mirrored? The other > option I am thinking about involves running a script that copies new files > to a "holding area" and point both servers to the holding area for the sync > source. the downside to that is I don't know how to handle deletes. I > haven't had much luck with Google on this yet, but I am still looking. > > ------------------------------ > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings:http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > I do that in one direction on one of my servers; I left the extra fluff > in case you nee to exclude files or limit the bandwidth: > rsync -avz --delete --rsh=ssh --stats --progress > --password-file=/root/.rsyncpw > --bwlimit=500 --exclude='*Norton\ Ghost\ Backup*' > root@192.168.0.103:/newdrive/* > /newdrive > > -- > JD Austin > Twin Geckos Technology Services LLC > email: jd@twingeckos.comhttp://www.twingeckos.com > phone/fax: 480.288.8195 > > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss >