[CentOS] rsync question
Kuang-Chun Cheng
kcc1967 at gmail.com
Tue Aug 5 05:47:26 UTC 2008
On Tue, Aug 5, 2008 at 1:35 PM, Mag Gam <magawake at gmail.com> wrote:
> Hi All,
>
> I am trying to understand the purpose of rsyncd. Why does it exist?
> Why not just use rsync ad-hoc or via script?
The rsyncd is optional. I did not use it by myself, so can't comment on that.
>
> Also, to a more serious note. I need to keep a filesystem on 1 server
> and another server synced by.
> What is the best way to do this? I want to have /source and /target to
> be exactly the same. I don't want any extra files in /target. I want
> the timestamps to be the exact same in /target. Does anyone have a
> good rsync arguments I can use? I have been using -avzl but I was
> wondering if there was anything better.
You can try
rsync -avz --delete /source/ /target/
KC
>
>
> TIA
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
More information about the CentOS
mailing list