RE: copy folder to remote server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux