Enh: Add support for Restic tool

Bug #1800996 reported by Andy Grover on 2018-11-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Wishlist
Unassigned

Bug Description

Restic (homepage https://restic.net/ docs https://restic.readthedocs.io/en/stable/) looks very similar in operation to duplicity. It claims easy, fast, verifiable, secure, etc. and provides the usual backup locations (local, sftp, S3 and other network blob storage services.)

In looking at the deja-dup code base, it appears that things are abstracted to enable alternative tools besides duplicity, but only duplicity is implemented. Adding support for Restic might be a nice test of that abstraction, and also let deja-dup be optionally be used without duplicity (and thus python2) installed.

Michael Terry (mterry) on 2019-01-05
Changed in deja-dup:
importance: Undecided → Wishlist
enboig (enboig) wrote :

Also interested in this.

Andy Grover (andy-groveronline) wrote :

fwiw I hacked on this a little bit, and have a patch that copies deja's duplicity backend to a new "restic" and gets things building:

https://github.com/agrover/deja-dup/commits/work

The next step seemed to be changing the copied code to parse restic's output format instead of duplicity, but I ran into trouble because restic gets fancy with its output (uses ncurses or similar?). I think restic needs support added for some kind of machine-readable output -- json maybe? -- before work can proceed further.

enboig (enboig) wrote :

Checking the documentation it has a json output option

https://restic.readthedocs.io/en/stable/manual_rest.html?highlight=json

Michael Terry (mterry) wrote :

Heyo! Maintainer of Deja Dup here. We’ve never actually had another tool backend before. So this would be breaking new ground.

I would like to only support tool backends that are in active encouraged use. I am about to start a survey of other backup tools out there to see if I should indeed add another recommended tool backend besides duplicity.

I will look at Restic as part of this. Thanks for the recommendation.

I wanted to mention this just because I don’t want you to spend too much time before I know whether I’m likely to accept this feature.

enboig (enboig) wrote :

Another backup tool I am using is borg (https://www.borgbackup.org/); similar to restic, but with less options as destination.

What both have is a fuse mount option, and this would be a nice "bonus" to use in a GUI (IMHO).

Thanks for your time.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers