1 |
On Jan 24, 2006, at 11:46 AM, Tom Smith wrote: |
2 |
|
3 |
> John Jolet wrote: |
4 |
> |
5 |
>> |
6 |
>> On Jan 24, 2006, at 11:20 AM, Tom Smith wrote: |
7 |
>> |
8 |
>>> Jeff wrote: |
9 |
>>> |
10 |
>>>> Hey guys. |
11 |
>>>> |
12 |
>>>> I've got this big fat backup server with no space left on the hard |
13 |
>>>> drive |
14 |
>>>> to store a tar file. I'd like to pipe a tar through ssh, but not |
15 |
>>>> sure |
16 |
>>>> what the command would be. Something to the effect of: |
17 |
>>>> |
18 |
>>>> # cat /var/backup | ssh backup.homelan.com 'tar data.info.gz' |
19 |
>>>> |
20 |
>>>> So that, the data is actually being sent over ssh, and then |
21 |
>>>> archived on |
22 |
>>>> the destination machine. |
23 |
>>>> |
24 |
>>>> Help! |
25 |
>>>> |
26 |
>>>> :-) |
27 |
>>>> |
28 |
>>>> |
29 |
>>> Not possible. What you want is more along the lines of AFS, NFS, |
30 |
>>> SMB, or |
31 |
>>> the like. |
32 |
>>> |
33 |
>> |
34 |
>> WRONG. I do it all the time. |
35 |
> |
36 |
> Ok,. my bad. (Open mouth, insert foot. :-D ) |
37 |
> |
38 |
> Being a *nix junkie, I tend to do some things old school--that is, |
39 |
> there |
40 |
> are specific tools that are (dare I say) more specialized to such a |
41 |
> task. You know... SSH = Secure SHell, SCP = Secure CoPy, SFTP = Secure |
42 |
> FTP... So I had never really looked into using the "ssh" program for |
43 |
> copying files between servers--it's always been more of a telnet-like |
44 |
> application for me. |
45 |
> |
46 |
hmmm, old school, eh? I was doing that tar trick about 10 or 11 |
47 |
years ago. |
48 |
you HAVE to do that if you have no room to complete the tar file on |
49 |
the source, THEN transfer it. it's quicker than scping a lot of |
50 |
files and then tarring them up on the destination, especially if THAT |
51 |
doesn't have room for both the source files and the tar. I did |
52 |
extensive performance testing for database migrations about 5 years |
53 |
ago and what I said was by far the most efficient, timewise (though, |
54 |
I didn't simply redirect to a file, but dd of=filename) |
55 |
> -- |
56 |
> gentoo-user@g.o mailing list |
57 |
> |
58 |
|
59 |
-- |
60 |
gentoo-user@g.o mailing list |