-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Backblaze for Backup #1812
Conversation
I tested the change on a development server (since four days) and it is running since two days on my production server. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🙂 Love seeing B2 support for backups. I ran into some problems with S3 backups after the ppa change (duplicity couldn't find boto) and added some minor suggestions
Hey @fspoettel, I think I integrated your changes 👍 Thanks for your review and your suggestions. I really appreciate them! |
Devils advocate. Would it be worth considering deploying this as two pulls:
These would be the smallest possible iterations and has the advantage of allowing quicker feedback if the duplicity upgrade breaks any existing edge case backups. Very keen to see this deployed as Backblaze is legitimately 3-4 times cheaper than almost everyone else whilst being a open and professional company. |
PR relates to #717 |
recent discourse thread where b2 came up again. it seems like this is a feature that some users really want and have gone the length of implementing homebrew solutions. |
Ok. I appreciate the work here. I am merging it. If it breaks anything, you all are on the hook for fixing it quickly. :) |
So my B2 Application Key had a slash in it and this causes a "substring not found" error.
|
Hey @barrybingo, unfortunately I don't see how to fix this issue on our side since duplicity cannot parse the URL if the API key contains a slash (so even if we would fix the code you pointed out above the backup would still not work): Maybe we should disallow entering application keys and application ids if they contain a slash and ask to regenerate the API if it contains a slash? |
Yeah I vote for disallow and give instructions. |
Also if you're going to do some changes then you could add backup-target-b2 to this line so retention days is available for edit
So far first backup is working fine so thumbs up |
Could you clarify what you mean with that? |
That div is hidden for b2 as the div class does not contain backup-target-b2 |
Ahhh okay. So your point is that we should be able to set a custom retention time because there is no reason to not do so, right? |
Yup. That setting's value is passed to duplicity so should be configurable. |
Got ya! Good catch! Do you want to do a PR or should I do one? |
I don't want to step on your toes and it is Saturday night here 🍻 But can't you just add the commits onto your branch then update this PR for Josh to review and re-merge? |
no, once a PR is merged, it cannot be re-opened. Depending on the repository's merge strategy and activity, it's also not a good idea to re-use stale branches. |
Deleted the fork anyways (don't remember why exactly). I will see if I can do a new PR today / tonight, otherwise barrybingo can do one :) |
I won't make it today. Go ahead if you want to :) @barrybingo |
First draft |
Hello :)
I started implementing Backblaze as backup option for miab.
There is one major change I would like to point out: I added the duplicity PPA, so the lastest version of duplicity gets installed. I struggled to get b2 working with the version of duplicity shipped in the default repository and it worked without any problems with the duplicity PPA.
How I tested:
sudo ./management/backup.py && sudo ./management/backup.py --verify
Verify complete: 84 files compared, 0 differences found.
Where I need help:
I would love to get feedback on this PR.