I've been setting up a NAS running TrueNAS, and after getting media serving sorted out, I'm now looking at using it to backup files from my fedora desktop.
Trouble is, the TrueNAS ZFS filesystem don't know 'nuthin about all the "weird" extra file attributes (as near as I can tell, anyway).
Is there any kind of tool to just backup all the different kinds of extended attributes in a database I can use to restore them if I have to restore files or directories from the backup on the NAS? Heck, maybe just create a big shell script with all the chattr, chcon, semanage, etc. commands.
On Thu, 2020-11-05 at 09:43 -0500, Tom Horsley wrote:
I've been setting up a NAS running TrueNAS, and after getting media serving sorted out, I'm now looking at using it to backup files from my fedora desktop.
Trouble is, the TrueNAS ZFS filesystem don't know 'nuthin about all the "weird" extra file attributes (as near as I can tell, anyway).
The usual approach to that kind of situation is to archive the files you want to put on the NAS, using an archive tool that knows about Linux attributes.
e.g. tar, tar.gz
You save the archive file to the NAS, attributes don't matter with the archive file, itself.
Then on restoration, you fetch the archive file and unpack it (or browse the contents), and the files inside the archive still have the attributes you want.
I'm not sure what special attributes you're concerned about, though. If you're backing up personal data files, they don't tend to have *special* attributes.
On 06Nov2020 02:17, Tim ignored_mailbox@yahoo.com.au wrote:
I'm not sure what special attributes you're concerned about, though. If you're backing up personal data files, they don't tend to have *special* attributes.
There's lots of scope for using xattrs for tagging.
But it also souldn't like the OP may have a backup system for bulk archives which doesn't honour all the fiddly weird stuff and wants a way to apply that after a restore (or to quickly reapply after some process which is known to damage it).
Cheers, Cameron Simpson cs@cskk.id.au