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?
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…
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.
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… 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.