copy folder to remote server

Paul M. Whitney paul.whitney at mac.com
Mon Jul 21 14:14:50 UTC 2008


You could just use: scp -R /usr/local/apache/htdocs userid at 1.2.3.4:/var/www/html/

Paul

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Mad Unix
Sent: Monday, July 21, 2008 10:08 AM
To: General Red Hat Linux discussion list
Subject: copy folder to remote server

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.
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list