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
feature request: --no-cache
equivalent
#49
Comments
I see existing cache commits are fairly recent, and indicate "no-cache" might be in the works Line 54 in 6ed332c
|
With the merge of #33 there already is a Might be that that merging #33 without noticing you messed up your test - sorry for this. In rustic, I implemented the following logic:
So I think the only irritation was that you (accidentially) did run You can simply remove the dir that is shown at |
If you think that the current logic is too irritating, please tell me. This was just the (maybe stupid) idea to check for existing cache dirs and if one exists, always use it! |
I saw merges being done in between my issues and browsed the code way too briefly. Neither Possible improvement: I have discovered that
The choice to quietly reuse/hijack restic caches gave me a brief pause. While I liked the idea - this makes end-to-end cross-validation between restic and rustic possible while halving the footprint on disk, sharing caches between "production" (whatever that means for the user of backup software) and possibly unstable development should be their conscious choice. To that end I propose |
Thank you very much for your feedback! About UX I opened #50. For the caching options, I'll change |
It would be super helpful if rustic would gain a
--no-cache
equivalent for its commands. Caching index and snapshots is not a big deal, but data is the source of problems which prevents me from troubleshooting #48 further.Why? Caching makes sense when one works with a slow or expensive backend. When reads are cheap, as it might be the case of local filesystem access, implementing caching that actually speeds things up even further at scale is a difficult ask.
Local storage is performant enough in terms of performance and capacity to forego caching completely for the repo referenced in #48. A
--no-cache
mode would reduce CPU overhead and, more importantly, significantly reduce flash wear on every check or prune.The text was updated successfully, but these errors were encountered: