Re: copy

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




I want to copy all the following files/folder/subfolders under /usr/local/apache/htdocs to a remote server within this directory /var/www/html/
Am I correct with this command, or far away offff

tar zcvf - /usr/local/apache/htdocs | ssh root@xxxxxxx <mailto:root@xxxxxxx> "cat > /var/www/html/htdocs.tar.gz"

Thanks

rsync over ssh is good for network copies as it preserves permissions nicely if you ask it

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux