Merge pull request #2425 from thiell/restic_cache_dir_env

Add support for $RESTIC_CACHE_DIR
This commit is contained in:
rawtaz authored and GitHub committed 2019-11-20 21:18:57 +01:00
commit 41fe9318b1
2 files changed
+10 -5

No files matched your search

+4 -3
View File
@@ -376,9 +376,10 @@ OS-specific cache folder:
* macOS: ``~/Library/Caches/restic``
* Windows: ``%LOCALAPPDATA%/restic``
The command line parameter ``--cache-dir`` can each be used to override the
default cache location. The parameter ``--no-cache`` disables the cache
entirely. In this case, all data is loaded from the repo.
The command line parameter ``--cache-dir`` or the environment variable
``$RESTIC_CACHE_DIR`` can be used to override the default cache location. The
parameter ``--no-cache`` disables the cache entirely. In this case, all data
is loaded from the repo.
The cache is ephemeral: When a file cannot be read from the cache, it is loaded
from the repository.