Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2004 16:32:31 -0600
From:      "Steven N. Fettig" <freebsd@stevenfettig.com>
To:        freebsd@celestial.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Two-way Sync of Directories - how? (rsync?)
Message-ID:  <4054DD7F.1000502@stevenfettig.com>
In-Reply-To: <20040314201032.GA72170@alexis.mi.celestial.com>
References:  <4054B6A3.7080704@stevenfettig.com> <20040314201032.GA72170@alexis.mi.celestial.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>  
>
I don't know why I didn't think of reversing the src and dest input on 
the command...  Thanks!

Steve Fettig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4054DD7F.1000502>