1 |
Neil Bothwick schrieb: |
2 |
> On Fri, 30 Dec 2005 09:44:09 -0600, John Jolet wrote: |
3 |
> |
4 |
>> > tar outputs to stdout be default, so "-f -" is redundant, as is the |
5 |
>> > use |
6 |
>> > of dd. All you need is |
7 |
>> > |
8 |
>> > ssh hostname tar cf /source/path >backup.tar.gz |
9 |
>> > |
10 |
>> hmm, I'm not sure this behavior is consistent across all versions of |
11 |
>> tar and all versions of ssh. |
12 |
> |
13 |
> The part about stdout being the default is consistent, |
14 |
|
15 |
No, it's not. By default, tar writes to a tape device. |
16 |
|
17 |
> To maintain consistency across ssh versions, it may be safer to |
18 |
> use |
19 |
> |
20 |
> ssh >backup.tar.gz hostname "tar cf /source/path" |
21 |
|
22 |
Uh? |
23 |
|
24 |
alexander@blatt /tmp $ ssh > t server "tar cf /tmp/." |
25 |
alexander@server's password: |
26 |
tar: Cowardly refusing to create an empty archive |
27 |
Try `tar --help' or `tar --usage' for more information. |
28 |
|
29 |
Ah, You wanted to leave out the "f" :) |
30 |
|
31 |
But why should 'ssh > backup.tar hostname "tar c /source/path"' |
32 |
be more consistent across *SSH* versions than |
33 |
'ssh hostname "tar c /source/path" > backup.tar'? |
34 |
Isn't that just a question wrt. the shell? |
35 |
|
36 |
Alexander Skwar |
37 |
-- |
38 |
gentoo-user@g.o mailing list |