Gentoo Archives: gentoo-user

From: John Jolet <john@×××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ssh and tar combined?
Date: Wed, 28 Dec 2005 14:26:49
Message-Id: DF472D35-512E-401A-B5F8-AFA7674904DA@jolet.net
In Reply to: Re: [gentoo-user] ssh and tar combined? by Alexander Skwar
1 On Dec 28, 2005, at 2:04 AM, Alexander Skwar wrote:
2
3 > Mick schrieb:
4 >
5 >> Ideally I would like to connect and tar | scp the directories/
6 >> files from one
7 >> box to another in a single motion.
8 >
9 > Use ssh instead:
10 >
11 > tar | ssh user@host "cat > foo.tar"
12 >
13 or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd
14 of=target.tar.gz
15
16 this will ssh into the other box, create the tar to stdout, pipe
17 stdout from the ssh stream to dd, who's default input is stdin, and
18 output the file.
19 > Alexander Skwar
20 > --
21 > gentoo-user@g.o mailing list
22 >
23
24 --
25 gentoo-user@g.o mailing list

Replies

Subject Author
RE: [gentoo-user] ssh and tar combined? Michael Kintzios <michaelkintzios@××××××××.uk>
Re: [gentoo-user] ssh and tar combined? Neil Bothwick <neil@××××××××××.uk>