Re: SSH scripting

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
my fav way of doing it:

ssh -e none username@host "tar zcvf - /home/me" | tar zxvf -

This is especially useful if you want to mirror a hard disk over the
n/w. most linux distros come with sshd installed...


Quoted text here. Click to load it

Re: SSH scripting

ash wrote:
Quoted text here. Click to load it

Use "rsyne -e ssh -avH" where possible: rsync has some nice options to
delete extraneous files at the remote location, and has some nice checksum
utilities that tar doesn't. You can also set up an rsync service on the
remote server if you want to rely on host-based access rather than SSH for
something that lives in a specific subdirectory: tar really doesn't have
that kind of control of the remote insallation directory unless you start
setting up chroot cages.

Site Timeline