Skip to content

Tape

Tape remains the most economical medium for long-term retention and offline copies. In NGBackup tapes are just another kind of Volume, driven by the same Pools, retention rules and console you use for disk and cloud volumes. Tape I/O runs on Linux Storage Daemons.

NGBackup drives standalone tape drives and tape libraries / autochangers through the Linux SCSI tape driver and the mtx-changer changer script. Declare the library in an Autochanger resource and one Device per drive, each with its Drive Index. Maximum Concurrent Jobs on a Device caps how many jobs may hold that drive.

GenerationNative capacityNative throughput
LTO-51.5 TB140 MB/s
LTO-62.5 TB160 MB/s
LTO-76 TB300 MB/s
LTO-812 TB360 MB/s
LTO-918 TB400 MB/s

Barcode inventory is read with update slots (which syncs the catalog’s slot and in-changer flags) and status storage=NAME slots; label barcodes labels new cartridges. With TapeAlert = yes on a Device, the Storage Daemon queries the drive’s SCSI TapeAlert flags after each tape open and reports them.

Tape data can be encrypted with AES-128, AES-192 or AES-256 (AES-CBC) before it leaves the client, using the File Daemon’s PKI encryption (Pki Cipher). The data stays encrypted on the wire, on disk pools and on tape, independently of the drive hardware. NGBackup does not manage LTO drive hardware encryption keys.

Direct-attached tape and dedicated backup network

Section titled “Direct-attached tape and dedicated backup network”
  • Direct-attached tape (LAN-free on Linux): a Storage Daemon can run on the protected Linux server itself, with the tape drive or library attached to that server (directly or through SAN zoning). Backup data then goes from disk to tape on the same host instead of crossing the production LAN. A drive is used by one Storage Daemon; drives are not shared dynamically between several servers.
  • Dedicated backup network: point the Director’s Storage resource Address at the Storage Daemon’s interface on a dedicated backup segment, so File Daemons send backup data over that network.

The recommended architecture is disk-to-disk-to-tape (D2D2T): back up to disk first, then use Copy or Migration jobs to place a copy on tape. They are ordinary jobs, scheduled and monitored from the same console and Web Console as every other job.

  • Copy re-writes the volumes of the most recent successfully terminated backup to the destination pool (Next Pool), with catalog records so the copy is restorable on its own. The disk copy stays in place for fast restores.
  • Migration does the same copy and then, only if the copy fully succeeded, prunes the source job and its volumes.
  • Source and destination devices must belong to the same Storage Daemon.

Schedule the Copy job right after the backup it should copy.

# --- Storage Daemon ---
Autochanger {
Name = "LibLTO9"
Changer Device = /dev/sg3
Changer Command = "/opt/backup/scripts/mtx-changer %c %o %S %a %d"
Device = LTO9-Drive0, LTO9-Drive1
}
Device {
Name = "LTO9-Drive0"
Media Type = LTO-9
Archive Device = /dev/nst0
Autochanger = yes
Drive Index = 0
AutomaticMount = yes
Always Open = yes
Removable Media = yes
Random Access = no
TapeAlert = yes
Maximum File Size = 8G
}
# --- Director ---
Pool {
Name = "TapeVault"
Pool Type = Backup
Storage = "LibLTO9"
Recycle = yes
AutoPrune = yes
Volume Retention = 5 years
}
Job {
Name = "CopyToTape"
Type = Copy
Next Pool = "TapeVault" # destination: tape
Schedule = "NightlyAfterBackups"
Priority = 12 # runs after the (higher-priority) backup jobs
Messages = Standard
}

A VirtualFull synthesizes a new full backup from the last full plus the later incrementals and differentials without contacting the client: the Storage Daemon reads the existing volumes and writes a consolidated full to the destination pool. It consolidates within one Storage Daemon. Writing VirtualFulls to a tape pool gives a self-contained full on cartridges, so a disaster-recovery restore needs a single set of tapes.

Restores from tape use the same restore workflow as any other medium:

  • Individual files and folders: browse the catalog, mark items and restore them from the cartridge; there is no need to restore a whole job to extract one file. The catalog’s file positioning lets the drive space to the right tape file (see Maximum File Size on the Device resource).
  • Whole server: restore the complete Content of a job from the tape set back to disk or to replacement hardware.

The catalog tracks whether each cartridge is in the changer and in which slot. When cartridges leave the library, mark them:

* update volume=TAPE0042 inchanger=no slot=0
* list volumes pool=TapeVault

When they come back, load them and run update slots storage=LibLTO9 to resynchronize slots from the barcode inventory. There is no vault-location field in the catalog; keep the offsite location of each cartridge in your media log. Volume lifecycle, labeling and recycling are covered in Volumes, pools & auto-labeling.

  • Priority: the Job Priority directive orders jobs competing for the drives; keep backups at a lower number (higher priority) than copy jobs.
  • Automatic retries: Reschedule On Error, Reschedule Interval and Reschedule Times rerun a failed job.
  • Pre-flight estimate: estimate job=NAME level=Full reports the file count and byte total a job would back up before it runs, so you can check that enough tape capacity is loaded. Mount requests and job errors are mailed through the Messages resource (Operator = ... = mount).

Tape pools support Full, Incremental and Differential levels exactly as disk does. Separate pools per level (Full Backup Pool, Incremental Backup Pool, Differential Backup Pool on the Job) keep cartridge sets on independent retention clocks.