KB Logo

TOLIS Group Knowledge Base

Browse KB by category:
Go to KB #:
Glossary
Email   Bookmark



How to use BRU with Autoloaders

Views: 13636
Votes: 1
Posted: 08 Nov, 2007

Using Autoloaders and BRU

Note: these scripts are only samples and may not work in your environment. These scipts are for BRU 17, not BRU Server or BRU LE.

Your Choices

Most autoloaders are intelligent devices and offer a great deal of media manipulation and control when the users has the necessary software required to be able to pause the flow of backup or restore data during tape changes. To allow you to use autoloaders, BRU comes with two scripts which you can modify for use with your autoloader(s).

There are two things you must be aware of: BRU is only designed to work with autoloaders that have a single drive in them and, secondly, the scripts provided assume your autoloader is set to sequential mode.

By modifying one of these two scripts, you can configure BRU to work with your autoloader. Which script you modify depends on your desired results.


Method 1:

You can configure BRU so that after each backup, BRU performs an autoscan then ejects the tape. If you wish to issue several independent backup commands, each new backup would start on a new tape.

Method 2:

You can also change BRU to allow you to place multiple archives on a single tape. With this configuration, the tape would not eject unless it is full. This method utilizes your non-rewinding tape drive.


Samples:

Method 1 Sample

By modifying the unmountcmd.sh script provided with BRU, you can configure BRU as follows:

# Nightly backup script for BRU, includes autoscan of all backups
# Place the local system on tape 1
bru -cvRXVf /dev/st0 / > /var/log/brubackup.log1.`date +%a` 2>&1

# Backup System2. Note, BRU will change tapes first
bru -cvRXVf /dev/st0 /mnt/sys2 > /var/log/brubackup.log2.`date +%a` 2>&1

# Backup System3. Note, BRU will change tapes again
bru -cvRXVf /dev/st0 /mnt/sys3 > /var/log/brubackup.log3.`date +%a` 2>&1

Method 2 Sample

By modifying the mountcmd.sh script provided with BRU, you can configure BRU as follows:

# Nightly backup script for BRU
# Backup the local system first, in 3 pieces
# Ensure default bruxpat is in use
BRUXPAT=/etc/bruxpat ; export BRUXPAT
mt -f /dev/nst0 eod # moves the current tape to end of data
bru -cvmRXVf /dev/nst0 / > /var/log/brubackup.log1.`date +%a` 2>&1
bru -cvmRXVf /dev/nst0 /home >> /var/log/brubackup.log1.`date +%a` 2>&1
bru -cvmRXVf /dev/nst0 /u3 >> /var/log/brubackup.log1.`date +%a` 2>&1

# Backup System2, 2 pieces
bru -cvmRXVf /dev/nst0 /mnt/sys2/home > /var/log/brubackup.log2.`date +%a` 2>&1
# Need to use bruxpat.sys2.root to preclude backing up home
BRUXPAT=/etc/bruxpat.sys2.root ; export BRUXPAT
bru -cvmRXVf /dev/nst0 /mnt/sys2/ >> /var/log/brubackup.log2.`date +%a` 2>&1

# Backup System3, all in one
# Return to default bruxpat
BRUXPAT=/etc/bruxpat ; export BRUXPAT
bru -cvRXVf /dev/nst0 /mnt/sys3 > /var/log/brubackup.log3.`date +%a` 2>&1


 

Instructions:

Method 1 Web Page
Change tape after each BRU command

Method 2 Web Page
Allow multiple archives on a single tape

Others in this Category
document Important changes made to the 'bruxpat' file declaration in version 17.0.1.4.6 and higher.
document Sample BRUTAB Settings
document Setting up an Autoloader to work with BRU - Method 2
document Disable/Enable Hardware Compression When Using BRU
document How do I use BRU with CRON?
» More Articles



RSS
Powered by KnowledgebasePublisher
Page Load Time: 0.030365 seconds / 30.365 milliseconds.
Page File Size: 25449 bytes.