Hi, I am trying to make rsync backups work and it looks like an issue with duplicity arguments…
I get this message during setup “Connection to rsync host failed: Unknown error.Please check running 'management/backup.py --verify’from mailinabox sources to debug the issue.”
Here’s the output of management/backup.py --verify
Import of duplicity.backends.webdavbackend Succeeded
Main action: verify
duplicity 0.7.17 (February 26, 2018)
Args: /usr/bin/duplicity --verbosity info verify --compare-data --archive-dir /home/user-data/backup/cache --exclude /home/user-data/backup file:///home/user-data/backup/encrypted /home/user-data --ssh-options= -i /root/.ssh/id_rsa_miab --rsync-options= -e “/usr/bin/ssh -oStrictHostKeyChecking=no -oBatchMode=yes -p 22 -i /root/.ssh/id_rsa_miab”
Linux domainname 4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 13:03:05 UTC 2020 x86_64 x86_64
/usr/bin/python2 2.7.17 (default, Sep 30 2020, 13:38:04)
[GCC 7.5.0]
Local and Remote metadata are synchronized, no sync needed.
Added incremental Backupset (start_time: Wed Nov 4 03:07:03 2020 / end_time: Thu Nov 5 03:07:04 2020)
Last full backup date: Wed Nov 4 03:07:03 2020
Difference found: File owncloud/owncloud.db has mtime Thu Nov 5 09:00:02 2020, expected Thu Nov 5 03:05:04 2020
Deleting /tmp/duplicity-ofGUIO-tempdir/mktemp-OU_ZE2-2
Processed volume 1 of 2
Deleting /tmp/duplicity-ofGUIO-tempdir/mktemp-MyKa8P-1
Processed volume 2 of 2
Verify complete: 341 files compared, 17 differences found.
Traceback (most recent call last):
File “management/backup.py”, line 539, in
run_duplicity_verification()
File “management/backup.py”, line 350, in run_duplicity_verification
] + rsync_ssh_options, get_env(env))
File “/root/mailinabox/management/utils.py”, line 123, in shell
ret = getattr(subprocess, method)(cmd_args, **kwargs)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/usr/bin/duplicity’, ‘–verbosity’, ‘info’, ‘verify’, ‘–compare-data’, ‘–archive-dir’, ‘/home/user-data/backup/cache’, ‘–exclude’, ‘/home/user-data/backup’, ‘file:///home/user-data/backup/encrypted’, ‘/home/user-data’, ‘–ssh-options= -i /root/.ssh/id_rsa_miab’, ‘–rsync-options= -e “/usr/bin/ssh -oStrictHostKeyChecking=no -oBatchMode=yes -p 22 -i /root/.ssh/id_rsa_miab”’]’ returned non-zero exit status 1.
When I try to manually run duplicity I get the following error:
duplicity: error: no such option: -i
Just for information ssh -i /root/.ssh/id_rsa_miab username@address works fine (I am able to login without password)
TIA