On Tue, Aug 12, 2003, Andrew Bennetts wrote: > 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/
The pure scp solution is something like: $ cd $ scp -rp . [EMAIL PROTECTED]: That is, change to your home directory and do a recurive (-r) scp that preservers permissions (-p) -Mary -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
