[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: Two-way Sync of Directories - how? (rsync?)
From:       Stephen Liu <satimis () icare ! com ! hk>
Date:       2004-03-15 7:39:49
Message-ID: 200403160030.56998.satimis () icare ! com ! hk
[Download RAW message or body]

- snip -
> > Is the option
> > -P  --partial  -- progress
> > means 'incremental'    ???
>
> "-P" is the same as specifying both "--partial" and "--progress".
> "--progress" means to show a progress meter.  Normally, if you
> interrupt rsync while it is transferring a file, rsync will delete the
> partially transferred file.  If you give the "--partial" option, it
> will not do that.
>
> The advantage of specifying "--partial" is that you can interrupt it
> in the midst of transferring a 1G file, and then you can resume the
> transfer later.
>
> > What will be difference between
> > './ $remote:$directory'  and  '$remote:$directory/'
>
> This question does not make sense.  You should ask for the difference
> between './ $remote:$directory' and '$remote:$directory/ .'; note the
> trailing period.
>
> If you say "rsync a b" then this means copy from a to b, if you say
> "rsync b a", then this means copy from b to a.  In the above case, "a"
> was "." and "b" was "$remote:$directory" ...
>
> Explaining the trailing slash is more difficult.  I just remember a
> rule of thumb: if you want to copy directories with rsync, always
> specify a trailing slash.  On both the source and the destination.  Of
> course, "man rsync" has the full story...

Hi Kai and folks,

Thanks for your advice.

B.R.
Stephen

_______________________________________________
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"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic