Initialize my Source and define a Local Destination as Default (with encryption, password=duplicacy1234):
duplicacy207 init -encrypt Source "C:\Temp\Duplicacy\Local"
Enter storage password for C:\Temp\Duplicacy\Local:*************
Re-enter storage password:*************
C:\Temp\Duplicacy\Source will be backed up to C:\Temp\Duplicacy\Local with id Source
Add my SFTP Destination as name SFTP (with encryption, password=duplicacy5678):
duplicacy207 add -encrypt -copy default SFTP Source "sftp://tester@localhost:2200/Backups"
Enter SSH password:********
Enter storage password for sftp://tester@localhost:2200/Backups:*************
Re-enter storage password:*************
Enter storage password for C:\Temp\Duplicacy\Local:*************
C:\Temp\Duplicacy\Source will be backed up to sftp://tester@localhost:2200/Backups with id Source
Using 207, LIST default first and enter the encryption password:
duplicacy207 -d list -storage default
Storage set to C:\Temp\Duplicacy\Local
Reading the environment variable DUPLICACY_PASSWORD
Enter storage password:*************
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: bc1665d442edf121fdcbfe36e947443d10268ec6a2d6b83e4e472057f573471c
id: Source, revisions: [], tag: , showFiles: false, showChunks: false
Listing revisions for snapshot Source
Still using 207, LIST the SFTP and enter the encryption password (ssh password already cached from ADD command):
duplicacy207 -d list -storage SFTP
Storage set to sftp://tester@localhost:2200/Backups
Attempting password login
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Reading the environment variable DUPLICACY_SFTP_PASSWORD
Enter storage password:*************
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: bc1665d442edf121fdcbfe36e947443d10268ec6a2d6b83e4e472057f573471c
id: Source, revisions: [], tag: , showFiles: false, showChunks: false
Listing revisions for snapshot Source
SUCCESS
Looking at the Keyring file I can see 3 entries: [ SFTP_password, SFTP_ssh_password, password ]
Let’s Wipe out the Keyring and try with 209:
rm .duplicacy/keyring
Using 209, LIST default first and enter the encryption password:
duplicacy209 -d list -storage default
Storage set to C:\Temp\Duplicacy\Local
Reading the environment variable DUPLICACY_PASSWORD
Keyring file not read: open C:\Temp\Duplicacy\Source/.duplicacy/keyring: The system cannot find the file specified.
Enter storage password:*************
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: bc1665d442edf121fdcbfe36e947443d10268ec6a2d6b83e4e472057f573471c
Reading the environment variable DUPLICACY_PASSWORD
id: Source, revisions: [], tag: , showFiles: false, showChunks: false
Listing revisions for snapshot Source
Still using 209, LIST the SFTP and enter the ssh password (because no longer cached):
duplicacy209 -d list -storage SFTP
Storage set to sftp://tester@localhost:2200/Backups
Reading the environment variable DUPLICACY_SFTP_SSH_KEY_FILE
Attempting password login
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Enter SSH password:********
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Reading the environment variable DUPLICACY_SFTP_PASSWORD
Failed to download the configuration file from the storage: Failed to retrieve the config file: cipher: message authentication failed
FAILURE
Looking at the Keyring file I can see 2 entries: [ SFTP_ssh_password, password ]
Let’s Wipe out the Keyring and try listing the SFTP first:
rm .duplicacy/keyring
Using 209, LIST SFTP first and enter the ssh password and the encryption password:
duplicacy209 -d list -storage SFTP
Storage set to sftp://tester@localhost:2200/Backups
Reading the environment variable DUPLICACY_SFTP_SSH_KEY_FILE
Attempting password login
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Keyring file not read: open C:\Temp\Duplicacy\Source/.duplicacy/keyring: The system cannot find the file specified.
Enter SSH password:********
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Reading the environment variable DUPLICACY_SFTP_PASSWORD
Enter storage password:*************
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: bc1665d442edf121fdcbfe36e947443d10268ec6a2d6b83e4e472057f573471c
Reading the environment variable DUPLICACY_SFTP_PASSWORD
id: Source, revisions: [], tag: , showFiles: false, showChunks: false
Listing revisions for snapshot Source
Still using 209, LIST the default now and enter the encryption password:
duplicacy209 -d list -storage default
Storage set to C:\Temp\Duplicacy\Local
Reading the environment variable DUPLICACY_PASSWORD
Enter storage password:*************
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: bc1665d442edf121fdcbfe36e947443d10268ec6a2d6b83e4e472057f573471c
Reading the environment variable DUPLICACY_PASSWORD
id: Source, revisions: [], tag: , showFiles: false, showChunks: false
Listing revisions for snapshot Source
SUCCESS
Looking at the Keyring file I can see 3 entries again: [ SFTP_password, SFTP_ssh_password, password ]
However… If I now try SFTP again with 209…
duplicacy209 -d list -storage SFTP
Storage set to sftp://tester@localhost:2200/Backups
Reading the environment variable DUPLICACY_SFTP_SSH_KEY_FILE
Attempting password login
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Enter SSH password:********
Reading the environment variable DUPLICACY_SFTP_SSH_PASSWORD
Reading the environment variable DUPLICACY_SFTP_PASSWORD
Failed to download the configuration file from the storage: Failed to retrieve the config file: cipher: message authentication failed
If I delete the entry from the keyring file for “password” then it works again, but it always prompts for both ssh password and encryption key, everytime. And appears to rewrite the contents keyring entries each time too.
If I list default, then it starts failing again.