[SunHELP] tar copy/extract redirected over ssh
Wed Sep 25 15:08:32 CDT 2002
I created a test script to tar off a directory to a remote box
using ssh with key authentication:
---snip---
#! /bin/ksh
SOURCE_DIR=/test
DEST_DIR=/test
DEST_HOST=testbox
/usr/local/bin/tar -cpzvf - ${SOURCE_DIR} | \
ssh ${DEST_HOST} '/usr/local/bin/tar -x -C ${DEST_DIR} -pzvf -'
---snip---
then ran the script......
/usr/local/bin/tar: Removing leading `/' from member names
test/file1
test/file2
test/file3
Authentication successful.
/usr/local/bin/tar: This does not look like a tar archive
/usr/local/bin/tar: Skipping to next header
then tar exits....any ideas?
More information about the SunHELP
mailing list