Kbase 17641: Automating Probkup for Multiple Tapes:
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Automating Probkup for Multiple Tapes:
Automating Probkup for Multiple Tapes:
(This is NOT SUPPORTED and it is highly recommened that you fully
test this procedure PRIOR to implementation)
Many customers face the problem that when they go to backup their
database it will span more then one tape or file. In many instances
these users are also not around to manually enter in the next device
or switch tapes. In cases like these, a user would like to automate
these scripts so that they do not have to be present to enter the key
strokes that are needed to continue with the backup procedure.
To help automate this procedure a user must run the probkup utility
(at least once)interactively so that they can capture and record each
keystroke they have to make. Once they have recorded all these
keystrokes they can enter them into a text file and redirect those
keystrokes into probkup.
probkup dbname /dev/tape < input.file
This same procedure is very helpful in cases where you have filled the
first tape or volume size(If backing up to a file) and you need to use
a new device name or file name. For example if you run into this case
you may be prompted as follows:
Please enter next device/file name or type "quit" to exit:
In cases where you are prompted for a new device/file name you should
keep in mind that you need to either indicate a different file name or
a different device name. If you enter in the same device name without
changing tapes your backup will be overwritten. So, you will need to
change tapes or enter in a different device name that you have
prepared for the remaining portion of the backup. Once you have ran
through this procedure (once interactively) it is also HIGHLY
recommended that you go ahead and try restoring your backup to ensure
that it was successful.
This input.file may be as simple as one line but lets say that our
backup is going to span 4 tapes and I have 4 different tape drives
that I can send output to. My input.file would look like:
************************ input.file ******************************
/dev/rmt2 (hard return)
/dev/rmt3 (hard return)
/dev/rmt4 (hard return)
(hard return)
***************************End of File input.file *******************
Basically, this example is showing that after the user has initially
executed their probkup command(as displayed above) it has prompted the
user 3 additional times for the next device or file name. What will
happen is by including the NEXT 3 devices the input file will send the
input to the next prompt made by the probkup utility. Keep in mind
that after each new device/file name you must include a hard return in
the file to continue. The first device/file name is provided on the
command line when executing the probkup utility.
For additional information on this topic and an example of how to
backup your 2+ GB database to a multiple files please see kbase
17530 How-to backup and restore to disk >2GB.
Please keep in mind that it is RECOMMENDED that you should test this
procedure prior to implementing it into production.
CSG 2/2/98
Progress Software Technical Support Note # 17641