Ubuntu Server Guide Changes, errors and bugs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
Tape Drives
A tape drive attached to the server can be used instead of an NFS share. Using a tape drive simplifies archive rotation, and makes taking the media off-site easier as well. 304 When using a tape drive, the filename portions of the script aren’t needed because the data is sent directly to the tape device. Some commands to manipulate the tape are needed. This is accomplished using mt, a magnetic tape control utility part of the cpio package. Here is the shell script modified to use a tape drive: #!/ b i n / bash #################################### # # Backup t o t a p e d r i v e s c r i p t . # #################################### # What t o backup . b a c k u p _ f i l e s =”/home / var / s p o o l / m a i l / e t c / r o o t / boot / opt ” # Where t o backup t o . d e s t =”/dev / s t 0 ” # P r i n t s t a r t s t a t u s message . echo ” Backing up $ b a c k u p _ f i l e s t o $ d e s t ” d a t e echo # Make s u r e t h e t a p e i s rewound . mt −f $ d e s t rewind # Backup t h e f i l e s u s i n g t a r . t a r c z f $ d e s t $ b a c k u p _ f i l e s # Rewind and e j e c t t h e t a p e . mt −f $ d e s t r e w o f f l # P r i n t end s t a t u s message . echo echo ” Backup f i n i s h e d ” d a t e Note The default device name for a SCSI tape drive is /dev/st0. Use the appropriate device path for your system. Restoring from a tape drive is basically the same as restoring from a file. Simply rewind the tape and use the device path instead of a file path. For example to restore the /etc/hosts file to /tmp/etc/hosts: mt −f / dev / s t 0 rewind t a r −x z f / dev / s t 0 −C /tmp e t c / h o s t s Bacula Bacula is a backup program enabling you to backup, restore, and verify data across your network. There are Bacula clients for Linux, Windows, and Mac OS X - making it a cross-platform network wide solution. 305 Overview Bacula is made up of several components and services used to manage which files to backup and backup locations: • Bacula Director: a service that controls all backup, restore, verify, and archive operations. • Bacula Console: an application allowing communication with the Director. There are three versions of the Console: Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling