From c6b74962dfe9cdc5649508b29901e558a56d32e6 Mon Sep 17 00:00:00 2001 From: darkdragon-001 Date: Mon, 1 Jun 2020 11:58:21 +0200 Subject: [PATCH] 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. --- doc/040_backup.rst | 6 ++++++ doc/manual_rest.rst | 4 ++++ 2 files changed, 10 insertions(+) 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 -------