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 -f - is

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

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 wrong as far

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 tar

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 tar and all

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 consistent across all

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/up

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: Mick schrieb: Ideally I would like

[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 : tar