2000-09-08-20:22:23 root:
> I am very new to rsync and want to use it for mirroring purpose
> using ssh.

My favourite!

> Both the systems (linux) do have rsync (command) and ssh already
> installed but couldn't get rsync run properly. Ssh is
> functioning good.

When you say ssh is functioning good, do you have it set up with
public keys so no password is required? That's how I always use it.

> I tried running the following command but in vain.
> 
> % rsync -avz remote:home/test/abc/  /home/test/def

Unless you've set the RSYNC_RSH environment variable to "ssh", that
command is incomplete; you might want to try

        mkdir /home/test/def
        rsync -avze ssh remote:/home/test/abc/. /home/test/def/

BTW, you left off the leading slash on the path in the remote end.

Oh, one other tweak, I have gotten into the habit of rsyncing a
directory named "." from the src end into a directory on the dst
end, named with a trailing slash; this saved me from repetition of a
mistake I made a couple of times that ended up eradicating huge
tracts of files (misusing --delete, not testing with -n before
invoking).

-Bennett

PGP signature

Reply via email to