Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional support for CACHEDIR.TAG files #509

Open
vikanezrimaya opened this issue Dec 13, 2021 · 2 comments
Open

Optional support for CACHEDIR.TAG files #509

vikanezrimaya opened this issue Dec 13, 2021 · 2 comments

Comments

@vikanezrimaya
Copy link

Relevant specification: https://bford.info/cachedir/

This is a feature request for an optional configuration flag, named exclude-cachedirs (name might be changed at the discretion of impelementors), that would automatically exclude any directory containing a file named CACHEDIR.TAG with the first 43 octets consisting of the following ASCII string verbatim: (the aforementioned string is sourced from the official specification linked above, read it for more info)

Signature: 8a477f597d28d172789f06886806bc55

This tag is used by several utilities, including the Rust package manager Cargo, to mark directories that do not require any sort of backup and only contain cache data (or easily reproducible data). While one could set a nodump attribute on it, Cargo (and other utilities adhering to the specification) already express their recommendation in form of the aforementioned tag file, therefore optional support for it might prove beneficial for Tarsnap.

@cperciva
Copy link
Member

I like the concept, but I wish it were more widely used. You mention Cargo; the only place it's used on my system is fontconfig. By far the biggest caches on my system are from Thunderbird and Chromium, neither of which implement this.

I'm not saying no, but I have to admit that I'm a bit dubious about a specification from 2004 which is so sparsely used.

@vikanezrimaya
Copy link
Author

Understandable. Thankfully, this is a fairly low-priority issue for me - I don't have a lot of folders like this inside of folders that do need to be backed up, and as such I specify them manually for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants