Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] tar over ssh
Date: Wed, 25 Jan 2006 00:55:18
Message-Id: 1138149921.9073.14.camel@orpheus
In Reply to: Re: [gentoo-user] tar over ssh by Iain Buchanan
1 On Wed, 2006-01-25 at 08:55 +0930, Iain Buchanan wrote:
2 > On Tue, 2006-01-24 at 17:23 +0000, Francesco Riosa wrote:
3 > > Jeff wrote:
4 > > > Hey guys.
5 > > >
6 > > > I've got this big fat backup server with no space left on the hard drive
7 > > > to store a tar file. I'd like to pipe a tar through ssh, but not sure
8 > > > what the command would be.
9 > [snip]
10 > > >
11 > > > So that, the data is actually being sent over ssh, and then archived on
12 > > > the destination machine.
13 > > >
14 > > tar -zcf - /var/backup | ssh backup.homelan.com "( cat > data.info.gz )"
15 > >
16 > > something similar, probably is possible to avoid the use of cat bat
17 > > don't came in mind at the moment
18 >
19 > wow, I am quite blown away - not only at the fact that I just tried the
20 > above command (and it worked of course) but also that I've found a new
21 > way of doing something that I never thought of before.
22 >
23 > This is one to remember!
24
25 In fact, I just added a gentoo wiki entry, under the backup "stub":
26
27 http://gentoo-wiki.com/HOWTO_Backup#Securely_backing_up_a_filesystem_on_a_remote_machine
28 --
29 Iain Buchanan <iain at netspace dot net dot au>
30
31 Humor in the Court:
32 Q: ...any suggestions as to what prevented this from being a murder trial
33 instead of an attempted murder trial?
34 A: The victim lived.
35
36 --
37 gentoo-user@g.o mailing list