[gentoo-user] ssh and tar combined?

2005-12-27 Thread Mick
Hi All, One day I hope to learn how to use ssh and the associated commands. So far I have been struggling just to copy a file from one box (192.168.0.3) to another (192.168.0.2). This is what I get, but and since I can't find the 'copied' file . . . I suspect it fails. I don't understand why: ==

Re: [gentoo-user] ssh and tar combined?

2005-12-27 Thread Lares Moreau
On Tue, 2005-12-27 at 23:53 +, Mick wrote: > Hi All, > > One day I hope to learn how to use ssh and the associated commands. So far > I have been struggling just to copy a file from one box (192.168.0.3) to > another (192.168.0.2). This is what I get, but and since I can't find the > 'copied

Re: [gentoo-user] ssh and tar combined?

2005-12-27 Thread Ow Mun Heng
On Tue, 2005-12-27 at 23:53 +, Mick wrote: > > Ideally I would like to connect and tar | scp the directories/files from one > box to another in a single motion. Any advice to help me understand how to > make this work, or why the above attempt fails would be much appreciated. Locallly : t

Re: [gentoo-user] ssh and tar combined?

2005-12-28 Thread Alexander Skwar
Mick schrieb: > Ideally I would like to connect and tar | scp the directories/files from one > box to another in a single motion. Use ssh instead: tar | ssh [EMAIL PROTECTED] "cat > foo.tar" Alexander Skwar -- gentoo-user@gentoo.org mailing list

Re: [gentoo-user] ssh and tar combined?

2005-12-28 Thread John Jolet
On Dec 28, 2005, at 2:04 AM, Alexander Skwar wrote: Mick schrieb: Ideally I would like to connect and tar | scp the directories/ files from one box to another in a single motion. Use ssh instead: tar | ssh [EMAIL PROTECTED] "cat > foo.tar" or ssh sourcebox "tar -czvf - /path/to/be/backed

RE: [gentoo-user] ssh and tar combined?

2005-12-28 Thread Michael Kintzios
> -Original Message- > From: John Jolet [mailto:[EMAIL PROTECTED] > Sent: 28 December 2005 14:22 > To: gentoo-user@lists.gentoo.org > Subject: Re: [gentoo-user] ssh and tar combined? > > > > On Dec 28, 2005, at 2:04 AM, Alexander Skwar wrote: > > &

Re: [gentoo-user] ssh and tar combined?

2005-12-30 Thread Neil Bothwick
On Wed, 28 Dec 2005 08:22:26 -0600, John Jolet wrote: > or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd > of=target.tar.gz tar outputs to stdout be default, so "-f -" is redundant, as is the use of dd. All you need is ssh hostname tar cf /source/path >backup.tar.gz -- Neil Bothwic

Re: [gentoo-user] ssh and tar combined?

2005-12-30 Thread John Jolet
On Dec 30, 2005, at 9:21 AM, Neil Bothwick wrote: On Wed, 28 Dec 2005 08:22:26 -0600, John Jolet wrote: or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd of=target.tar.gz tar outputs to stdout be default, so "-f -" is redundant, as is the use of dd. All you need is ssh hostname

Re: [gentoo-user] ssh and tar combined?

2005-12-30 Thread Neil Bothwick
On Fri, 30 Dec 2005 09:44:09 -0600, John Jolet wrote: > > tar outputs to stdout be default, so "-f -" is redundant, as is the > > use > > of dd. All you need is > > > > ssh hostname tar cf /source/path >backup.tar.gz > > > hmm, I'm not sure this behavior is consistent across all versions of >

Re: [gentoo-user] ssh and tar combined?

2005-12-30 Thread Alexander Skwar
Neil Bothwick schrieb: > On Wed, 28 Dec 2005 08:22:26 -0600, John Jolet wrote: > >> or ssh sourcebox "tar -czvf - /path/to/be/backed/up" | dd >> of=target.tar.gz > > tar outputs to stdout be default, Not always. > as is the use > of dd. Yes. Alexander Skwar -- Alexander Skwar -- gentoo-us

Re: [gentoo-user] ssh and tar combined?

2005-12-30 Thread Alexander Skwar
Neil Bothwick schrieb: > On Fri, 30 Dec 2005 09:44:09 -0600, John Jolet wrote: > >> > tar outputs to stdout be default, so "-f -" is redundant, as is the >> > use >> > of dd. All you need is >> > >> > ssh hostname tar cf /source/path >backup.tar.gz >> > >> hmm, I'm not sure this behavior is cons

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread Neil Bothwick
On Fri, 30 Dec 2005 18:58:17 +0100, Alexander Skwar wrote: > > tar outputs to stdout by default, > > Not always. From man tar -f, --file [HOSTNAME:]F use archive file or device F (default "-", meaning stdin/stdout) So "-f -" is unnecessary, but harmless. -- Neil Bothwick teG I sdrawkcaB

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread John Jolet
On Dec 31, 2005, at 8:26 AM, Neil Bothwick wrote: On Fri, 30 Dec 2005 18:58:17 +0100, Alexander Skwar wrote: tar outputs to stdout by default, Not always. From man tar -f, --file [HOSTNAME:]F use archive file or device F (default "-", meaning stdin/stdout) So "-f -" is unnecessary, but

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread Steve Evans
On Saturday 31 December 2005 14:26, Neil Bothwick wrote: > On Fri, 30 Dec 2005 18:58:17 +0100, Alexander Skwar wrote: > > > tar outputs to stdout by default, > > > > Not always. > > From man tar > > -f, --file [HOSTNAME:]F > use archive file or device F (default "-", meaning stdin/stdout) > > So "

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread John Jolet
The file /etc/default/tar contains a list of tape devices. So on Solaris 2.8 if -f is not specified and $TAPE is not set, which it isn't by default, then tar will use a tape device *not* stdin/stdout Steve -- Thanks, Steve. This is the point I was trying to make, but I'm at home with on

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread Neil Bothwick
On Sat, 31 Dec 2005 08:53:45 -0600, John Jolet wrote: > But you are correct, today this -f - is unnecessary. > Tomorrow? who knows what decisions might be made regarding default > output. My point is, being precise costs nothing... nothing but a > few keystrokes. That's a fair point. The

Re: [gentoo-user] ssh and tar combined?

2005-12-31 Thread Alexander Skwar
Neil Bothwick schrieb: > On Fri, 30 Dec 2005 18:58:17 +0100, Alexander Skwar wrote: > >> > tar outputs to stdout by default, >> >> Not always. > > From man tar So, why do you suppose that the command is called "tape (file) archiver"? While you're right as far as GNU tar is concerned, you're wr