> -----Original Message-----
> From: John Jolet [mailto:[EMAIL PROTECTED] 
> Sent: 28 December 2005 14:22
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] ssh and tar combined?
> 
> 
> 
> On Dec 28, 2005, at 2:04 AM, Alexander Skwar wrote:
> 
> > Mick schrieb:
> >
> >> Ideally I would like to connect and tar | scp the directories/ 
> >> files from one
> >> box to another in a single motion.
> >
> > Use ssh instead:
> >
> > tar | ssh [EMAIL PROTECTED] "cat > foo.tar"
> >
> or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd  
> of=target.tar.gz
> 
> this will ssh into the other box, create the tar to stdout, pipe  
> stdout from the ssh stream to dd, who's default input is stdin, and  
> output the file.

Thanks Alexander, I'll try it out when I get home.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list

Reply via email to