Gentoo Archives: gentoo-user

From: John Jolet <john@×××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ssh and tar combined?
Date: Fri, 30 Dec 2005 15:51:03
Message-Id: F9F59094-7A43-4807-87DF-5E8E8FB709C9@jolet.net
In Reply to: Re: [gentoo-user] ssh and tar combined? by Neil Bothwick
1 On Dec 30, 2005, at 9:21 AM, Neil Bothwick wrote:
2
3 > On Wed, 28 Dec 2005 08:22:26 -0600, John Jolet wrote:
4 >
5 >> or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd
6 >> of=target.tar.gz
7 >
8 > tar outputs to stdout be default, so "-f -" is redundant, as is the
9 > use
10 > of dd. All you need is
11 >
12 > ssh hostname tar cf /source/path >backup.tar.gz
13 >
14 hmm, I'm not sure this behavior is consistent across all versions of
15 tar and all versions of ssh. I could be wrong, but the process I
16 outlined will work on linux, aix, solaris, bsd, at least (those are
17 the ones i've tested). but hey, I could be wrong...just because
18 method a works doesn't mean it's the only method...that's the beauty
19 of unix.
20 >
21 > --
22 > Neil Bothwick
23 >
24 > Whats the difference between a magician and a brothel?
25 > One has a cunning array of stunts,
26
27 --
28 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ssh and tar combined? Neil Bothwick <neil@××××××××××.uk>