Copy all local filesystems, but ignore NFS mounts?

Wayne Davison wayned at samba.org
Thu Aug 4 02:07:03 GMT 2005


On Wed, Aug 03, 2005 at 03:27:13PM -0700, Dan Stromberg wrote:
> rsync --one-file-system --rsh=ssh / /var/ /var/run/ /tmp/
> /export/home/ /spare/ /opt/ [...]

Also, don't forget --relative (-R), or all the conents of those dirs
will end up mixed together in the same destination dir.

..wayne..


More information about the rsync mailing list