3 ms·
append-only backups: It supports this with the REST backend. flagging any directory for exclusion directory exclude with a tag file inside it: It has this. It'
by mike-cardwell 7y ago
append-only backups: It supports this with the REST backend.
flagging any directory for exclusion directory exclude with a tag file inside it: It has this. It's called --exclude-caches and will exclude any directory with a "CACHEDIR.TAG" file in with the correct content.
- Erlich_Bachman 7y agoOk, that's certainly a good thing that it does support it now. Borg also allows to specify the name of that file, it does not restrict it to being "CACHEDIR.TAG". Giving an option to support both "CACHEDIR.TAG" and any other filename is a good thing. (One might want to exclude other directories that way, unrelated to cache directories.)
- mike-cardwell 7y agoCACHEDIR.TAG seems to be based on a spec that multiple pieces of software are starting to use. Give it a quick google. I can't think of any reason why you would need to customise the name of the file, but I'm sure there are use cases out there.
- deleted 7y ago[deleted]
- nine_k 7y agoThis is also a problem. I might like to mark certain things as not backed up because they contain sensitive or otherwise unrelated information. But I might not want other tools treat them as cache data, that is, transient and safe to delete.
- mike-cardwell 7y agoThen you can just add `--exclude filename` to your backup job.
- kilburn 7y agoActually, "--exclude-caches" in restic is just an alias equivalent to the following [1]: --exclude-if-present "CACHEDIR.TAG:Signature: 8a477f597d28d172789f06886806bc55" You can specify the tag filename, and optionally append ":initial content" (the tag file must start with this content to avoid false tagfile matches). [1] https://restic.readthedocs.io/en/stable/040_backup.html#including-and-excluding-files https://restic.readthedocs.io/en/stable/040_backup.html#incl...
- Erlich_Bachman 7y agoLike I wrote in the original comment, borg's additional functionality is that it supports both CACHEDIR.TAG and any other filename if that is what user wants.
- kilburn 7y agoAs I wrote in the previous comment, you can do that in restic with the "--exclude-if-present" option where you can specify whatever filename you want as well as optionally some content it must start with to avoid false positives.
- Erlich_Bachman 7y agoNow I finally get it, thank you :). So Borg and Restic are basically on par considering that feature after all!