blynch at ameliaschools.com
Mon Jul 21 17:09:46 UTC 2008
On Mon, July 21, 2008 12:14 pm, Mad Unix wrote:
> How would you do the
> tar zcvf - /usr/local/apache/htdocs | ssh root at 220.127.116.11
> <mailto:root at 18.104.22.168>
> "cat > /var/www/html/htdocs.tar.gz"
> with rsync and the to have it in the crontab to run everyday.
> On Mon, Jul 21, 2008 at 5:20 PM, Tom Brown <tom at ng23.net> wrote:
>> I want to copy all the following files/folder/subfolders under
>>> /usr/local/apache/htdocs to a remote server within this directory
>>> Am I correct with this command, or far away offff
>>> tar zcvf - /usr/local/apache/htdocs | ssh root at 22.214.171.124 <mailto:
>>> root at 126.96.36.199> "cat > /var/www/html/htdocs.tar.gz"
>> rsync over ssh is good for network copies as it preserves permissions
>> nicely if you ask it
>> CentOS mailing list
>> CentOS at centos.org
> Your search - madunix - did not match any documents.
> CentOS mailing list
> CentOS at centos.org
If you want a simple rsync then you can do
rsync -av /usr/local/apache/htdocs/ -e root at 188.8.131.52:/var/www/html/htdocs/
If you want to to compress it first then do
tar zcvf htdocs.tar.gz /usr/local/apache/htdocs
rsync -av /usr/local/apache/htdocs/htdocs.tar.gz -e
root at 184.108.40.206:/var/www/html/htdocs/
More information about the CentOS