guides

LTO tape backup with Proxmox Backup Server

LTO drive, media pools, hardware encryption, tape jobs and restores: how to set up tape backup with Proxmox Backup Server.

Tape carries an old-school reputation, something for large enterprises with robot-filled machine rooms and staff who still know how to clean a read head. It keeps coming back into backup designs for a plain reason, though: once a cartridge leaves the drive, nothing is connected to it. No compromised account, no encryption script and no remote mistake can reach it. A single tape ticks three boxes of the 3-2-1 rule at once: an extra copy, on a different medium, that you can move somewhere else. Proxmox Backup Server handles tape natively, with its own driver and its own jobs. This guide walks through the whole setup, from plugging in the drive to restoring data.

Keep one thing in mind before you start: tape gives no random access to your data. A restore means reading the cartridge back into a datastore first, and the PBS documentation is clear that this takes much longer than restoring from disk. Tape is the copy for the worst day, not for everyday restores.

LTO drive, library and connection

Proxmox Backup Server supports LTO drives from generation 5 (LTO-5) onwards. Generation 4 gets best-effort support: many LTO-4 systems work, some need a firmware update or lack features PBS relies on. Proprietary tape technologies are not tested by Proxmox.

You can go with a standalone drive, where cartridges are swapped by hand, or with a tape library (also called autoloader or robot) holding one or more drives, cartridge slots, a barcode reader and an arm that moves the tapes. PBS drives libraries through the SCSI Medium Changer protocol, which covers current models. External drives usually connect over SAS, so plan for a SAS HBA in the PBS server.

PBS talks to the drive through its own user space driver, written in Rust, over the SCSI generic interface. The documentation advises against using the old Linux kernel tape driver alongside it.

Throughput is the part people tend to underestimate. According to the PBS documentation, an LTO-8 drive writes at up to 360 MB/s, which still means at least 9 hours to fill a 12 TB cartridge. The source datastore has to keep up: Proxmox measured 60 to 100 MB/s when reading from a single spinning disk, or 33 hours to read enough data to fill that same tape. If you want the drive running at full speed, the datastore must deliver it, for instance from SSDs. Drive compression, on the other hand, brings nothing: PBS already stores compressed data.

Once the hardware is connected, PBS detects it and you create the configuration entries using the persistent paths under /dev/tape/by-id/:

proxmox-tape drive scan
proxmox-tape drive create drive1 --path /dev/tape/by-id/scsi-12345-sg

# With a library: declare the changer, then attach it to the drive
proxmox-tape changer scan
proxmox-tape changer create robot1 --path /dev/tape/by-id/scsi-CC2C52
proxmox-tape drive update drive1 --changer robot1 --changer-drivenum 0

proxmox-tape status --drive drive1 then tells you whether the drive answers.

Media pools and media sets

Tape rotation in PBS is built on the media pool, a logical container of cartridges. A backup job targets one pool and only uses its tapes. The pool carries two settings.

The allocation policy decides when a new media set starts, a media set being a group of tapes written one after the other:

  • continue keeps extending the same media set. It is the most space-efficient option, but a restore may have to read every tape in the set, and a single damaged tape makes the restore fail;
  • always starts a new media set with every job: smaller sets, easier to ship off-site and faster to restore, at the cost of partly filled cartridges;
  • a calendar event (weekly, monthly, mon and so on) opens a new set at regular intervals, a middle ground between space and cartridge count.

The retention policy says how long the data is protected: it can be overwritten at any time (overwrite), protected for a period (for example 3 weeks), or kept for good (keep).

The media set is also the unit of restore, which catches many people out. Data is fully deduplicated inside a set and therefore spread across all of its tapes, so even restoring a single VM may require reading every tape in the set. Retention also starts at different points depending on the allocation: with always it runs from the creation of the set, with a calendar event it starts when the next set is created.

The documentation suggests a layout that works well in practice: a weekly pool (allocation mon, retention 3 weeks) whose sets expire roughly every four weeks, plus a yearly pool (allocation yearly, retention keep) for long-term archives.

proxmox-tape pool create weekly
proxmox-tape pool update weekly --allocation mon --retention '3 weeks'
proxmox-tape pool list

Preparing cartridges

Starting with LTO-9, a new cartridge has to be initialised in the drive before first use. This Media Optimization step usually takes 40 to 120 minutes per cartridge. Proxmox recommends running it with the tools from your drive or library vendor, and some libraries can process a whole batch. Otherwise, the slow format in PBS wipes the cartridge and triggers the optimization:

proxmox-tape format --drive drive1 --fast 0

Watch out for the fast format, which is the default: on a partitioned LTO-9 cartridge it only formats the first partition.

Each cartridge then gets a label, stuck on the case and written magnetically on the tape. With a standalone drive, insert the cartridge and write the label:

proxmox-tape label --changer-id WEEKLY01 --pool weekly
proxmox-tape read-label

With a library, use 8-character Code 39 barcode labels (Proxmox provides a generator), load the cartridges and label them all at once with proxmox-tape barcode-label --pool weekly. As a safety measure, labelling refuses a tape that already holds data.

Encrypting tapes

LTO-4 and later drives include an AES-GCM encryption engine. PBS uses it at pool level: once a key is attached to the pool, everything written to its tapes is encrypted, and a cartridge lost on its way to the vault stays unreadable.

proxmox-tape key create --hint "tapes 2026"
proxmox-tape key list
proxmox-tape pool update weekly --encrypt <key-fingerprint>

The password-protected key is stored on every cartridge. If you lose the server, proxmox-tape key restore recovers it from a loaded tape, provided you know the password. To avoid relying on memory, print a QR-code version of the key and keep it with your recovery documents:

proxmox-tape key paperkey <key-fingerprint> --output-format text > tape-key.txt

If your backups are already encrypted client-side, they end up encrypted twice on tape: PBS copies chunks as they are and the drive adds its own layer. The two keys are managed separately, and encryption key management deserves the same care in both cases. Changing the pool key also opens a new media set.

The tape backup job

A tape backup job ties a datastore, a pool, a drive and a schedule together:

proxmox-tape backup-job create tape-weekly --store vmstore1 \
  --pool weekly --drive drive1 --schedule 'sat 08:00'

By default it copies every snapshot of every group, across all namespaces of the datastore, recursively. Three options change that behaviour:

  • --latest-only copies only the latest snapshot of each group;
  • --eject-media ejects the cartridge when the job ends on a standalone drive, or moves it to a free slot in a library, which also keeps dust off it;
  • --export-media-set moves every tape of the set to the library’s import/export slots, ready for the vault, and forces a new set on the next run.

A failed job leaves the tape in the drive. proxmox-tape backup-job run tape-weekly starts the job on demand, and the web interface offers the same settings under Tape Backup > Backup Jobs.

The datastore has to be local to the drive

A tape job reads a datastore configured on the server that hosts the drive; the web interface even labels the field Local Datastore. If your backups live on another PBS, at a provider or on another site, pull them in with a sync job first, then write to tape from that local copy.

proxmox-backup-manager remote create pbs-prod --host pbs-prod.example.lan \
  --userid sync@pbs --password 'SECRET' --fingerprint <certificate-fingerprint>
proxmox-backup-manager sync-job create prod-to-tape --remote pbs-prod \
  --remote-store vmstore1 --store staging --schedule 'fri 22:00'

Schedule the tape job after the sync window, with some slack for busy weeks. Keep the staging datastore between runs rather than emptying it: it saves you from transferring everything again each time, but it takes as much space as the data it mirrors, so size the server accordingly. Pull mode has another benefit: the tape server fetches the data, and the production server holds no credentials for it.

Restoring from tape

Restores work per media set. The cartridge catalog tells you which set holds what:

proxmox-tape media content
proxmox-tape restore <media-set-uuid> vmstore-restore

To bring back only a few snapshots instead of the whole set, pass them as arguments in the source-datastore:type/id/time format:

proxmox-tape restore <media-set-uuid> vmstore-restore \
  vmstore1:vm/101/2026-11-28T22:00:00Z

A selective restore reads the tape several times, so for many snapshots it can take longer than restoring the full set. The --namespaces option also lets you pick namespaces and map them to different ones in the target datastore.

On a server rebuilt after a disaster, the catalog is gone with the old machine. Insert the first tape of the set and run proxmox-tape catalog, then repeat with the others; without a catalog you can only restore the full set. If the tapes are encrypted, restore the key before anything else. Once the snapshots are back on disk, add the datastore as storage in Proxmox VE and restore your VMs as usual. Rehearse this scenario: a restore that actually ran is the only proof the chain works.

WORM tapes

WORM (write once, read many) cartridges can be neither erased nor overwritten, which meets some legal requirements. PBS treats WORM and regular cartridges the same way, so it is up to you to keep them in a dedicated pool with a keep retention policy; otherwise a job will fail when it tries to erase or overwrite a tape. Never mix the two kinds in one pool, and give them a distinct naming scheme.

Tape copy managed by Cloud-PBS

Tape takes discipline: cartridge rotation, drive cleaning, off-site storage, test restores. That is usually what puts people off, more than the hardware cost. For datastores hosted with us, we are preparing an offline LTO tape copy built on exactly this pattern: a remote sync before each run to a drive installed in our offices, away from the datacenter, then cartridges stored offline. The service is in preparation, billed per cartridge: EUR 79 per month excl. VAT up to 10 TB, then EUR 99 per 16 TB tranche, on top of the datastore. If you are building your own chain, the 3-2-1 storage cost breakdown for PBS will help you place tape in the overall budget.

proxmox-backup-servertape-backupltooffline-backupair-gapped

Ready to try Cloud-PBS?

Start your 7-day free trial today.

Start free trial