Bug 4573 - Hide/protect filtering of xattrs by name
Summary: Hide/protect filtering of xattrs by name
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.0
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
: 5300 (view as bug list)
Depends on:
Reported: 2007-04-28 09:58 UTC by Matt McCutchen
Modified: 2020-07-08 02:58 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Matt McCutchen 2007-04-28 09:58:22 UTC
Users who use xattrs for many different purposes are likely to want to preserve some xattrs but not others.  Thus, it would be nice to have a name-based hide/protect filtering system for xattrs just like the ones for files.  Filters could be specified with an --xattr-filter option; I see no need to add corresponding syntactic-sugary --xattr-{in,ex}clude{,-from} options.

For example, if src/ has been indexed by Beagle and I want to copy it to dest/, copying over all xattrs except the Beagle ones, I could run:

rsync -aX --xattr-filter='H user.Beagle.*' src/ dest/
Comment 1 Lukasz Stelmach 2008-03-03 06:31:14 UTC
*** Bug 5300 has been marked as a duplicate of this bug. ***
Comment 2 Erik Logtenberg 2010-11-28 08:10:09 UTC
I would like to second this request, especially to be able to use comment #2 from this bug: https://bugzilla.samba.org/show_bug.cgi?id=6546
Comment 3 Wayne Davison 2020-07-08 02:58:59 UTC
The 'x' modifier was added a while back to make a filter rule apply to xattr names instead of file names.