From 2a8f275a28a900ca11972e7402e84cece176e128 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 11 Mar 2017 10:02:33 +0100 Subject: [PATCH] Manual: Document `TMPDIR` env variable Closes #873 --- doc/Manual.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/Manual.md b/doc/Manual.md index 560df2fcd..d4747190b 100644 --- a/doc/Manual.md +++ b/doc/Manual.md @@ -875,3 +875,17 @@ $ restic -r /tmp/backup snapshots --json | jq . } ] ``` + +# Temporary files + +During some operations (e.g. `backup` and `prune`) restic uses 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/`. The environment +variable `TMPDIR` can be used to specify a different directory, e.g. to use the +directory `/var/tmp/restic-tmp` instead of the default, set the environment +variable like this: + +```console +$ export TMPDIR=/var/tmp/restic-tmp +$ restic -r /tmp/backup backup ~/work +```