Borg wrapper for basic commands #10311
jake-47
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
Hi Jake, I don't like coding in bash (nor reviewing 3000 lines long bash scripts), so guess somebody else has to look at that. From my experience, claude (esp. opus and fable) is quite good at coding (including shell scripts), so it might well be that it does what you asked for. Locking: as long as you don't use borg 1.x won't see big changes, so guess there won't be a compatibility problem. borg 2 (still in beta) is rather different though, you likely will need a new script for that. Cheers, Thomas |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Thank you @ThomasWaldmann and team for your labour of love.
I've written a bash wrapper that makes borg simple for running my own backups: one config file saying what to back up and to which USB drives, and a small set of commands over it (init, extract, list, check, pass-change, rename). Each repo is written to every one of its drives, so any single drive restores on its own. It's grown well past what I originally intended, and before I lean on it any further I'd value a look from people who actually know Borg's internals.
I'm not a developer. I used Opus 4.6 through Opus 5 to build it. I've read and tested what I'm running, and every entry point works as intended.
What I'm most worried about is the class of mistake a beginner wouldn't know to worry about: whether I'm handling repo locking correctly, whether my error paths can leave a repo in a bad state, whether I'm depending on any Borg behaviour that isn't guaranteed across versions, whether there's anything malicious in the script, and whether the restore script holds up under real recovery conditions rather than the happy path I tested. Even a short "you're doing X wrong, that's a known footgun" would be wonderful. I can then ask Claude to fix it.
Here's the script: https://jake-47.github.io/docwright/borg-simple.html
Here's what it can accomplish: https://jake-47.github.io/docwright/leveling-up-1.html#why-not-just-type-borg-commands
All reactions