From 53b0d44eadf086ae0fa76ea13f0a018cd382b8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Wed, 13 May 2015 15:48:37 +0200 Subject: [PATCH] Make the cipher spec optional --- libtisbackup/backup_rsync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtisbackup/backup_rsync.py b/libtisbackup/backup_rsync.py index 47f65e4..07edcce 100644 --- a/libtisbackup/backup_rsync.py +++ b/libtisbackup/backup_rsync.py @@ -139,7 +139,9 @@ class backup_rsync(backup_generic): backup_source = '%s@%s::%s%s' % (self.remote_user, self.server_name, self.rsync_module, self.remote_dir) else: # case of rsync + ssh - ssh_params = ['-o StrictHostKeyChecking=no','-c %s' % self.cipher_spec] + ssh_params = ['-o StrictHostKeyChecking=no'] + if self.cipher_spec: + ssh_params.append('-c %s' % self.cipher_spec) if self.private_key: ssh_params.append('-i %s' % self.private_key) if self.ssh_port <> 22: