Thanks for suggesting ### section headers, fatmac. My hope for the"number of hashes" suggestion was to visually emphasize optional vs advisable vs necessary exclusions.
I agree that section headers are helpful, but only to a point -- after which, they begin to seem too restrictive.
In my use, I've found that a ---DO NOT EDIT ANYTHING ABOVE THIS LINE--- approach, with optional items grouped further down the list... became a hassle.
When grouping items based on {to save space} {privacy} {system will recreate these each boot} {system will recreate if/when needed} too often a given item seems to 'overlap', defying placement in just one group.
We would honor comments both before and after the file names.
That's interesting. I don't think I've ever tried tacking on end-of-line comments. I've just placed my comment line(s) immediately above the associated pattern line.
Placing comments end-of-line would reduce my snapshot exclusion list quite a bit.
Reading"file names" in the post I've quoted reminds to mention confusion introduced by mix-n-match terminology.
In my post above, I was careful to write"Each item (aka path, rule, pattern, regex pattern) in an excludes file"
because a given item may result in the exclusion of
{one specific file}, or {a directory}, or {everything beneath the named directory, but not the directory itself} or {all files with matching names}, or...
Pick a card, any card. Throughout the docs (and discussions) we need a consistent name/term for"a non-comment, non-blank, line within an excludes file".
Separately, typing"snapshot excludes file" (or"snapshot exclusions list") seems awkwardly verbose, yet necessary, with multiple exclusion lists in the mix.
We should try to make it as easy for the user as possible and then work around that.
Without inline commentary, the user probably won't realize that new, empty, the top-level dirs 'media, proc, sys, tmp' et al
are created in the working directory... and is left wondering"Why do 'swapfile' and 'live' items lack tailend slash-asterisk compared to the others?"
The default lists currently contain only a few dozen lines. These can be easily grouped, and commented.
I was suggesting expansion of the default lists, so that they contain additional, initially-outcommented, items
in order to convey recommendations and to illustrate useful regex-based patterns (relevant, useful, patterns. Just uncomment to activate)
I don't know if combining common-excludes with a specific $PROGRAM-excludes will be easier for the user
but I would hate to have four different lists that are almost the same.
Back in 2012 (?) I posted"Consider the status quo, from a user perspective" and I spelled out (walked through) the scenario of"not being able to see the forest through the trees":
(I'm explaining, not ranting)
Find/open antixsnapshot... find/open the antix-common script which is"sourced" by antixsnapshot... figure out"who da hell defines 'du_excludes', and where"...
Ultimately, I reached the conclusion that the antixsnapshot mechanism wasn't usable for me (wasn't acceptable, didn't produce a desired result)
due to hard-coded exclusions stipulated in the"shared" (focused on remastering) exclusions list.
Under this status quo, user expects, but cannot acheive:
snapshot == faithful copy of the running system
We can also have a .orig copy of each file that is read-only
That sounds like a good idea, along with advising user to backup his customized list(s).