Hm I think we can just add an option to set a (Perl style) regex to filter the pathnames to be synced, that's not hard to implement and flexible enough to accommodate the use cases you mention (even combined).
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.
Not a priority for RHS 2.1.0, but we need the bug open nevertheless.
*** Bug 852028 has been marked as a duplicate of this bug. ***
*** Bug 826764 has been marked as a duplicate of this bug. ***