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

Consider marking the cache folder as a cache folder #360

Open
mikix opened this issue Aug 17, 2020 · 2 comments · May be fixed by #547
Open

Consider marking the cache folder as a cache folder #360

mikix opened this issue Aug 17, 2020 · 2 comments · May be fixed by #547

Comments

@mikix
Copy link

mikix commented Aug 17, 2020

Description of the problem

It might make users' lives easier to mark flatpak-builder’s .flatpak-builder cache directories (which understandably live outside the xdg cache locations) as cache folders via the cachedir spec: https://bford.info/cachedir/

Which basically means putting a CACHEDIR.TAG file at its root.

Once done, programs like tar, restic, borg, and deja-dup will either automatically or with-a-flag ignore your build/cache dirs.

@nanonyme
Copy link
Contributor

So essentially write file with contents Signature: 8a477f597d28d172789f06886806bc55 inside .flatpak_builder directory upon creation? Doesn't seem overly complex.

@mikix
Copy link
Author

mikix commented Oct 26, 2020

Yes exactly.

Good call, I had forgotten to mention the Signature bit

Vanadiae added a commit to Vanadiae/flatpak-builder that referenced this issue Apr 25, 2023
This makes it possible for backup software to detect and ignore the
whole folder.

Fixes flatpak#360
@Vanadiae Vanadiae linked a pull request Apr 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants