duplicity-talk
[Top][All Lists]
Advanced

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

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


From: Jason Antman
Subject: [Duplicity-talk] Direct usage via Python (i.e. import duplicity)?
Date: Mon, 26 Mar 2018 18:01:45 -0400

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


reply via email to

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