No space left on device error

I want to use a CIFS share on another server. The share is mounted, readable and writable, and not full. However, I get the following error after the scan:

error while saving data to the repo: write /tmp/restic-temp-pack-696862295: no space left on device

What am I doing wrong?
Thanks alot

This is not your CIFS share, but your local /tmp folder, which got filled. Check if it has enough space to hold restic temporary files.

Thanks for the fast reply. Indeed, it was as easy as export TMPDIR=some/path.