Using two brarchive commands in sequence to create an SAP archive
You can also create two copies of the archive log by issuing two brarchive commands in sequence.
For the first copy, call brarchive with the -s option. For the second copy, call brarchive with the -sc option. Both commands automatically determine that the archive log file needs to be backed up and perform the backup.
Be sure that each brarchive command uses either a separate utl file or separate environment variable values where either the policy or schedule name differ. The policy or schedule should identify the unique media or storage units to use to ensure that the second copy is not written to the same media as the first copy (and subject to loss at the same time). For example, you can write each backup copy to two different volume pools, to disk and tape, or to two different DSUs.
The following example shows how two brarchive commands are used in sequence to create two copies of an SAP archive. This example assumes that only one archive log is to be backed up, archive log 77.
To create the backup copies | To create the first backup copy, issue the following commands: SAP_SCHED=To-DSU ; export SAP_SCHED brarchive -d util_file -s To create the second backup copy, issue the following commands: SAP_SCHED=To-Pool1 ; export SAP_SCHED brarchive -d util_file -sc On Windows, the syntax to set the environment variables is: SET SAP_SCHED=To-DSU |
To restore the archived log files | To restore from the first backup copy, issue the following command: brrestore -a 77 To restore from the second backup copy, issue the following command: brrestore -a2 77 |