From ffc5e9bd5c574158a66e8c869bccea728d24ef2e Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 16 Nov 2025 17:31:34 +0100 Subject: [PATCH] only suggest TMP as tmp dir variable on windows TMP takes precedence over TEMP. --- doc/047_tuning_backup_parameters.rst | 2 +- doc/manual_rest.rst | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/047_tuning_backup_parameters.rst b/doc/047_tuning_backup_parameters.rst index f0510a57d..f1b89a7eb 100644 --- a/doc/047_tuning_backup_parameters.rst +++ b/doc/047_tuning_backup_parameters.rst @@ -104,7 +104,7 @@ pack size in MiB. Restic currently defaults to a 16 MiB pack size. The side effect of increasing the pack size is requiring more disk space for temporary pack files created before uploading. The space must be available in the system default temp directory, unless overwritten by setting the ``$TMPDIR`` (except Windows) environment -variable (on Windows use ``$TMP`` or ``$TEMP``). In addition, +variable (on Windows use ``$TMP``). In addition, depending on the backend the memory usage can also increase by a similar amount. Restic requires temporary space according to the pack size, multiplied by the number of backend connections plus one. For example, if the backend uses 5 connections (the default diff --git a/doc/manual_rest.rst b/doc/manual_rest.rst index d1e5817f3..a5e3e4af9 100644 --- a/doc/manual_rest.rst +++ b/doc/manual_rest.rst @@ -423,10 +423,9 @@ temporary files to store data. These files will, by default, be saved to the system's temporary directory, on Linux this is usually located in ``/tmp/``. To specify a different directory for temporary files, set the appropriate environment variable. On non-Windows operating systems, -use the ``TMPDIR`` environment variable. On Windows, use either the -``TMP`` or ``TEMP`` environment variable. For example, to use the -directory ``/var/tmp/restic-tmp`` instead of the default, set the -environment variable as follows: +use the ``TMPDIR`` environment variable. On Windows, use the ``TMP`` +environment variable. For example, to use the directory ``/var/tmp/restic-tmp`` +instead of the default, set the environment variable as follows: .. code-block:: console