#1554 PR merged: Duplicity: Add Support for NETFS URLs

Labels: enhancement, fixed / solved / done

Lukey3332 opened issue at 2017-10-27 21:07:

This adds Support for NETFS URLs when using duplicity so you can now backup to an CIFS or NFS share etc.

Lukey3332 commented at 2017-10-28 10:42:

The latest Commit is needed for restore to work on Debian Testing, however it might break it for other Distributions.

Lukey3332 commented at 2017-10-31 21:07:

Well, for me duplicity was complaining about not being able to find some Python-Module, do I commented out those Variables and it worked fine afterwards. Also my Python version is indeed 2.7 so that could be the actual problem. But so far I couldn't see any problems with not setting these Variables.

Lukey3332 commented at 2017-11-07 21:43:

So far everything is Tested and working on my side.
@gdha Can you test the original way this was meant to work with DUPLICITY_USER, _HOST, _PROTO, _PATH and BACKUP_DUPLICITY_GPG_* etc.? Just to be sure, I don't think I broke anything.

gdha commented at 2017-11-09 10:06:

@Lukey3332 Give me some time to setup my test cases.

gdha commented at 2017-12-07 16:59:

@Lukey3332 I'm so sorry, but I did not find enough time to get this tested for rear-2.3, therefore, I shift to rear-2.4.

Lukey3332 commented at 2017-12-10 14:20:

No Problem :)

gdha commented at 2018-01-03 16:35:

@Lukey3332 Did you never had the following error?

Writing var/yp of type dir
Making directory /mnt/local/var/yp
Deleting /mnt/tmp/duplicity-xqFqgd-tempdir/mktemp-6DRfi2-22
Processed volume 9 of 9
rm: cannot remove '/mnt/tmp': Device or resource busy
2018-01-03 16:30:56.577507973 ERROR: Could not remove Temporary Directory for Duplicity: /mnt/tmp
==== Stack trace ====
Trace 0: /usr/sbin/rear:543 main
Trace 1: /usr/share/rear/lib/recover-workflow.sh:24 WORKFLOW_recover
Trace 2: /usr/share/rear/lib/framework-functions.sh:101 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:49 Source
Trace 4: /usr/share/rear/restore/DUPLICITY/default/400_restore_duplicity.sh:51 source
Message: Could not remove Temporary Directory for Duplicity: /mnt/tmp

And rear recover bails out.
In my tests with duply I used /mnt/local/tmp as temporary directory and that worked fine.

Lukey3332 commented at 2018-01-08 18:09:

Hi,
Sorry, I was on Vacation. The Problem is that I forgot to add an check if the $BACKUP_DUPLICITY_TEMP_RAMDISK is not set, in which case it will create an Temporary Directory on the Target Filesystem (as /tmp doesn't exist yet) for Temporary Data before restore. This is what the rm wants to remove.


[Export of Github issue for rear/rear.]