Cannot save snapshot, tmp directory not found

Hi, I am using Restic 0.16.4 on Ubuntu 22.04. I set TMP_DIR to ~/tmp.

I cannot do any backup because of the following error:

Fatal: unable to save snapshot: open /home/billy/tmp/restic-temp-pack-2299624929: no such file or directory

I created the directory, so why is this happening?

1 Like

Just a nitpick, if it is an environment variable it should be named TMPDIR without underscores, according to the howto.

For the real issue, is restic process running as user billy? How is restic being triggered?

1 Like

Thanks! Sorry, it was really silly from me that I mistyped TMPDIR. It’s working now.

To err is humane. I could easily make the same error. :slight_smile: