Configuring backup scripts
For backups using a snapshot method, you can run scripts before and after the snapshot by adding directives to the list, as follows.
To configure backup scripts
- On the master server, open the NetBackup Administration Console.
- Click Policies.
- In the All Policies pane, double-click the name of the policy.
- Click the Backup Selections tab.
- Add the following directive to the start of the Backup Selections list:
METHOD=USER_DEFINED
- Add one or both of the following directive(s), as required.
DB_BEGIN_BACKUP_CMD=your_begin_script_path DB_END_BACKUP_CMD=your_end_script_path
Note:
DB_BEGIN_BACKUP_CMD and DB_END_BACKUP_CMD directives are not supported for Windows clients.
The arguments (arg) are optional.
For example:
In this example, the script shutdown_db.ksh is run before the backup, and restart_db.ksh is run after the snapshot is created.