Matteo Centonza wrote:
> 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
I do not know of any way you can do that at the filesystem level. If one changed
the appropriate code, it should be possible to make xfsdump recognize an
attribute
and skip the whole subtree, similar to the file option. I do not know if any one
in the community has tried to change the code to do that yet.
There are no plans at the moment to add that feature to xfsdump but it may be
added in the future if we get the resources.
Thanks,
Kihonge JN
|