True, but the problem is you have to remember which folder was last used.. I currently use a similar setup to sync my home directory on my laptop and desktop, but I can modify one of the two at a time, and keep any of a changes, as the next rsync makes sure that /A matches what /B has, without checking which is newer. Thus the question is, can rsync, or something else, check which is newer, and use that file, rather than just saying /A is the source, and /B is the destination? I'd love to know a better solution! On Tue, 2002-12-17 at 20:58, Matt Alexander wrote: > On Tue, 17 Dec 2002, Kurt Granroth wrote: > > > Does anybody know of a tool that will keep two directories totally in sync > > but not in real-time? Basically, I want to have two directories /A and /B > > that every time they are synced (maybe once an hour), they will be > > identical. Changes can happen on either /A or /B. > > Hmm... so if /A/myfile is modified and then 5 minutes later, /B/myfile is > modified, which myfile would you choose to keep? I think the only way to > go both ways is if you don't modify the same files in each directory. In > which case, you could use rsync. > > > Now rsync is great for one-way updates. If, say, all changes are only done > > to /A than rsync is perfect for keeping /B in sync. However, if you start > > deleting files, then rsync doesn't know what to keep and what to delete. > > rsync can handle deleted files with the --delete option. If /A/myfile was > deleted, then when you ran rsync going from /A to /B, then /B/myfile would > be removed. Likewise for any files deleted from /B when going from /B to > /A. > ~M > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- --Eric Andresen ndiin@asu.edu