Complex includes/excludes with rsync

Posted by brianmathis on Server Fault See other posts from Server Fault or by brianmathis
Published on 2010-06-10T22:50:58Z Indexed on 2010/06/10 22:54 UTC
Read the original article Hit count: 154

Filed under:

I'm trying to work out the rsync filter syntax to perform complex include/excludes, and trying to achieve the following:

Include / Exclude /home Include /home/user1/*

I've tried many variations on the filter syntax, and despite reading the man page many time, I cannot get this sort of effect. Rsync filters seem to be very powerful, and I find it hard to believe they couldn't handle a common scenario such as this.

© Server Fault or respective owner

Related posts about rsync