mirror of
https://github.com/restic/restic.git
synced 2026-08-17 19:13:18 +00:00
only suggest TMP as tmp dir variable on windows
TMP takes precedence over TEMP.
This commit is contained in:
@@ -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
|
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
|
files created before uploading. The space must be available in the system default temp
|
||||||
directory, unless overwritten by setting the ``$TMPDIR`` (except Windows) environment
|
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
|
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
|
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
|
of backend connections plus one. For example, if the backend uses 5 connections (the default
|
||||||
|
|||||||
+3
-4
@@ -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
|
the system's temporary directory, on Linux this is usually located in
|
||||||
``/tmp/``. To specify a different directory for temporary files, set
|
``/tmp/``. To specify a different directory for temporary files, set
|
||||||
the appropriate environment variable. On non-Windows operating systems,
|
the appropriate environment variable. On non-Windows operating systems,
|
||||||
use the ``TMPDIR`` environment variable. On Windows, use either the
|
use the ``TMPDIR`` environment variable. On Windows, use the ``TMP``
|
||||||
``TMP`` or ``TEMP`` environment variable. For example, to use the
|
environment variable. For example, to use the directory ``/var/tmp/restic-tmp``
|
||||||
directory ``/var/tmp/restic-tmp`` instead of the default, set the
|
instead of the default, set the environment variable as follows:
|
||||||
environment variable as follows:
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user