|
From: | Kenneth Loafman |
Subject: | Re: [Duplicity-talk] Direct usage via Python (i.e. import duplicity)? |
Date: | Fri, 30 Mar 2018 06:23:04 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |