Snapshot Restore - Tempfile error

I’m building an automated system to backup to S3 and whilst attempting to restore a backup of a .gz file, I get the following error:

kopia: error: restore error: error copying: copy file: error creating directory: cannot replace 
"/home/backups/restores" with tempfile "/home/backups/restores032991635": rename 
/home/backups/restores032991635 /home/backups/restores: file exists, try --help

Any help or advice would be greatly appreciated!

1 Like

Make sure there isn’t a folder named restores there, so that kopia is told to restore your whatever.gz, it gets downloaded as numbers, then when download is done, it tries to rename the numbers file to the destination name, and there already is a folder by that name.