On this page

8.6 Rotated drives and storage quotas

Two features for home use: rotated drives, where USB disks take turns being attached (one at home, one off-site), and storage quotas, which limit the space a machine can use in a repository.

Rotated drives

Several removable disks on the server PC are grouped into a rotation set. Each disk has its own repository with its own configuration, key and snapshot chain, and is an ordinary local repository. Disks on agent machines are not supported.

Setup

  1. Create a local repository on each disk in the same relative folder (for example pdc); see section 8.2 Creating a repository. Attach the disks one after the other for this.

  2. In the details of the first repository choose Rotated drive… and select new rotation set. Set the set name, Folder on the disk (the same on every disk) and the options below, give a Disk label (for example "Disk A") and click Add disk.

  3. Do the same for the other disks, choosing the existing set. The repository must lie in the set's folder on its disk, and the disk must be attached when you add it.

  4. Create a copy job whose target is one of the disks (see section 8.7 Backup copies (3-2-1)). It writes to the disk that is currently attached, with its own retention per disk.

Options of a rotation set

Option

Effect

Default

Set name

Display name of the set.

"Rotated drives" or the name of the first repository

Folder on the disk

Path of the repository below the disk root, the same on every disk. Relative: no drive letter, no leading slash, no .. or :, at most 200 characters. Backslashes become /. When changing it, every disk must already lie in the new folder.

last folder name of the repository path

warn after … days unattached (Overdue days)

After this many days without the disk attached, it counts as overdue. 0 turns the warning off; allowed are 0 to 3650.

7

start the copy jobs when a disk is attached

Starts all copy jobs whose target is a disk of the set when a disk is attached.

on

Disk label

Name of the disk, for example "Disk A".

empty

The menu of a drive (Rename…, Remove from set…, Open repository, Last copy log, Copy path, Copy repository ID) and Edit rotation set change the set later. Removing a disk keeps the repository and its snapshots.

How the server finds the disks

A watcher checks every 10 seconds which disks are attached. It looks for <disk root>/<set folder>/config.

System

Disk roots

Windows

Drive letters (USB hard disks usually report as fixed drives).

Linux

Mount points below /media, /run/media and /mnt.

A disk is recognized by the repository's config file, not by drive letter or path: it may get a different letter or mount point depending on the port. When a disk is attached, its snapshots are read again; with automatic copying, all copy jobs of the set start.

Key in server.toml

Effect

Default

[rotation] scan_secs

Seconds between two scans; 0 turns the watcher off (then use Scan for drives now in the panel).

10

[rotation] mount_roots

List of folders whose subfolders (two levels) count as disk roots, instead of drive letters or the default mount points.

empty

States in the panel

The Rotated drives panel shows per disk Disk, State, Seen, Last copy, Snapshots and Free.

State

Meaning

not attached

The disk is not at the server.

attached

The disk was detected.

copying

A copy job is writing to the disk.

can be removed

The copies are finished; the disk may be unplugged.

copy failed

The last copy run failed. Last copy log shows the reason.

overdue

The disk has not been attached for longer than configured.

The panel also names the set's copy jobs ("Copy jobs into the set …"), the watched folders and the scan interval. Without a copy job it says to add one whose target is one of the disks. Scan for drives now triggers a scan at once.

Two events go to the notifications (see chapter 10 Monitoring and Reports): rotation_drive_ready ("drive can be removed") and rotation_drive_overdue (overdue disk; once, until it is attached again). If the disk is pulled during a run, the run fails before snapshots are registered; at most unreferenced packs stay on the disk, which prune removes.

Storage quotas per machine

A quota limits how much space a machine uses in a repository. That keeps one machine with very large data from filling the whole storage.

Repository details with usage, forecast and storage quotas
Repository details with usage, forecast and storage quotas

An admin sets quotas in the repository details under Machine quotas (a default for all machines or one per machine) or in the agent's settings (quotas per repository, see chapter 05 Agents).

Options

Option

Effect

Default

Default per machine

Quota that applies to every machine without its own. Edit with Set or Change, delete with Remove.

none

Limit

Number greater than 0 (step 0.01).

100 when created

Unit

MiB, GiB or TiB.

GiB

warn at (Warning threshold in percent)

Share of the limit from which a warning is raised, 1 to 100.

90

refuse backups when over

A backup of a machine at or over its limit fails at start.

off

Set own quota / Edit own quota / Remove own quota

Per machine in the table (pencil icon or right-click): replaces the default quota for that machine.

–

The table shows per machine the used size, the quota that applies (with "(default)" when inherited and ", rejects" when refusal is set) and the fill level in percent: gray when ok, a warning from the threshold, "over N%" at the limit.

What is counted

  • Per-machine index: the stored size (compressed and encrypted) of all blobs the machine owns. A blob owned by several machines counts fully for each, as if each had a repository of its own. The value does not fall when snapshots are forgotten, only after maintenance that actually removes data.

  • Shared: the packed data that the machine's snapshots added when they were made (only snapshots still in the repository). Data of forgotten snapshots that newer ones still use is no longer counted.

The value is computed after every backup of the machine, after maintenance, when a quota changes, and before a backup starts where refusal is set. Recompute (Operator role) starts the calculation at once; the line below shows when it last ran.

Consequences

From the warning threshold a warning appears in the run log, and the event quota_exceeded goes to the notifications (warning at the threshold, error at the limit; once until the condition clears, see chapter 10 Monitoring and Reports). With refuse backups when over set, a backup of a machine at its limit fails right away with a message. Remedy: raise the quota, or forget snapshots (see section 8.4 Retention) and run maintenance (see section 8.8 Maintenance, checks and restore tests).

Last updated Nov 15, 2026