Complete rewrite of backblaze backend

Bug #1654756 reported by Vincent Rouille on 2017-01-07
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

Hi,

I was having issue with the current backblaze backend implementation, so I did a complete rewrite of the backend using the b2 package available with pip and maintained by the backblaze company.

This implementation is faster (big files are uploaded in chunks) and more resilient to internet breakage. And because it's cool, I added upload progression support.

I think there is still work to done to tune the b2 init (max number of chunks to use for uploading big files, ...)

Here is the implementation: https://github.com/Speedy37/docker-images/blob/master/duplicity/alpine/b2backend.py

I don't care about the licence, so consider my code as public code :)

By the way, I'm new to python (first python code ever) and to bazaar VCS, so I guess this is not the best way to contribute to this project.

description: updated
trunet (wsartori) wrote :

I'm using this backend for 3 months already, and it uploads way faster than the duplicity backend. 150 Mbit/s against 40 Mbit/s.

S3 uses boto, I think backblaze can use the B2 library, can we have this integrated into duplicity?

blm14 (blm14) wrote :

How do I install that script? Thanks!

trunet (wsartori) wrote :

It's not a script, it's a python class. You just copy the b2backend.py to duplicity python directory. Look for this filename on /usr/lib/python2.7 or whatever version you're using and overwrite it there.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.15
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers