-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cache handling #34
Comments
I thank you for all your comments. You clearly know what you're talking about. Would you mind create a PR or two for some of the suggestions you're making? Cheers |
How should it go in the config file? |
So according to |
I just noticed I suggest to add a warning right now that the behavior will change in a future version when one of the quoted code blocks is executed. And then just remove this code in the next bigger update. I added an issue to get a complete list of environment variables in restic/restic#2763. |
You can pass I suggest the following: env = { name: os.environ[name] for name in ['HOME','XDG_CACHE_DIR','TMPDIR'] if name in os.environ }
env = { **env, **config['environment'] } |
Optimized cache management is important to keep cloud storage costs under control.
I would like to use
--cache-dir
for all operations. Having this built-in makes sure I don't forget it for any command.The other options like
--with-cache
/--no-cache
can be specified via-- --option
if you don't want to add official support.Furthermore, behavior different from restic default should be documented:
runrestic/runrestic/restic/tools.py
Lines 89 to 92 in 7622739
The text was updated successfully, but these errors were encountered: