Consultor Eletrônico



Kbase 12069: Multiple Databases to 1 tape: UNIX ONLY
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Multiple Databases to 1 tape: UNIX ONLY


Customers occasionally ask how to put more than one database on a
backup tape using probkup. This KBase entry suggests a way to do
this. However, PROGRESS does not support or recommend doing this.
Putting more than one database backup on a tape results in
significant risk that if a tape is lost or destroyed, ALL
databases will be lost, not just one.


The following code example demonstrates how you can put multiple
backups to one tape using the PROBKUP and PROREST utilities. This
example is specific to the UNIX Operating System only. You need to
modify this code for the device you use.

> probkup db1 /dev/rmt/0n
> probkup db2 /dev/rmt/0n

This will back up the two databases db1 and db2 onto the same tape.
There will be a tape marker preceding each database. If you need
to restore from backup, use the following script (modifying the
script with your device). The dd command is a low-level tape
manipulation utility. 'if' is your 'input file', which is the
device; likewise, 'of' is the 'output file'. This 'dd' command
throws away the file marker to get to the first backed up
database. If you need only the second database, then you would
issue two 'dd' commands before issuing the prorest command.

> mt rewind
> dd if=/dev/rmt/0n of=/dev
ull
> prorest db1 /dev/rmt/0n
> dd if=/dev/rmt/0n of=/dev
ull
> prorest db2 /dev/rmt/0n

Progress Software Technical Support Note # 12069