Hello everyone. I only work on Windows and so far I have not had any problems configuring the repositories with rclone and restic.
However, on a computer I get this error:
Fatal: create repository at rclone:server-idrivee2:server-idrivee2 failed: cannot implicitly run relative executable rclone.exe found in current directory, use -o rclone.program=./ to override
After putting the password in this command:
restic -r rclone:server-idrivee2:server-idrivee2 init
The rclone remote is fine (server-idrivee2) and the bucket server-idrivee2 is OK with the credentials.
I say this on the basis that I can create the same repository on another computer.
I don’t know what this error corresponds to, something about relative paths or precedence between commands, but I didn’t find answers searching for info.
I did the test with either rclone.exe and restic.exe in the same directory or both in another folder in the root of the C drive.
If I try
.\restic -r rclone.program=./rclone:server-idrivee2:server-idrivee2 init
I get
Fatal: create repository at rclone.program=./rclone:server-idrivee2:server-idrivee2 failed: invalid backend
If the repository is in a local directory, you need to add alocal:
prefix
So I found this:
https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html
Note
If you get an error message saying “cannot implicitly run relative executable rclone found in current directory”, this means that an rclone executable was found in the current directory. For security reasons restic will not run this implicitly, instead you have to use the
-o rclone.program=./rclone
extended option to override this security check and explicitly tell restic to use the executable.
But how is it applied in Windows?