Minimizing writes to main drive

If I wanted to minimize writes to the main drive, would the following be as good as it gets?

export TMPDIR=/external/path/tmp
–cache-dir /external/path/tmp

Say I’ve got a snapshot of a machine already, and I just realized the drive is actively failing. I want to get anything that’s changed, as quickly as possible, while minimizing writes to the main drive. Any other temporary files I can redirect?

restic only writes to the temp directory and its cache folder. So yes these two options should cover everything.

P.S.: It should be --cache-dir directory instead of --with-cache.

1 Like

Whoops, that’s what I used but not what I wrote here lol. I’ll correct mine so googlers don’t get confused. Thanks!