Rsync backup to tar or gzip archive

Les Mikesell lesmikesell at gmail.com
Tue Jan 24 22:40:30 UTC 2006


On Tue, 2006-01-24 at 16:18, Mikkel L. Ellertson wrote:
> If you just want to
> create an archive on the remote machine, then use:
> 
> tar -cf - <some files> | ssh <remote machine> "tar -cf <archive>"

You don't need tar on the other end - you just want to save
the output to a file:
tar -cf - . | ssh remote_machine  'cat >/path/to/file.tar'
(sends the current directory)
Don't forget to quote the command or the > redirection would
happen locally.

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the fedora-list mailing list