Remote Backup Using tar Over ssh
Kurt Wall
kwall
Sun Aug 7 22:34:23 PDT 2005
On Sun, Aug 07, 2005 at 09:13:14PM -0400, Bruce Marshall took 33 lines to write:
> On Sunday 07 August 2005 06:12 pm, 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
>
> Maybe rsync?
>
> rsync -auvzr -e ssh /old_web/ luther:/var/www/htdocs/old/
>
> Note the trailing slashes. Required.
Which is the reasons rsync annoys me, despite its utility.
> Also good for incremental updates by adding --delete
Good point. I won't be doing any updates of this particular tree.
Kurt
--
"What is the robbing of a bank compared to the FOUNDING of a bank?"
-- Bertold Brecht
More information about the Linux-users
mailing list