On Tue, Aug 12, 2003 at 07:34:29PM +1000, Shaun Oliver wrote:
> hi, I wanna mirror the entire contents of my home dir on one
>  shell to another.
> I have 2 remote hosts both with the same username.
> how can I accomplish this with scp
> more to the point? can I accomplish this with scp?
> I need to keep my directory structure intact as the remove host I
> wanna mirror from is constantly beins used as a place for me to serv
> web pages and run eggdrop bots.
> thanks in advance.

My preferred way to do this sort of thing is with rsync-over-ssh, e.g.
    rsync -ave ssh path/ remote:path/

In this case,
    rsync -ave ssh ~ remote:
would probably do what you want.

Check the rsync man page for details.

-Andrew.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to