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 at 1.2.3.4 "cat > /var/www/html/htdocs.tar.gz" Thanks -- Your search - madunix - did not match any documents. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080721/149a3f4b/attachment-0001.html>
On Mon, July 21, 2008 10:09 am, Mad Unix wrote:> 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 at 1.2.3.4 "cat > > /var/www/html/htdocs.tar.gz" > > Thanks > > -- > Your search - madunix - did not match any documents. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >You can also do a scp -prC /usr/local/apache/htdocs/ root at 1.2.3.4:/var/www/html/htdocs/ if you do not need to archive the files. Bo
> 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 at 1.2.3.4 > <mailto:root at 1.2.3.4> "cat > /var/www/html/htdocs.tar.gz" > > Thanksrsync over ssh is good for network copies as it preserves permissions nicely if you ask it