12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

226CHAPTER 10Techniques for Backup and Recovery1. Create the directory being used to emulate the tape device:mkdir /backupsmkdir /backups/DailySet12. Create an empty file named info in the virtual tape device directory:touch /backups/DailySet1/info3. Create an empty file to represent the tape list:touch /etc/amanda/DailySet1/tapelist4. Create a directory for each virtual tape (where X starts with 1 and increases by 1 foreach tape):mkdir /backups/DailySet1/slotX5. “Load” the first virtual tape so the backups will start with it:ln -s /backups/DailySet1/slot1 /backups/DailySet1/data6. Make sure the amanda user owns all the files:chown -R amanda.disk /backups7. Become the amanda user:su amanda8. Label each virtual tape with the naming convention set by the labelstr parameterin amanda.conf (where X starts with 1 and increases by 1 for each tape):amlabel DailySet1 DailySet1-0X slot X9. Test the virtual tape setup:amcheck DailySet110. If errors occur, fix them and rerun amcheck. Repeat until no errors exist.11. Exit back to root shell instead of being the amanda user:exitA tapetype definition for the hard drive must also be specified as shown in Listing 10.1.The length is the maximum amount of disk space to be used by Amanda to emulate thetape device. In Listing 10.1, 2,048 megabytes is listed to give Amanda 2 gigabytes of spacefor backups. Also set the tapetype parameter in amanda.conf to the name of thistapetype definition.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!