Backup Media

Table of contents
No headers

ZMC Backup Media Page  

Amanda uses labels to identify backup media. Labels ensure that the correct backup media is loaded for the backup set and that no backup is overwritten before the planned cycle is complete. When ZMC finds a labeled piece of media (or media that appears to already contain backup data), it will not write a backup to that tape. When the ZMC finds unlabelled media, it: 

  1. Writes a label for subsequent identification 
  2. A record of the new media is cataloged. This allows the ZMC to use new media before used media is recycled. Media is used in the order that it is labeled. 

When the ZMC finds media that belongs to some other backup set (or media that has been written to by another application), it is not used, and an error message is returned. You can manually "force" labeling of such media by setting the Overwrite Media Option described below to Yes. 

ZMC will not overwrite an existing backup tape until it has first written a number of fresh tapes equal to the number of tapes in the planned Backup When page. 

 

ZMC Backup Media page allows users to view backup sets media information, manage media and label media. They are described in the following sections. 

 

 

Manage Media  

 

The Manage Media table (as shown below) shows the list of media volumes in the backup set and volume labels. It shows when the media was used for backups. You can sort the table using the Last Used column. The Archived column shows the media volume has been archived. Archived volumes are retained forever and are not used for backups (i.e, never overwritten). 

 

 

L0 in the Media Labels column shows that the media contains level 0 backup of a backup object (DLE). You can find more information about the data in the media volume in ZMC Report pages. 

 

 

The yellow color on the media volume row(s) indicates the latest L0 backup. The green color in a row indicates that this volume will be overwritten as part of the media rotation by Amanda. The red color indicates that tape is likely to be overwritten unless new tapes are available. This information is useful in tape changer configurations to make sure fresh tapes are available. 

 

Select All 

Select all entries. 

 

Recycle 

Recycle identifies the media as immediately available for re-use (in other words, existing data on the media will be overwritten and lost). Recycle operations cannot be performed while a backup is in progress. 

 

Drop 

Removes the media and all backups it contains from the Amanda server. Do not drop media that you wish to restore from in the future unless you first click the Archive button for that media, and then manually copy the data to a different location. Drop operations cannot be performed while a backup is in progress. 

 

Prune

Pruning removes all the expired media at once. Unexpired media cannot be pruned. 

 

Archive 

Amanda will take the media volume out of rotation. The media volume will not be overwritten. You should use the preserve, backup data for a longer duration. This media volume is still tracked by Amanda catalog and is available for backup restoration.

 

 

 

The above picture shows the Backup Media page for S3 storage where Amazon S3 is used for archival. The backups are stored with forever retention. Users can use the Prune button to manually delete backup images from Amazon S3 storage. 

 

Media Labelling  

 

Amanda media must be labeled before it is used for backups. Disk backup media volumes are labeled automatically. If the backup sets use disk backups, the following message will appear. Auto Labelling can be enabled in Backup Where page. 

 

It should be noted auto labeling will work only with new tapes and auto labeling will not work on tapes that have any data (not just other Amanda labels). 

 

You can label media volumes (tapes) manually. In a backup set that uses a tape changer, use Scan All Slots to read the labels from the tapes (if any) that are on the slots reserved for the backup set (See Starting/ Last Slot number in Backup Where page). Scan all slots before starting the manual labeling process. 

 

 

The list of tapes with barcodes is displayed with slot numbers. It also shows the Last Used date when a backup run used the tape. If there is no tape label, the table shows unknown. If there is no tape in the slot, an empty slot is displayed as shown for slots 24 to 29 in the table below. 

 

 

In Advanced Options, you can include a tape bar code in the tape labels. Please note that the bar code reader must be enabled in Backup Where page. See the next section on how to configure Tape changer bar code information. 

Use Overwrite Media option to label tapes that already have data in them. Use caution before overwriting the label. The old data cannot be recovered. 

 

Use the Save Labels option to save the Media labels of the selected barcodes. 

 

 

Note: Custom label option is not present in 4.X 

 

Tape Changer Bar Codes  

Amanda Enterprise edition supports tape changers with bar code readers. To use barcodes in a backup set, it is necessary to initialize the bar code database. Initialization steps must be performed using command line tools. Initialization is required only if tapes were not labelled with bar code enabled or not managed using Zmanda Management Console. 

 

1. Remove the existing bar code database file (if any) on the Amanda server.

 

$ /etc/amanda/<backup set name>/changer-barcodes 

 

2. Create bar code database file for the backup set on the Amanda server. This process can take a lot of time. The process involves loading of all tapes in the tape changer and barcodes are read.

 

$ /usr/sbin/amtape <backup set name> update 

 

This operation can be performed only after saving a Backup Where configuration for the backup set and must be performed as the amandabackup user on the Amanda server.