Hi,
i'm trying to figure out if there's an easy way to skip several subtrees
with xsfdump without the need of specifying a bunch of subpaths on the
command line.
I've read man pages, and excerpting:
[snip]
Excluding individual files
Occasionally it is desirable to be able to exclude partic-
ular files or directories from the dump. The -s option
can be used to limit the dump to a specified directory,
and the -z option can be used to exclude files over a par-
ticular size. Additionally, when xfsdump is run with the
-e option individual files can be "tagged" so that xfsdump
will not include them in a dump. Files are tagged by
assigning that file an extended attribute with the name
"SGI_XFSDUMP_SKIP_FILE". This can be done with the
attr(1) command:
$ attr -s "SGI_XFSDUMP_SKIP_FILE" -V "" file
To remove the attribute:
$ attr -r "SGI_XFSDUMP_SKIP_FILE" file
It should be noted that xfsdump will not check directories
for this attribute. It should also be noted that this use
of extended attributes is not the same as that used by the
chattr(1) command.
[snip]
Is there a way to achieve this task at filesystem level. If not, will it
be useful and possible to make xfsdump recognize a sort of SGI_XFSDUMP_SKIP_DIR
attribute, skipping the whole subtree (a sort of attribute-coded -s option)?
Thanks in advance,
-m
|