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:
==
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
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
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
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
> -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:
>
> &
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
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
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
>
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
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
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
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
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 "
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
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
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
17 matches
Mail list logo