Difference between revisions of "RSYNC"

From The System Administrator Zone
(How do you find out what is available from a remote site?)
(How do you find out what is available from a remote site?)
 
Line 16: Line 16:
 
This would list all the anonymous rsync modules available.
 
This would list all the anonymous rsync modules available.
  
 +
== How to exclude .snapshot folders on Netapp or Pillar file servers ==
  
 +
<pre>
 +
echo ".snapshot/" > /tmp/.exclude_me
 +
</pre>
  
 +
Then simply add '''"--exclude-from /tmp/.exclude_me"''' to rsync's list of arguments.
 +
 +
You can add other directory names to the list and they will also be excluded.
  
 
[[Category:System Applications]]
 
[[Category:System Applications]]

Latest revision as of 18:31, 1 March 2013

I get connection refused?

By default, rsync uses the old Berkeley rexec commands. If rsh will not work, rsync will also fail. The fix is to tell rsync to use ssh instead.

rsync -e ssh ...

How can I copy a directory and all its contents?

rsync -rlptogv -e ssh /home/httpd/ username@example.com:/home/httpd/

Note that the trailing slash is critical!

How do you find out what is available from a remote site?

rsync speakeasy.rpmfind.net::

This would list all the anonymous rsync modules available.

How to exclude .snapshot folders on Netapp or Pillar file servers

echo ".snapshot/" > /tmp/.exclude_me

Then simply add "--exclude-from /tmp/.exclude_me" to rsync's list of arguments.

You can add other directory names to the list and they will also be excluded.