Hi, Dan!
I'm used to Sun Solaris and currently I'm booted into Windoze instead of
Linux, so I may be wrong... but shouldn't the command format be
tar cf - *
i.e., "create tar archive (c) by tar:ing all the files in the current
directory (*) and send the result to standard output (f -)"? Works on my Sun
box...
Secondly, ssh doesn't transfer files, does it? So if you should pipe the
output to anything it should be scp, shouldn't it? Though I'm not certain
that is the way to do it. My guess is you'd need to write a small shell
script that tar:s your files, then copies the tar archive to the remote
machine with scp and finally deletes the archive on the local machine.
Anyone with a better idea?
Solong,
Olof
----- Original Message -----
From: "Dan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 14, 2000 2:14 PM
Subject: tar via ssh?
> Ok, this is driving me crazy, I want to tar a bunch of dirs/files/etc and
> port it through ssh on linux.
>
> I tried tar -cvf - | ssh [EMAIL PROTECTED]
>
> and it doesn't work
>
> I tried the above with "dd of=/home/user/backup"
> and it doesn't work.
>
> tar -cvf -
> doesn't seem to work at all, linux 2.2.17
> tar -cvf * or . first command doesn't work,
> second command creates a file called "backup" which is just a directory
> list of all the files. useless!
>
> this should be simple, but I can't get it working.
>
> all I want is to have the tar file exist on the remote box.
>
>