Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ssh and tar combined?
Date: Fri, 30 Dec 2005 16:16:53
Message-Id: 20051230160903.4aadea60@krikkit.digimed.co.uk
In Reply to: Re: [gentoo-user] ssh and tar combined? by John Jolet
1 On Fri, 30 Dec 2005 09:44:09 -0600, John Jolet wrote:
2
3 > > tar outputs to stdout be default, so "-f -" is redundant, as is the
4 > > use
5 > > of dd. All you need is
6 > >
7 > > ssh hostname tar cf /source/path >backup.tar.gz
8 > >
9 > hmm, I'm not sure this behavior is consistent across all versions of
10 > tar and all versions of ssh.
11
12 The part about stdout being the default is consistent, -f overrides the
13 default. To maintain consistency across ssh versions, it may be safer to
14 use
15
16 ssh >backup.tar.gz hostname "tar cf /source/path"
17
18
19 --
20 Neil Bothwick
21
22 Windows95 - crash compatible on Windows 3.x

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] ssh and tar combined? Alexander Skwar <listen@×××××××××××××××.name>