rsync backend fails

Asked by Steven

My duplicity calls have started failing when using rsync. The problem goes back at least until November, which is as far as my logs seem to go. Using scp seems to work. For example, if I run the following:

    mkdir /tmp/testsource
    mkdir /tmp/testbackup
    touch /tmp/testsource/foo
    export PASSPHRASE="test"

    duplicity full /tmp/testsource scp://localhost//tmp/testbackup
    duplicity inc /tmp/testsource scp://localhost//tmp/testbackup
    duplicity inc /tmp/testsource rsync://localhost//tmp/testbackup

Everything works until the last command, at which point I get

    Attempt 1 failed. BackendException: Error running 'rsync -e 'ssh -oBatchMode=yes' /localhost//tmp/testbackup/': returned 23, with output:

    rsync: change_dir "/localhost//tmp/testbackup" failed: No such file or directory (2)
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]

I'm not sure where exactly the problem lies, but I suspect one of the underlying packages changed.
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Steven
Solved:
Last query:
Last reply:
Revision history for this message
Steven (steventilleyii) said :
#1

Sorry, forgot to add version info
Arch Linux
duplicity 0.7.0
rsync 3.1.1

Revision history for this message
edso (ed.so) said :
#2

On 17.12.2014 03:26, Steven wrote:
> Question #259173 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/259173
>
> Steven gave more information on the question:
> Sorry, forgot to add version info
> Arch Linux
> duplicity 0.7.0
> rsync 3.1.1
>

what exactly is the error the rsync backend fails with?

..ede/duply.net

Revision history for this message
edso (ed.so) said :
#3

On 17.12.2014 10:31, edso wrote:
> Question #259173 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/259173
>
> Status: Open => Answered
>
> edso proposed the following answer:
> On 17.12.2014 03:26, Steven wrote:
>> Question #259173 on Duplicity changed:
>> https://answers.launchpad.net/duplicity/+question/259173
>>
>> Steven gave more information on the question:
>> Sorry, forgot to add version info
>> Arch Linux
>> duplicity 0.7.0
>> rsync 3.1.1
>>
>
> what exactly is the error the rsync backend fails with?
>

ignore the last comment.. saw your error now. will investigate. can you use the ssh backend for now?

..ede/duply.net

Revision history for this message
edso (ed.so) said :
#4

please try editing
 duplicity/backend.py
of your installation.

around line 75 you'll see

uses_netloc = ['ftp',
               'ftps',
               'hsi',
               's3',
               'scp', 'ssh', 'sftp',
               'webdav', 'webdavs',
               'gdocs',
               'http', 'https',
               'imap', 'imaps',
               'mega',
               'copy']

add 'rsync' to the list array and rerun your command.

does that work?.. ede

Revision history for this message
Jens Kadenbach (ubuntu-dax) said :
#5

I had the same problem and the proposed fix of adding 'rsync' to the uses_netloc list works.

Revision history for this message
Steven (steventilleyii) said :
#6

That did the trick! Thanks everyone.

Revision history for this message
edso (ed.so) said :
#7

a fix has been merged and will probably be released with 0.7.01

..ede/duply.net