EasyManua.ls Logo

AWS Storage Gateway - Page 97

AWS Storage Gateway
438 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AWS Storage Gateway User Guide
Using Your Tape Gateway
For example, the following command transfers tapes from I/E slot 1601 to storage slot 1.
/opt/bacula/scripts/mtx-changer transfer 1601 1
3. Launch the Bacula console by using the following command.
/opt/bacula/bin/bconsole
Note
When you create and transfer a tape to Bacula, use the Bacula console (bconsole) command
update slots storage=VTL so that Bacula knows about the new tapes that you created.
4. Label the tape with the barcode as the volume name or label by using the following bconsole
command.
label storage=VTL pool=pool.VTL barcodes === label the tapes with the
barcode as the volume name / label
5. Mount the tape by using the following command.
mount storage=VTL slot=1 drive=0
6. Create a backup job that uses the media pools you created, and then write data to the virtual tape
by using the same procedures that you do with physical tapes.
7. Unmount the tape from the Bacula console by using the following command.
umount storage=VTL slot=1 drive=0
Archiving a Tape
When all backup jobs for a particular tape are done and you can archive the tape, use the mtx-changer
script to move the tape from the storage slot to the I/E slot. This action is similar to the eject action in
other backup applications.
To archive a tape
1. Transfer the tape from the storage slot to the I/E slot by using the /opt/bacula/scripts/mtx-
changer command.
For example, the following command transfers a tape from the storage slot 1 to I/E slot 1601.
/opt/bacula/scripts/mtx-changer transfer 1 1601
2. Verify that the tape is archived in the offline storage (GLACIER or DEEP_ARCHIVE) and that the tape
has the status Archived.
Restoring Data from an Archived and Retrieved Tape
Restoring your archived data is a two-step process.
To restore data from an archived tape
1. Retrieve the archived tape from archive to a tape gateway. For instructions, see Retrieving Archived
Tapes (p. 181).
2. Restore your data by using the Bacula software:
a. Import the tapes into the storage slot by using the /opt/bacula/scripts/mtx-changer
command to transfer tapes from the I/E slot.
For example, the following command transfers tapes from I/E slot 1601 to storage slot 1.
API Version 2013-06-30
90

Table of Contents