r/backblaze • u/pywang • 2d ago
Computer Backup Backblaze should open source their computer backup client
At least for MacOS, there are so many issues that people bring up, from actual bugs to missing UI. I feel like Backblaze should open source their computer backup client so that the community can help fix things or at least own how they backup their data.
From the mac side in this subreddit:
- bztransmit hogs up tons of RAM with no way to configure a ceiling. bztransit can't be permanently killed; it always just restarts
- bzserv and bztransmit also hog up CPU and RAM (or this article). There are tons of articles and GitHub diagnostic scripts detailing the poor design on the client end how these resources are burned
- bztransmit -fixsafetyfreeze can be frozen for days due to a bug
- Manual backups stop at some random file count number (I'm currently stuck at 271k files/550GB with 3TB already backed up from years of backing up). Support has never solved it properly and don't really know what to do (including if you read logs). The common solution is to just nuke the backup.
Anecdotally:
- Manually pressing Backup Now doesn't work a lot for me
- You have to nuke your Backblaze client to fix things... or nuke your whole backup (which sucks if you have slow upload speed)
- A lot of issues require coding knowledge, specifically running things in Terminal. If you ever wanted to exclude certain folder names, not just a specific path, you have to edit an XML file.
Let people fix your client or make their own at this point. Community support on GitHub means everyone shares tickets and can pool resolutions together, letting AI agents help out.
edit: F. I tried uninstalling and reinstalling backblaze because of the hang. There's a bug in the client. And then after inheriting backup state, memory shot up to 61GB RAM out of 64GB, and then failed. Cry
6
u/silajim 2d ago edited 2d ago
I have decompiled it this past weekend, and made changes to the ram hogging part, currently I am validating the changes.
It used to need about 16GB of ram to process some stuff and about 2-4 hours (22.4M files , 40TB) now it uses 1.3GB of ram and it's done in seconds on the housekeeping tasks!
I will NOT give people the changes, but I will try to contact Backblaze themselves to see if they will want to integrate the changes and optimizations I've made.
EDIT: The internal design how the bztransmit part works and stores data is quite horrible, an example during a server delete (from the server, it send it old files that have not been backed up during a period) it will read every bz_done file for every entry that it wants to delete.
In my case the bz_done files are 104GB and the list to delete contained a bit more that 70K items. Meaning that to clean up the bz_done files it would need to read something like 7.2TB of data!
EDIT 2: Ohh and it had a memory leak, go figure
3
u/dr100 2d ago
There you have it. They didn't increase the price on B2 from $6/TB to $7/TB just earlier this year because they can make money from storing your stuff for 2.x/TB . Your "issues" are actually pushing the customers that aren't profitable to either a multiple times more expensive service or away completely (which is still a win if they were eating more resources than paying for).
Meanwhile they can very well make money from people happy with the "unlimited" service while the largest (by far) cohort of them literally stores 0.0 TBs.
4
u/wormeyman 2d ago edited 2d ago
I actually had Claude look at what was messing up my backblaze so much. I'll post the results in a quick edit once I'm on my desktop.
Edit: OK, here's what I found. My Mac was uploading 100k-190k files a day to Backblaze. Almost all of it was cache and dependency folders that change constantly, like
node_modules,.venv, browser caches and app plugin folders.The exclusions in
Settings > Exclusionsonly match the full path from the root of the drive. Backblaze's docs say excluding a folder "excludes any folder with that name regardless of location", but my logs say otherwise.Their own default list excludes
/Library/and/Applications/, yet~/Libraryuploads every day (over 4,000 files today), and~/Applicationsuploads whenever an app in it changes.A full path like
/Users/you/.cacheworks fine in the settings. A plain folder name doesn't.Also tick "Also exclude Apple-specified exclusions" on the same Exclusions tab. It makes Backblaze skip whatever Time Machine skips, which covers a lot of system and cache files. It doesn't fix the problem with folder names, though, since dev folders like
node_modulesaren't on Apple's list.To exclude a folder name wherever it shows up, add a line like this to
/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml:<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />Matching ignores case. Keep the slashes on both sides of the name.
skipFirstCharThenStartsWith="users/"limits the rule to folders under /Users. Backblaze applies the change at its next backup. To make it read the file right away, restart the service:sudo launchctl kickstart -k system/com.backblaze.bzservIf something goes wrong, delete that file and Backblaze puts its default rules back at the next backup.
These are the names I added:
/node_modules//.cache//.venv//library/pnpm/store//cache/cache_data//code cache//service worker/cachestorage//.vite-plus/js_runtime//library/application support/crossover/bottles/The cache ones catch Chrome and Electron apps.
Now it uploads about 3,600 files on a normal day, and the spikes are real new files.
To see what yours is uploading, look in
/Library/Backblaze.bzpkg/bzdata/bzlogs/bzreports_lastfilestransmitted/. Each log is named after a day of the month (for example02.log). The newest day or two are plain logs and older days are zipped. The names get reused every month, so check the dates inside each file.15
u/shrinking_cultist 2d ago
Yeah the ram hogging is so annoying.
1
u/sammcj 2d ago
Just switch to using Kopia and b2 storage. Much faster and open source.
1
u/Pariell 2d ago
I just want to be able to resize the control panel. It's 2026 ffs.
1
u/Lilianne_Blaze 17h ago
It would be very nice, but the probability of it happening is near zero. Open-sourcing the client would make it trivial to modify it so for example it treats remote filesystems as local, allowing to back up tens or hundreds of pcs to one unlimited account
1
u/Chemical_Tea_1743 3h ago
Unfortunately, money is the only way to get some of these companies’ attention.
Cancel your subscriptions. Go elsewhere. When they see >100, >50, heck even >25 accounts a week leaving their platform, it’s going to raise bells after their monthly or quarterly reporting/meetings.
1
u/yuletide 3h ago
It’s a huge resource hog