Remote Backup Using tar Over ssh

Kurt Wall kwall
Sun Aug 7 19:04:39 PDT 2005


On Sun, Aug 07, 2005 at 05:11:25PM -0700, Ken Moffat took 36 lines to write:
> Kurt Wall wrote:
> 
> >Hello, list,
> >
> >I needed to move a directory tree from one machine to another on my 
> >local network. Interested in doing so in as few steps as possible,
> >I found a tar over ssh invocation worked quite handily:
> >
> >tar cf - /old_web | ssh root at luther tar xf - /var/www/htdocs/old

[...]

> Clever.
> Question. Would
> rsync -e ssh -avz  /old_web  luther:/var/www/htdocs/old/
> be basically the same?

I think so, except that I didn't specify encryption (rsync's "z" option)
with either tar or ssh.

Kurt
-- 
What this world needs is a good five-dollar plasma weapon.


More information about the Linux-users mailing list