Restic init 401 Unauthorized

Hey! I’m trying to set up restic to back up my Windwows laptop onto my QNAP NAS, so I’ve been following this tutorial: Backup all the things with restic - Braincoke | Security Blog

The docker container is running on the NAS, the problem happens when I run restic init. Here’s the full command: restic -r rest:http://192.168.1.233:8000/share/Laptop/ init --insecure-no-password

This is the output: Fatal: create repository at rest:http://192.168.1.233:8000/share/Laptop/ failed: Fatal: unable to open repository at rest:http://192.168.1.233:8000/share/Laptop/: unexpected HTTP response (401): 401 Unauthorized

It appears that restic itself is rejecting the request, for some reason. Any ideas on what might be wrong with my setup? Thanks in advance!

1 Like

Have you configured credentials (via .htpasswd file)? If not needed you have to explicitly disable authentication. All details in docs:

1 Like