samba-bugs at samba.org
2014-May-21 07:39 UTC
[Bug 10621] New: Allow Filter Rule Imports Relative to Importer
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.
Seemingly Similar Threads
- [Bug 10449] New: Allow testing of supported parameter(s)
- [Bug 9864] New: Allow permanent compression of destination files
- [Bug 9814] New: --cache parameter for storing recent file data
- [Bug 14371] New: Combined Exclude & Protect Filter Type
- [Bug 14081] New: --copy-command option for specifying custom file copying behaviour