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:36 +01:00
parent 3b854d9c04
commit ffc5e9bd5c
2 changed files with 4 additions and 5 deletions
+1 -1
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