1 |
On Jan 24, 2006, at 9:10 PM, Ow Mun Heng wrote: |
2 |
|
3 |
> On Tue, 2006-01-24 at 17:23 +0000, Francesco Riosa wrote: |
4 |
>> Jeff wrote: |
5 |
>>> Hey guys. |
6 |
>>> |
7 |
>>> I've got this big fat backup server with no space left on the |
8 |
>>> hard drive |
9 |
>>> to store a tar file. I'd like to pipe a tar through ssh, but not |
10 |
>>> sure |
11 |
>>> what the command would be. Something to the effect of: |
12 |
>>> |
13 |
>>> # cat /var/backup | ssh backup.homelan.com 'tar data.info.gz' |
14 |
>>> |
15 |
>>> So that, the data is actually being sent over ssh, and then |
16 |
>>> archived on |
17 |
>>> the destination machine. |
18 |
>>> |
19 |
>> tar -zcf - /var/backup | ssh backup.homelan.com "( cat > |
20 |
>> data.info.gz )" |
21 |
>> |
22 |
> |
23 |
> There's another way. This assumes your originating server's CPU is |
24 |
> slow/precious and you have a 16 way node on a backup server (HAHA!!) |
25 |
> |
26 |
> tar cf - /var/backup | ssh backup.homelan.com "gzip -c > |
27 |
> filename.tar.gz" |
28 |
> |
29 |
> But you transfer the stream uncompressed, so more bits get |
30 |
> transferred. |
31 |
> |
32 |
you're kidding, right? Unless you've got a PII on the originating |
33 |
end and are using gigabit ethernet between the two nodes, compressing |
34 |
the data before transmission will almost always be faster. I tested |
35 |
this scenerio extensively about 3 years ago, using linux, aix, and |
36 |
solaris hosts. In no case was transferring uncompressed data faster |
37 |
than compressing (at least to some degree) the data on the |
38 |
originating server. And frankly, no matter what you do...wouldn't |
39 |
you hope ALL the bits get transferred? :) |
40 |
> |
41 |
> |
42 |
> |
43 |
> -- |
44 |
> Ow Mun Heng |
45 |
> Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM |
46 |
> 98% Microsoft(tm) Free!! |
47 |
> Neuromancer 11:10:24 up 11:00, 6 users, load average: 1.08, 1.04, 1.15 |
48 |
> |
49 |
> |
50 |
> -- |
51 |
> gentoo-user@g.o mailing list |
52 |
> |
53 |
|
54 |
-- |
55 |
gentoo-user@g.o mailing list |