2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

Update 040_backup.rst

Changes proposed in #2763:

- Adding `RESTIC_CACHE_DIR` environment variables (introduced in #2425 for Unix and #2607 for Mac, Win).
- Adding used system-wide environment variables with links to the corresponding section.
This commit is contained in:
darkdragon-001 2020-06-01 11:58:21 +02:00 committed by Leo R. Lundgren
parent 2c72924ffb
commit c6b74962df
2 changed files with 10 additions and 0 deletions

View File

@ -379,6 +379,7 @@ environment variables. The following list of environment variables:
RESTIC_PASSWORD_FILE Location of password file (replaces --password-file)
RESTIC_PASSWORD The actual password for the repository
RESTIC_PASSWORD_COMMAND Command printing the password for the repository to stdout
RESTIC_CACHE_DIR Location of the cache directory
AWS_ACCESS_KEY_ID Amazon S3 access key ID
AWS_SECRET_ACCESS_KEY Amazon S3 secret access key
@ -417,4 +418,9 @@ environment variables. The following list of environment variables:
RCLONE_BWLIMIT rclone bandwidth limit
In addition to restic-specific environment variables, the following system-wide environment variables
are taken into account for various operations:
* ``$XDG_CACHE_HOME/restic``, ``$HOME/.cache/restic``: :ref:`caching`.
* ``$TMPDIR``: :ref:`temporary_files`.
* ``$PATH/fusermount``: Binary for ``restic mount``.

View File

@ -361,6 +361,8 @@ lists all snapshots as JSON and uses ``jq`` to pretty-print the result:
}
]
.. _temporary_files:
Temporary files
---------------
@ -378,6 +380,8 @@ instead of the default, set the environment variable like this:
.. _caching:
Caching
-------