Open intgr opened 3 months ago
Thanks @intgr for opening this issue and sorry for the late reply!
I think this is somewhat related to a general overworking of how to include/exclude. I created a milestone for that: https://github.com/rustic-rs/rustic/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Overwork+includes%2Fexcludes%22
The current state is:
ignore
crate and its capabilities to include/excludeI think we should have
If you want to work on this, you are very welcome! I'll try to support as much as I can but must say that I am unfortunately a bit short on time, currently...
abilities to priorize includes/excludes
Do you have any concrete thoughts on what the configuration schema for that might look like? If we want full flexibility with arbitrary cascades of includes/excludes, seems like it could get pretty complicated. But I haven't thought much about this.
Something like git-ignore-exceptions
that I proposed above would be a step in the opposite direction?
I have tons of git repositories under my home directory, which I want to keep backed up.
I want to keep
git-ignore = true
in my settings to ignore build artifacts and most unnecessary junk in repositories.But there are certain paths, which are gitignored (I don't want to share with other developers), but still want backed up:
_local
- I often create such a directory in a repository root, which can contain partial experiments, personal notes, etc..idea
- if I ever run into a disaster recovery scenario, it would greatly speed up recovery if per-project IDE configuration (IntelliJ IDEA) is preserved.I might put in the effort to submit a PR for this, but first I want to ensure the feature makes sense to others.
I guess this would be an additional setting. Naming is a bit complicated, since it's a double negative, "git-ignore-ignores" probably wouldn't fly. 😄
I think this should only apply if a path would be matched by
glob = [...]
, but is excluded by.gitignore
. Soglob
exclude rule can still exclude_local
from a backup.Maybe
git-ignore-exceptions = ["_local", ".idea", "maybe*glob*syntax*too"]
git-ignore-override
?