I’m writing a script to restore some of my backups. These backups are stored on a remote sftp server.
So far I have:
duplicati-cli restore ssh:// --restore-path= --ssh-fingerprint=.
When executing this command I’m being asked for the encryption password, but not for the ssh/sftp server password.
The command will then fail with
Renci.SshNet.Common.SshAuthenticationException: Permission denied (password).
What is the proper procedure to call the restore command in this case?
Welcome to the forum @Bruno999
Were they made with CLI or GUI? If GUI, Export As Command-line is a good way to get a compatible starter line (including options you may need, and some you might not) for editing into CLI commands.
CLI is intentionally independent from GUI, e.g. this restore won’t update GUI logs or other information.
SFTP (SSH) shows relevant options, including a couple of ways to give the username and password.
Found the Target URL in the CommandLine section in the GUI.
The restore works now.
Thanks a lot!!!