do we really need rsync for this?
root@debian:/# setfattr -n user.attr1 -v value1 ./dir/testfile
root@debian:/# getfattr -R -d ./dir/testfile >attrs.dump
root@debian:/# cat attrs.dump
# file: dir/testfile
user.attr1="value1"
root@debian:/# xattr -c ./dir/testfile
root@debian:/# getfattr -R -d ./dir/testfile
root@debian:/#
root@debian:/# setfattr --restore attrs.dump
root@debian:/# getfattr -R -d ./dir/testfile
# file: dir/testfile
user.attr1="value1"
regards
Am 26.04.26 um 22:34 schrieb Peter B. via rsync:
Hi everyone :)
I'd need to re-apply extended filesystem key-value metadata attributes
(xattrs on ZFS) from one file/folder to another.
But it's mandatory that the target "payload" (=binary file contents)
stay untouched.
Just transfer (add/merge/overwrite) the xattrs?
Using xattrs professionally for medium-to-large scale heritage and
science collections, and using rsync for /everything/ regarding
data-transfer. Thank you all so much!
Would it be possible to hire one for adding that to rsync, merging
into upstream?
What are your thoughts on this?
Thanks in advance!
Peter
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html