One-step tarring/scp (was Re: [ale] hardware to back up a Dell laptop)

Geoffrey lists at serioustechnology.com
Wed Jan 9 16:23:59 EST 2008


Jeff Hubbs wrote:
> Bob Toxen wrote:
>> 1. If it supports Ethernet, back up over your LAN.  You could use tar to
>>    stdout piped to ssh to cp stdin over the network.
> I've been doing this thing where I first tar up a machine's filesystem 
> and scp off the file to somewhere.  I'd love to be able to do that in 
> one action such that I don't have to write to any disk as an 
> intermediate step.  What would that look like?

If I understand what you're asking:

cd to the directory you want to backup.

tar -cvzf - . | ssh id at machine "cat > file.tgz"

-- 
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
  - Benjamin Franklin



More information about the Ale mailing list