[SunHELP] tar copy to remote box
Chad Kellerman
ckellerman at alabanza.com
Wed Sep 11 11:28:03 CDT 2002
Markham,
I don't use rsh too often but it may be easier with ssh:
example
cd /home
/usr/local/bin/tar -cfpz - ./ | ssh host '/usr/local/bin/tar -C /home
-xfpz -'
make sure the tar on the "to" server offers the z option in tar also.
It may be better to use the full path
chad
On Wed, 11 Sep 2002 12:02:31 -0400
"Markham, Richard" <RMarkham at hafeleamericas.com> wrote:
> I have executed the following using the latest GNU tar
>
> tar czvf - . | rsh host 'todir && tar zxBpf -'
>
> it appears the copied files are in tact but I am getting
> the following error consistenly:
>
> gzip: stdin: decompression OK, trailing garbage ignored
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
>
> Would like to know if this indicates a potential problem
> and weather I need to adjust my method.
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list