How do I replace ssh key file used by duplicacy web

I want to use a new ssh key file to connect an SFTP storage location using duplicacy web.

I thought all that I needed to do was:

  • stop the server
  • cd into the .duplicacy-web/repositories/localhost/all directory
  • run the CLI using set -key ssh_key_file -value [file name]
  • run the CLI using set -key ssh_passphrase -vale [new passphrase]
  • start the server

That puts new entries in for those settings into the preferences file in the repository. It does not update the duplicate.json file.

All my scheduled jobs fail because they are trying to use the old ssh key file.

How do I get duplicacy.json updated with the new information?

Duplicacy CLI config in that location gets created by duplicacy web; all your changes therefore are overwritten at the start of next backup.

The correct way is to remove the storage destination in the UI and add it back with the same name

Thank you. That saved me from pulling out all my remaining hair. :wink:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.