Date: Sun, 14 Mar 2004 23:41:01 -0600 From: "Steven N. Fettig" <freebsd@stevenfettig.com> To: Stephen Liu <satimis@icare.com.hk> Cc: freebsd-questions@freebsd.org Subject: Re: Two-way Sync of Directories - how? (rsync?) Message-ID: <405541ED.3040704@stevenfettig.com> In-Reply-To: <200403152037.13184.satimis@icare.com.hk> References: <4054B6A3.7080704@stevenfettig.com> <20040314201032.GA72170@alexis.mi.celestial.com> <200403152037.13184.satimis@icare.com.hk>
next in thread | previous in thread | raw e-mail | index | archive | help
-P appears to allow you to show progress graphically with the -v switch
also chosen.
I think his example:
cd $directory
rsync -e ssh -vaurP ./ $remote:$directory
rsync -e ssh -vaurP $remote:$directory/ .
was meant to look like:
cd $directory
rsync -e ssh -vaurP ./ $remote:$directory
rsync -e ssh -vaurP $remote:$directory ./ <-- (dot)(slash) not (slash)(space)(dot)
a trailing slash copies directory contents whereas not having the slash copies that directory, too. (I.E. if I am rsyncing /home/me on two machines, /home/me will copy everything including the me directory, whereas /home/me/ will only copy the contents of me. This becomes important - as I have learned the hard way - when syncronizing two dissimilar directories - i.e. /home/me to /backup/me/date.)
hth,
Steve Fettig
p.s. I hope I got Bill's message correctly...
Stephen Liu wrote:
>On Monday 15 March 2004 04:10, Bill Campbell wrote:
>
>
>
>>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/ .
>>
>>
>
>Hi Bill,
>
>Is the option
>-P --partial -- progress
>means 'incremental' ???
>
>What will be difference between
>'./ $remote:$directory' and '$remote:$directory/'
>
>TIA
>
>B.R.
>Stephen Liu
>
>
>
>
>
>
>>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
>>
>>
>
>_______________________________________________
>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"
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?405541ED.3040704>
