duplicity ssh port not used
I'm using backupninja (Version 1.0.1-2, latest from ubuntu 14.04 repo) and have installed duplicity 0.6.23
How do I specify a custom SSH port?
It seems like backupninja is using the port while testing the connection but all other tasks try to use port 22 :(
If i run the 90.dup file i get the following output:
backupninja --run /etc/backup.d/90.dup
Debug: check_perms /etc/backup.d
Debug: perms: drwxrwx---
Debug: gperm: rwx
Debug: wperm: ---
Debug: check_perms /etc/backup.d/90.dup
Debug: perms: -rw-------
Debug: gperm: ---
Debug: wperm: ---
Info: >>>> starting action /etc/backup.d/90.dup (because of --now)
Debug: yes
Debug: executing handler in locked section controlled by /var/lock/backupninja/_etc_backup.d_90.dup
Debug: ssh -o IdentityFile=/root/.ssh/id_rsa_duplicity -o Port=1022 -o PasswordAuthentication=no XXX.XXX.XXX.XXX -l remotebackups 'echo -n 1'
Debug: Connected to XXX.XXX.XXX.XXX as remotebackups successfully
Warning: duplicity >= 0.6.17 only supports the IdentityFile SSH option
Debug: Data will be encrypted with the GnuPG key XXXXXXXX.
Debug: Data will be signed will the GnuPG key XXXXXXXX.
Debug: duplicity cleanup --force --no-print-statistics --ssh-options '-o IdentityFile=/root/.ssh/id_rsa_duplicity -o Port=1022' --encrypt-key XXXXXXXX --sign-key XXXXXXXX --full-if-older-than 30D --extra-clean --archive-dir /var/cache/backupninja/duplicity scp://remotebackups@XXX.XXX.XXX.XXX//home/remotebackups/backups/live
Debug: BackendException: ssh connection to remotebackups@XXX.XXX.XXX.XXX:22 failed: timed out
Warning: Duplicity cleanup failed.
Debug: duplicity remove-older-than 60D --force --no-print-statistics --ssh-options '-o IdentityFile=/root/.ssh/id_rsa_duplicity -o Port=1022' --encrypt-key XXXXXXXX --sign-key XXXXXXXX --full-if-older-than 30D --extra-clean --archive-dir /var/cache/backupninja/duplicity scp://remotebackups@XXX.XXX.XXX.XXX//home/remotebackups/backups/live
Debug: BackendException: ssh connection to remotebackups@XXX.XXX.XXX.XXX:22 failed: timed out
Warning: Duplicity remove-older-than failed.
Debug: duplicity --no-print-statistics --ssh-options '-o IdentityFile=/root/.ssh/id_rsa_duplicity -o Port=1022' --encrypt-key XXXXXXXX --sign-key XXXXXXXX --full-if-older-than 30D --extra-clean --archive-dir /var/cache/backupninja/duplicity --exclude '/home/*/.gnupg' --exclude '/var/cache/backupninja/duplicity' --exclude '/home/remotebackups/' --include '/var/spool/cron/crontabs' --include '/var/backups' --include '/etc' --include '/root' --include '/home' --include '/usr/local/*bin' --include '/var/lib/dpkg/status*' --exclude '**' / scp://remotebackups@XXX.XXX.XXX.XXX//home/remotebackups/backups/live
Error: BackendException: ssh connection to remotebackups@XXX.XXX.XXX.XXX:22 failed: timed out
Fatal: Duplicity failed.
Fatal: <<<< finished action /etc/backup.d/90.dup: FAILED
Debug: send report to root
Info: FINISHED: 1 actions run. 1 fatal. 1 error. 3 warning.
My current config is:
options =
nicelevel = 19
testconnect = yes
[gpg]
sign = yes
encryptkey = 70XXXXXX
signkey =
password = XXX
[source]
include = /var/spool/cron/crontabs
include = /var/backups
include = /etc
include = /root
include = /home
include = /usr/local/*bin
include = /var/lib/dpkg/status*
exclude = /home/*/.gnupg
exclude = /var/cache/backupninja/duplicity
exclude = /home/remotebackups/
[dest]
incremental = yes
increments = 30
keep = 60
keepincroffulls =
bandwidthlimit =
sshoptions = -o IdentityFile=/root/.ssh/id_rsa_duplicity -o Port=1022
destdir = /home/remotebackups/backups/live
desthost = XXX.XXX.XXX.XXX
destuser = remotebackups