diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 6d55843be..2e9cafef0 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -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``. diff --git a/doc/manual_rest.rst b/doc/manual_rest.rst index 729158360..931476cb1 100644 --- a/doc/manual_rest.rst +++ b/doc/manual_rest.rst @@ -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 -------