--rsync-options are not parsed

Bug #1589412 reported by Christoph Löhr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

duplicity 0.7.07.1 (April 19, 2016)
Args: /usr/bin/duplicity full --encrypt-key xxxx --rsync-options="-oIdentityFile=/home/$user/.ssh/xxxxxxx.ke" --progress --volsize 1024 --exclude=/proc --exclude=/sys --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/tmp --exclude=/var/spool --exclude=/var/cache --exclude=/var/tmp / rsync://$user@$host//data/backup/$client -v info
Linux $client 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 x86_64
/usr/bin/python2 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]

Reading results of 'rsync -e 'ssh -oBatchMode=yes' -oIdentityFile=/root/.ssh/xxxxxxx.key $user@$host:/data/backup/snozzle/'
Attempt 1 failed. BackendException: Error running 'rsync -e 'ssh -oBatchMode=yes' -oIdentityFile=/root/.ssh/duplicity_snozzle.key $user@$host:/data/backup/snozzle/': returned 14,

The Issue is:
--rsync-options="-oIdentityFile=/home/$user/.ssh/xxxxxxx.key"

the built rsync options are:
'rsync -e 'ssh -oBatchMode=yes' -oIdentityFile=/root/.ssh/xxxxxxx.key $user@$host//data/backup/$client'

He're the -oIdentityFile= is not included to the rsync -e '..' command, so it will not be interpreted the correct way by rsync. If you use a -i lalala.key the issue persits.

Tags: options rsync
Revision history for this message
Christoph Löhr (chrit) wrote :

Fix for #822697 did not fix this

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1589412] Re: --rsync-options are not parsed

The command line should use --ssh-options for ssh and --rsync-options for
rsync. They are different.

On Wed, Jun 15, 2016 at 7:01 AM, Christoph Löhr <email address hidden>
wrote:

> Fix for #822697 did not fix this
>
> ** This bug is no longer a duplicate of bug 822697
> ssh-options not passed in 'rsync over ssh'
>
> --
> You received this bug notification because you are subscribed to
> Duplicity.
> https://bugs.launchpad.net/bugs/1589412
>
> Title:
> --rsync-options are not parsed
>
> Status in Duplicity:
> New
>
> Bug description:
> duplicity 0.7.07.1 (April 19, 2016)
> Args: /usr/bin/duplicity full --encrypt-key xxxx
> --rsync-options="-oIdentityFile=/home/$user/.ssh/xxxxxxx.ke" --progress
> --volsize 1024 --exclude=/proc --exclude=/sys --exclude=/dev
> --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/media
> --exclude=/tmp --exclude=/var/spool --exclude=/var/cache --exclude=/var/tmp
> / rsync://$user@$host//data/backup/$client -v info
> Linux $client 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC
> 2016 x86_64 x86_64
> /usr/bin/python2 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
>
> Reading results of 'rsync -e 'ssh -oBatchMode=yes'
> -oIdentityFile=/root/.ssh/xxxxxxx.key $user@$host:/data/backup/snozzle/'
> Attempt 1 failed. BackendException: Error running 'rsync -e 'ssh
> -oBatchMode=yes' -oIdentityFile=/root/.ssh/duplicity_snozzle.key $user@$host:/data/backup/snozzle/':
> returned 14,
>
> The Issue is:
> --rsync-options="-oIdentityFile=/home/$user/.ssh/xxxxxxx.key"
>
> the built rsync options are:
> 'rsync -e 'ssh -oBatchMode=yes' -oIdentityFile=/root/.ssh/xxxxxxx.key
> $user@$host//data/backup/$client'
>
> He're the -oIdentityFile= is not included to the rsync -e '..'
> command, so it will not be interpreted the correct way by rsync. If
> you use a -i lalala.key the issue persits.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1589412/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.