Open dionorgua opened 1 year ago
Thanks for opening the issue. Yes, this is the way rustic works at the moment. The reason is, that the exclude-if-present
uses the ignore
crate's functionality to exclude a dir with all its contents based on some condition. exclude-if-present
uses the condition that a file with the given name should be present - and in this case obviously the whole dir and also this specific file is also excluded. I don't know how to change this without either changing the ignore
crate or self-implementing the same logic...
Hi,
I'm slowly trying to migrate my homelab backup from
restic
torustic
.One of behavior difference that I don't like is
--exclude-if-present
handling:restic
stores that excluded file in snapshot. Whilerustic
doesn't. And even worse:rustic
doesn't store excluded directory itself. Presence of this file in snapshot is pretty good thing because it shows fact that directory was not empty, but was excluded due to that flag. Plus it's much easier to continue using system after restore (no need to recreate these files)rustic
correctly handles https://github.com/restic/restic/issues/2722 which is good thing!restic
:rustic
: