Borg backup on mac
Description
This version of the "BBS Agent" app cannot be used with this version of macOS.
I'm running version 15.7.7 so it's not that old.
Steps to Reproduce
- Press Cmd+Shift+G and type: /opt/bbs-agent/BBS Agent.app
Installation Type
Docker
BBS Version
2.60.5
Agent Version (if applicable)
2.60.5
Agent OS (if applicable)
macOS
Relevant Logs
Backup failed: job #1113 — borg command not found
I looked at the errors. ackup failed: job #1113 — borg command not found
which I could easily see it didn't install borg in the script or something goes wrong in the script
Error Log pip install failed (exit 2): no such option: --break-system-packages
so I suspected it couldn't install borg in any way. so after some thought I installed brew (a little worried about it before) and borg which didn't help. But after uninstalling the agent and reinstalling the agent again it works now. It hurts that brew and borg need to be pre-installed. but it works so I'm happy about it. Attaching what I did in case anyone else gets the same error
On Tahoe (26.3.1) the install didn't appear to throw any errors but borg did not get installed since I did not have brew installed. I deleted the agent on the server, uninstalled the agent, installed brew and re-ran the install where borg and the agent were installed successfully. I can see having brew pre-installed as a prerequisite would be reasonable.
We recently added more changes to fix borg installing on mac but sounds like there's still more issues. If you have any screen shots, that would really help narrow it down.
maybe make it check if brew is installed. if it is, continue running if it is not., cancel and post note. that brew must be installed first.
maybe this doesn't belong here, but when you close the lid even though you have the power on and told it not to go into sleep, the agent goes offline because it doesn't try to wake the computer, so the backup doesn't work.
Failed Failed Agent went offline — no heartbeat in 90s
Job #1128 (backup) sent to agent queue Jun 12 4:00:01 AM Job #1128 (backup) failed — agent "MinMac" went offline Jun 12 4:01:01 AM
Fixed in v2.60.6. On macOS the installer now checks for Homebrew up front and, if it's missing, asks whether to install it (installed as your normal user, since Homebrew won't run as root). If you decline or there's no terminal to prompt, it stops with clear instructions rather than producing an agent with no Borg. So Homebrew no longer has to be pre-installed — the installer handles it.
To get it: update your server from Settings → Update, then re-run the macOS agent install command on the Mac.
On the lid-closed/sleep point — that's a separate macOS power-management limitation (a sleeping Mac stops sending heartbeats and the server can't wake it), so I'll track that on its own rather than here. Thanks for the detailed write-ups, they made this easy to pin down.
Released in v2.60.6 — the macOS installer now checks for Homebrew and offers to install it if it's missing. Closing this; the lid-closed/sleep note is a separate macOS power-management limitation and can be tracked on its own if needed.