only suggest TMP as tmp dir variable on windows

TMP takes precedence over TEMP.
This commit is contained in:
Michael Eischer 2025-11-16 17:31:34 +01:00
parent 3b854d9c04
commit ffc5e9bd5c
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -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