mirror of
https://github.com/restic/restic.git
synced 2025-08-15 03:47:28 +00:00
Clarify cache location documentation
PR #1287 changed the default cache location on darwin and windows. Update the changelog and manual to reflect the new behavior. Since the cache hasn't been included in an official release yet, I've just changed the main cache changelog entry. Fixes #1309
This commit is contained in:

committed by
Alexander Neumann

parent
abe6e0d22d
commit
5ab9e12b46
@@ -267,12 +267,16 @@ Caching
|
||||
|
||||
Restic keeps a cache with some files from the repository on the local machine.
|
||||
This allows faster operations, since meta data does not need to be loaded from
|
||||
a remote repository. The cache is automatically created, usually in the
|
||||
directory ``.cache/restic`` in the user's home directory. The environment
|
||||
variable ``XDG_CACHE_DIR`` or the command line parameter ``--cache-dir`` can
|
||||
each be used to specify where the cache is located. The parameter
|
||||
``--no-cache`` disables the cache entirely. In this case, all data is loaded
|
||||
from the repo.
|
||||
a remote repository. The cache is automatically created, usually in an
|
||||
OS-specific cache folder:
|
||||
|
||||
* Linux/other: ``~/.cache/restic`` (or ``$XDG_CACHE_HOME/restic``)
|
||||
* 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 cache is ephemeral: When a file cannot be read from the cache, it is loaded
|
||||
from the repository.
|
||||
|
Reference in New Issue
Block a user