Skip to content

About

Self-hosted server for BorgStudio – a central overview of backups across all machines and managed backup targets.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

BorgStudio Server

Self-hosted server for BorgStudio, the all-in-one app to manage BorgBackup repositories.

Status: the base (sign-in, users, settings, packages) is in place; the backup features follow.

Goals

  • Central overview: every machine running BorgStudio reports its backups, checks and storage to the server – one shared dashboard and notifications for all of them.
  • Managed backup targets: the server creates borg repositories and restricted SSH keys per machine, so BorgStudio can use it as a backup target – like a hosted service, but run by yourself.

Installation

Each release has self-contained packages for Linux (x64, arm64) and Windows (x64) with the .NET runtime included, and a container image.

Where How
Linux Unpack BorgStudio.Server-<version>-linux-x64.tar.gz (or -linux-arm64), then sudo ./borgstudio-server/install.sh. Installs to /opt/borgstudio-server as the systemd service borgstudio-server, running as the user borgstudio.
Windows Unpack BorgStudio.Server-<version>-win-x64.zip, then run .\borgstudio-server\install.ps1 in an elevated PowerShell. Installs to C:\Program Files\BorgStudio Server as the Windows service BorgStudioServer.
LXC or VM (Debian 12/13, Ubuntu 22.04/24.04) curl -fsSL https://github.com/cuban8IO/borgstudio-server/releases/latest/download/lxc-install.sh | bash (as root)
Proxmox VE host bash -c "$(curl -fsSL https://github.com/cuban8IO/borgstudio-server/releases/latest/download/proxmox-create-ct.sh)" creates a Debian container and installs the server in it.
Docker docker run -d -p 8080:8080 -v borgstudio-data:/app/data ghcr.io/cuban8io/borgstudio-server – see deploy/docker/compose.yaml.

Running the installer of a newer release updates the server; its data and configuration stay. In an LXC container or VM set up with lxc-install.sh, the command update does that: it installs the latest release and does nothing when the server is up to date (from the Proxmox host: pct exec <id> -- update). uninstall.sh / uninstall.ps1 remove it (--purge / -Purge also deletes the data).

What changed in each version is in CHANGELOG.md and on the server's Changelog page. Once a day the server asks GitHub for a newer release and tells administrators about it, with the update command for the way it is installed (can be switched off under Settings).

HTTPS: installed servers listen on HTTPS port 8443 with a self-signed certificate until you upload your own under Settings or name one in borgstudio-server.json. The container listens on HTTP port 8080 for a reverse proxy. Ports, certificate files and proxy handling are set in borgstudio-server.json next to the program (see deploy/borgstudio-server.example.json) or with environment variables such as BorgStudio__Http__Enabled=true.

First start and sign-in

  • Data: everything the server stores (SQLite database, cookie keys) lives in a data folder next to the program. Set BorgStudio__DataDirectory to move it. Keep it when updating, and back it up.
  • Setup: on the first start the server has no users. It writes a one-time setup code to its log and to data/setup-code.txt; the web interface asks for it, then for the server name and the first administrator.
  • Sign-in: user name and password, optionally with an authenticator app (TOTP). Five wrong attempts lock an account for 15 minutes. Without "stay signed in", a session ends after 60 minutes without activity.
  • Recovery codes: every user gets ten, shown once. One code replaces password and authenticator; afterwards a new password is due, a lost authenticator has to be set up again, and new codes are shown.
  • Users: administrators add users with the role Administrator or User (read only), either with a temporary password or with a one-time invitation link (valid for 1, 7 or 30 days). Under Settings, a public address makes invitation links work behind a reverse proxy. Administrators can reset passwords, turn off two-factor authentication, lift lockouts, sign users out everywhere, disable and delete accounts; the last active administrator is protected.
  • Locked out? Run BorgStudio.Server reset-admin [user name] on the server, as the account the server runs under (Linux: runuser -u borgstudio -- /opt/borgstudio-server/BorgStudio.Server reset-admin, Windows: elevated, Docker: docker exec <container> /app/BorgStudio.Server reset-admin). It prints a temporary password, turns two-factor authentication off, lifts the lockout and enables the account.

Development

Requires the .NET 10 SDK. The solution follows Clean Architecture:

Project Role
BorgStudio.Server.Domain Business types, no dependencies
BorgStudio.Server.Application Commands and queries with their handlers, interfaces for the outer layers
BorgStudio.Server.Infrastructure Implementations of those interfaces: database (EF Core, SQLite), accounts (ASP.NET Core Identity), later borg
BorgStudio.Server.Web Blazor Server interface with MudBlazor, host of the server
dotnet run --project src/BorgStudio.Server.Web   # http://localhost:5280
dotnet test

Database changes are EF Core migrations; the server applies them on start.

dotnet tool restore
dotnet ef migrations add <Name> --project src/BorgStudio.Server.Infrastructure \
  --startup-project src/BorgStudio.Server.Web --output-dir Persistence/Migrations

Related

License

MIT © 2026 Niklas Fischbach

About

Self-hosted server for BorgStudio – a central overview of backups across all machines and managed backup targets.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages