Re: Rsync backup to tar or gzip archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



akonstam@xxxxxxxxxxx wrote:
> I agree that for backing up to a mounted filesystem archive rsync is not
> needed.
> 
> I , however, am having a blank in figuring out how to backup to a
> filesystem that is not mounted but is on another machine. It seems like
> some combination of rsync (or scp) and tar aught to be able to do
> this. But the method eludes me. I mean something other than creating
> the tar file on the local machine and then copying to a remote
> filesystem on another machine.
> 
Something like:

tar -cf - <some files> | ssh <remote machine> "tar -uf <archive>"

You will end up transferring extra files because tar on the local
machine does not know what is in the archive. 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 may need <user>:<remote machine> instead of just
<remote machine>...

You can pipe just about any command that outputs to standard out
over an ssh link to a program that accepts standard in.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux