Skip to content

Repositories

cuban8IO edited this page Nov 23, 2026 · 2 revisions

A repository is where borg stores the backups. BorgStudio lists them on the left; the Overview tab of a repository shows where it is, how it is encrypted and where its passphrase is kept.

Overview of a repository

Kinds of repositories

Each kind is a provider (a plugin, see Plugins). These come with BorgStudio:

Choosing where a new repository goes

Kinds marked Untested were built from the service's documentation but have not been tried against a real account or target yet (see rsync.net and Network disk). Please report how they work for you.

Local folder

A folder on this computer or on an attached drive (USB disk, network drive). With borg in WSL, Windows paths such as D:\Backups\borg work as they are.

USB or external drive

A repository on a USB stick or an external disk, found again by its borg ID wherever the drive is attached – under another drive letter or mount point, on this or another computer. BorgStudio looks at the last place first, then in the same folder on every drive, then two levels deep.

  • Eject safely after automatic runs (off by default): after scheduled runs the drive is ejected like Safely remove hardware (Linux: udisksctl, macOS: diskutil eject).
  • Back up when the drive is attached, at most every N hours (12 by default): while BorgStudio runs, attaching the drive asks Back up now? and runs all jobs of the repository one after the other.

A local repository that lies on a removable drive offers Keep as USB drive in its editor – same ID, jobs and history.

SSH server

Your own server, NAS or VPS with SSH access and borg installed. Enter host, port, user and the path of the repository. On the first connection BorgStudio shows the server's host key fingerprint and asks you to confirm it; afterwards a server with a different key is refused.

For the login BorgStudio uses an SSH key: pick one from Tools → SSH keys or create one. It can install the public key on the server for you – you type the server password once, it is not stored.

SFTP server (without borg)

For a server or NAS that offers SFTP but has no borg installed. BorgStudio mounts the folder above the repository with sshfs where borg runs (WSL, Linux, macOS) before each borg call and checks that it is really mounted, so borg never writes into an empty local folder. Needs sshfs (BorgStudio says how to install it); native borg on Windows cannot use it. Slower than a server with borg, because borg reads and writes the files over the network.

Hetzner Storage Box

A Storage Box reached over SSH on port 23. Enable SSH support for the box in the Hetzner Console first. Enter the user (e.g. u123456, or u123456-sub1 for a sub-account) and the path relative to the box's home directory, e.g. backups/laptop. BorgStudio checks the box's host key against the fingerprints Hetzner publishes and installs the login key itself.

borg version on the Storage Box: Hetzner offers several borg versions; borg 1.4 is recommended and works with borg 1.2 and 1.4 on your computer.

Adding a Storage Box

BorgBase

BorgBase hosts borg repositories. With an API token (kept in the vault; a token with Create Only rights is enough) BorgStudio registers the login key, finds the repository by its name or creates it (region EU or US) and trusts the server's host key as BorgBase reports it. Without a token, enter the repository's address; BorgStudio shows the public key to add on BorgBase's website. The storage overview shows the repository's quota.

rsync.net (untested)

Untested: built from rsync.net's documentation, not tried with a real account yet.

Enter the server (e.g. zh1234), the login name, the folder in the account (borg by default) and the borg version on the server (borg14 recommended, or borg12). BorgStudio knows rsync.net's published host key fingerprints. The login key is restricted to borg by default; if borg then fails, the editor suggests trying an unrestricted key. With an unrestricted key the storage overview reads the account's quota.

Network disk (iSCSI, NVMe/TCP) (untested)

Untested: not tried against a real iSCSI or NVMe/TCP target yet.

A repository on a disk of your NAS or SAN, attached over the network: protocol, portal (host[:port]), target name (IQN/NQN), optional CHAP login (iSCSI only; the secret is kept in the vault) and the repository folder on the disk. Before each use BorgStudio logs in to the target (unless the disk is attached already), finds the repository by its ID and logs out afterwards – only if it logged in itself.

Logging in needs administrator rights, so saving the repository sets it up once: on Windows (built-in iSCSI initiator, no NVMe/TCP) one UAC prompt creates two Task Scheduler tasks that log in to and out of exactly this target; on Linux (open-iscsi or nvme-cli) pkexec writes a sudoers rule for exactly this login and logout. Scheduled runs then connect without asking. macOS has no built-in initiator and is not supported.

Connect or create

  • Connect an existing repository – for repositories made with the borg command line, another computer or an earlier installation. BorgStudio reads its encryption and checks the passphrase.
  • Create a new repository – borg init with repokey-blake2 encryption (the key is stored inside the repository, protected by the passphrase).

Passphrase

Per repository, the passphrase is kept

  • in BorgStudio's vault (needs a PIN, recommended),
  • in the system keychain (Windows Credential Manager, macOS keychain, GNOME Keyring/KWallet), or
  • nowhere – BorgStudio asks for it every time.

See Security.

The repository key

Export key saves the repository key to a file. Keep it safe and separate from the passphrase: if the repository's key gets damaged, the exported key and the passphrase are the only way to your data.

Integrity check

The Overview tab has an Integrity check card:

  • Check – borg check: the repository and the archives' metadata.
  • Check thoroughly … – borg check --verify-data: also reads and decrypts all data. BorgStudio says how much that is first; for a server repository it downloads all of it.
  • Repair … – only after a check found errors: borg check --repair, after two confirmations. Look for the cause first (disk, memory, connection) – damaged data may get lost while repairing.

The card shows the last result, its depth and duration, and borg's messages. Checks can be cancelled (a repair cannot) and wait while a backup works on the repository.

Automatic checks are set in the repository's editor (Integrity check, off by default): after a backup if the repository was not checked for a number of days (30 suggested), and/or at set times like a schedule, also monthly. Automatic checks are normal checks; a thorough one runs only when you start it. Problems are reported as check errors (Notifications) and shown in the overview of all repositories. The archive list marks the archives the last good check covered (✓ checked, ✓✓ thoroughly checked).

Together with the automatic checks BorgStudio can also restore backups on trial – see restore test.

Releasing a lock

borg allows one writing process per repository and leaves a lock behind when it crashes or a connection breaks off. Once borg reports the repository locked, its overview offers Release lock … (borg break-lock). The warning tells who holds the lock (for local repositories: computer, process, since when). Release it only when you are sure nothing else uses the repository; afterwards start what failed again.

Limits

In the repository's editor, Advanced → Limits:

  • Limit uploads to … MB/s for server repositories, optionally only for backups starting between two times (e.g. 22:00–06:00 runs over midnight).
  • Low priority: borg runs under nice, so the computer stays responsive; on Linux and in WSL the disk priority follows.

Other actions

  • Test connection – checks that borg reaches the repository and the passphrase is right.
  • Free space – runs borg compact; see Cleaning up.
  • Edit – rename, change the passphrase storage or the SSH key.
  • Remove – removes the repository from BorgStudio's list only. The repository and its backups stay untouched; a stored passphrase is deleted (from the vault or the keychain). Its SSH key stays in the key list.

Clone this wiki locally