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 |