duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Direct usage via Python (i.e. import duplicity)?


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] Direct usage via Python (i.e. import duplicity)?
Date: Fri, 30 Mar 2018 06:23:04 -0500

Hi,

All it would take is a bit of refactoring to do what you want.  A number of Python utils are set up with a minimal start script and the rest in the module.

If you have the time and the desire, we'd appreciate the work.

...Thanks,
...Ken


On Mon, Mar 26, 2018 at 5:01 PM, Jason Antman via Duplicity-talk <address@hidden> wrote:
Hello,

I'm really interested in using Duplicity to replace my current homegrown backup system (based on full-file synchronization to S3 for important things and rsnapshot local backups for less-important). I was really happy to learn that Duplicity is written in Python, as that's my go-to language.

I was hoping that since Duplicity is written in Python, I could avoid the overhead of my current custom backup wrapper (for rsnapshot) that has to build command lines, run via subprocess, and then parse the output to get the statistics I care about (number and size of changed files, transfer time, etc.). However, even though I found a few Duplicity wrappers or front-ends written in Python, they all seem to execute duplicity via subprocess.

I was wondering if anyone has experience driving Duplicity natively via a Python wrapper by making the proper function calls (and then... I suppose patching some parts, since it seems like the status output/statistics isn't surfaced in a consumable way)? Is this something that's worth it for me to try, or will the mostly function-based design prohibit it?

Thanks,
Jason Antman


_______________________________________________
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]