Two-way Sync of Directories - how? (rsync?)
Steven N. Fettig
freebsd at stevenfettig.com
Sun Mar 14 14:32:55 PST 2004
Bill Campbell wrote:
> <snip>
>
>I would do this with two rsync runs from one machine
>
>cd $directory
>rsync -e ssh -vaurP ./ $remote:$directory
>rsync -e ssh -vaurP $remote:$directory/ .
>
>Better yet, set up the directories in the rsyncd.conf files on
>each machine:
>
>cd $directory
>rsync -vaurP ./ ${remote}::dir_module/
>rsync -vaurP ${remote}::dir_module/ .
>
>Bill
>--
>INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
>UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
>FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
>URL: http://www.celestial.com/
>
>More laws, less justice. -- Marcus Tulius Ciceroca (42 BD)
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>
I don't know why I didn't think of reversing the src and dest input on
the command... Thanks!
Steve Fettig
More information about the freebsd-questions
mailing list