Aug 22

rsync has very good exclusion support, which can come in handy for files that you really don’t care about sending to another host.  For example, lets say you wanted to create the /tmp directory on a remote node, but you didn’t want to copy any of the files over. You just wanted the directory to be there.

+ /tmp
- **/tmp/**

Put that into a file called, oh lets see /etc/rsync.exclude, and then call rsync with

rsync -auv –delete –exclude-from=/etc/rsync.exclude $SOURCE $DESTINATION

party on Garth.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.