[Bug 10621] New: Allow Filter Rule Imports Relative to Importer
samba-bugs at samba.org
samba-bugs at samba.org
Wed May 21 01:39:36 MDT 2014
https://bugzilla.samba.org/show_bug.cgi?id=10621
Summary: Allow Filter Rule Imports Relative to Importer
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: samba at haravikk.com
QAContact: rsync-qa at samba.org
Okay, so currently when forming an import rule to add filters to a sync, rsync
only supports either a path local to the source directory, or a system level
absolute path.
For example, say I have filter rules located at:
/Users/haravikk/FilterRules/Common.rules
/Users/haravikk/FilterRules/Mac.rules
If I wanted Mac.rules to include the contents of Common.rules I would need to
add a rule like so:
. /Users/haravikk/FilterRules/Common.rules
This is because a local rule won't work, i.e:
. Common.rules
What I would like to propose is a new option for the import rule that tells
rsync to lookup the path relative to whatever is importing it. If this is a
file then it will be the file's parent directory, while if it is a --filter
option for an rsync command, then this will be relative to the current working
directory.
This ought to make it easier to work with modular filter rules that are broken
down by various criteria, rather than bundled together into one huge file. In
the above example, I could also add a Windows.rules file, and a Linux.rules
file and so-on, as these would allow me to easily change the rules I use to
account for common files on different OSes.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the rsync
mailing list