Originally Posted by
Nightwalker07
This comment is the only thing thats got me worried about this backup method. I mean with a backup method the sole thing you need to know is that its integrity is good, can you shed any more light on what might be kept under /sys and what it might break? Fair enough I have tested this technique on fairly fresh installations, but im worried about the likes of my well-matured MythTV box, I need to know that the backups im doing of that are working if the day ever comes when I need to rely on them.
Is the '-anchored option' regards the tar following links in subdir's under sys? any info would be appreciated.
Well I take back some of what I wrote! Here, however, is what "man tar" says:
Code:
--anchored
force exclusion patterns to match initial subsequences
--no-anchored
allow exclusion patterns to match any substring (the default)
I interpret this to mean that "--exclude=/sys" will by default exclude anything whose path contains the string "/sys", such as "/usr/include/sys/foo", unless you supply the --anchored option. I just test this hypothesis, and it is wrong. If you do "--exclude=sys" then you will indeed exclude things like "/usr/include/sys/foo", but it seems "--exclude=/sys" (with the leading forward slash) is treated differently.
So my earlier post was wrong. I do stand by my statement that the options and documentation for tar are so hairy that it is almost impossible to know what it will do, without just testing or reading the source.
Bookmarks