Trying to change rsync destination

I’ve fixed myself another VPS and now I want to update my rsync backup config to use the new server. Only… it appears the rsync config does not like me changing the hostname…

All the other settings seem to be in place for it to just work. Only I think rsync needs some sort of clear current cache & config for everything to connect again?

I’m getting this unhelpful error message

“Connection to rsync host failed: Unknown error.Please check running 'management/backup.py --verify’from mailinabox sources to debug the issue.”

The backup verifies… But I believe it’s verifying an old config… How do I clear the old config?

Use option --duplicity-command maybe it provides a clue.

no luck there either.

I can do a duplicity --dry-run to the remote host. But for whatever reason there’s something blocking my new setup.

I’ve removed the current backup caches etc. no luck there as well. The only thing I can do is use the backups on the miab box itself. But as soon as I switch to rsync, there’s a config somewhere that prevents making changes…

What is the output of the duplicity command?
Try to login to the remote machine using ssh, with the key that MiaB uses and the user that the backup runs from (I think root) I’ve had trouble with that in the past when I changed servers.

Just to chime in here again, before this posts auto-locks. I’ve changed the backup location to local since that’s the only one still working currently. So when I try the duplicity command it just says everything is a-okay. I tried connecting to the other remote machine to update the key, but I’m in doubt that I’m using the correct user to refresh that trusted keychain… Either way, it’s still not working. There’s a database with the old config somewhere, just can’t seem to find it…

What is the output of management/backup.py --duplicity-command?

Sorry I haven’t been real responsive on that part. Here’s the output of that command.

CommandLineError: argument --gpg-options: expected one argument
Enter ‘duplicity --help’ for help screen.
Something is wrong with the backup: ERROR 23 CommandLineError
. CommandLineError: argument --gpg-options: expected one argument
. Enter ‘duplicity --help’ for help screen.

This looks like an old issue. What version of Mailinabox are you using? And what is the version of duplicity? (apt-cache policy duplicity)

I think the latest and greatest? v71a? Duplicity is at 3.0.4

Sorry, try with sudo

Make sure you use this command. Your output contains stuff that should not be part of the output of this command.

same same.

CommandLineError: argument --gpg-options: expected one argument
Enter ‘duplicity --help’ for help screen.
Something is wrong with the backup: ERROR 23 CommandLineError
. CommandLineError: argument --gpg-options: expected one argument
. Enter ‘duplicity --help’ for help screen.

Oh waw - feel so stupid - no idea where my mind went last time I tried setting this up. But my new box was missing the rsa-key… :man_facepalming: imported the key. restarted ssh service - tried the config again. OK.

Sorry man. I honestly can’t remember NOT fixing that in the first place… Superweird. Either way. Everything’s working again I guess. Trying to run the backup manually still triggers an error, but I think that’s because there’s no backup to begin with.