Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for SAP Administrator's Guide
  3. Performing backups and restores of SAP
  4. Performing an SAP archive
  5. Using two brarchive commands in sequence to create an SAP archive
Veritas NetBackup™ for SAP Administrator's Guide

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

Feedback

Was this page helpful?
Previous

Using the NetBackup multiple copies feature to create an SAP archive

Next

Performing SAP restores using the SAPDBA utility (SAP on Oracle databases only)

Feedback

Was this page helpful?