I think where you have : tar zcvf - /usr/local/apache/htdocs | ssh root@xxxxxxx "cat > /var/www/html/htdocs.tar.gz" would need to be : tar zcvf - /usr/local/apache/htdocs | ssh root@xxxxxxx "cd /tmp/test;tar -zxf -" (to end up with /tmp/test/usr/local/apache/htdocs/* copied over) Regards, Jerry Queirolo -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list