From the Restore Options
dialog box, click the Advanced
button.
From the Advanced Restore Options dialog box, click the
Pre/Post tab to open the dialog box from which you can assign Pre/Post commands to the restore operation.
Click inside the text box that corresponds to the restore phase that you
want to start the process.
Type the full path of the process (i.e., batch file or shell script) that you want executed. Alternatively, use Browse
to locate the process (applicable only for paths that do not contain any
spaces).
Repeat Steps 4 and 5 for each additional phase/process that you want
executed.
If you want to run a PostRestore process for all attempts to run the
restore job phase,
then select the corresponding checkbox.
If no Pre/Post Impersonation account is currently selected, or if you want
to change the account, select Use Local System Account, or select Impersonate User
(applicable for Windows clients) and enter a
user name
and password. Click OK.
If you selected Local System Account, click OK
to the message advising you that commands using this account have rights to
access all data on the client computer.
Click OK to save your entries. This closes the
Pre/Post commands dialog box.
Optionally, select any additional restore options from the Restore Options
dialog box.
Click OK.
Click Schedule to schedule the job, or click OK to run the
job. The progress of the restore job can be monitored using the Job
Controller.
NOTES
Once a Job has been scheduled, Pre/Post processing
commands cannot be added or removed from the restore operation. To
change the Pre/Post processing commands of a restore operation, the
operation must be cancelled and rescheduled as described above.
To change
a user account for executing pre/post commands for Data Protection jobs:
From the CommCell Browser, expand the tree to view the appropriate level
icon for the affected agent.
From the agent, instance/partition, or backup set/archive set level, right-click
the appropriate icon, click All Tasks, and click New Subclient
from the short-cut menu.
From the subclient level, right-click the subclient icon and click
Properties from the short-cut menu.
From the Subclient Properties dialog box, create and/or configure the subclient
as appropriate. Then click the Pre/Post Process tab.
From the Pre/Post Process tab, click Change.
From the
User Account dialog box, select one of the account options. If you select
Impersonate User, type the appropriate user name and password.
To change
a user account for executing pre/post commands for Data Recovery jobs:
From the CommCell Browser, expand the tree to view the appropriate level
icon for the affected agent. Then right-click the icon and click All
Tasks from the short-cut menu.
Click the appropriate Browse or Restore option. Then populate,
select, and click as appropriate to access the Restore Options dialog box.
From the Restore Options dialog box,
click Advanced.
From the Advanced Restore Options, click the
Pre/Post tab.
From the Pre/Post
tab, select one of the account options in the
Pre/Post Impersonation area. If you select Impersonate User, type
the appropriate user name and password.
To
configure a command delay for a pre/post process for NetWare/NDS iDataAgents:
Locate the GALAXY.INI file in the
directory where the iDataAgent was installed on the NetWare server, (e.g.,
SYS:\<Software Installation Path>).
Open the GALAXY.INI file and at the very end of the file, create a new section by typing
[Command
Delay].
Under this new heading, define all delays by typing the full path of the file to be executed for each
corresponding pre/post process. Ensure that the full correct path is placed here by retrieving the path from the
Pre/Post Process tab of the subclient's properties, (e.g.,
SYS:\PrePost\PreScan.ncf).
After each full path, specify the number
of seconds to delay the process before continuing, (i.e.,
SYS:\PrePost\PreScan.ncf=60). With this
entry, whichever pre/post process has this path defined in the subclient's
properties will be delayed for 60 seconds before continuing.
Save all changes to GALAXY.INI, and
close the file.
Configure a Replication Set for Pre/Post Processes for Recovery Point
Creation
To configure
a Replication Set for Pre/Post processes for Recovery Point creation:
In the CommCell Browser, right-click the Replication Set for which you want
to configure a pre/post process, then click Properties from the shortcut
menu.
Click inside the space that corresponds to one of the following phases and
type the full path of the process that you want executed during that phase.
Alternatively, click Browse to locate the process (applicable only for
paths that do not contain any spaces).
Pre-Recovery Point Command
Post-Recovery Point Command
In the
User Account dialog box, select
Use Local System Account, or
select Impersonate User and enter a user name and password. Click
OK.
Click OK to save your changes and close the
Pre/Post Process
tab of the Properties dialog box.
Configure a Subclient for Pre/Post Processing of Data Protection/Archive Operations
Before You Begin
We recommend not configuring a pre/post process for a subclient that is
currently running a data protection or archive operation.
Verify that there are no pre/post processes already assigned for the subclient.
Review the Overview and
Agent-Specific Guidelines
for your agent before configuring pre/post processes for data protection/archive
operations.
Pre-process commands for the iDataAgents
will be executed only when the necessary resources (e.g., media, library, drive,
etc.) are available.
To configure
a subclient for Pre/Post processing of data protection/archive operations:
From the CommCell Browser, right-click the subclient for which you want
to configure a pre/post process, and then click Properties from the shortcut
menu.
For an agent other than the Oracle RAC iDataAgent,
click inside the space that corresponds to one of the following phases and
type the full path of the process that you want executed during that phase.
Alternatively, click Browse to locate the process (applicable only for
paths that do not contain any spaces).
For the Oracle RAC iDataAgent,
click Browse for the corresponding process, click the name of the
control node client in the Select Client for Browse dialog box, and click
OK. Then browse for and click the process.
PreBackup
PreScan
PreArchive
PreCopy
PreSnap
PostBackup
PostScan
PostArchive
PostCopy
PostSnap
Click OK.
If you want to run a Post Process for all attempts to run that job phase, then select the
corresponding checkbox.
For subclients on Windows platforms, if Run As displays Not Selected,
or if you want to change the account that has permission to run these commands,
click Change.
In the
User Account dialog box, select Use Local System Account, or
select Impersonate User and enter a user name and password. Click
OK.
If you selected Local System Account, click OK to the message
advising you that commands using this account have rights to access all
data on the client computer.
Click OK to save your changes and close the
Pre/Post Process
tab of the Properties dialog box.
Configure Pre/Post Binding Scripts for the Quick Recovery Agent
Before You Begin
We recommend not configuring a pre/post process for a subclient that is
currently running a data protection or archive operation.
Verify that there are no pre/post processes already assigned for the subclient.
Review the Overview and
Agent-Specific Guidelines
for your agent before configuring pre/post processes for data protection/archive
operations.
Pre-process commands for the iDataAgents
will be executed only when the necessary resources (e.g., media, library, drive,
etc.) are available.
Pre/post scripts can be added to the QR Agent for both the Windows and Unix
platforms by following the instructions below.
A post-binding script will execute after the volume is locked. The primary
purpose of a post-binding script is to restart any applications and/or services
that were stopped with a pre-binding script.
To add a post-binding script:
Create a script file that re-starts whatever applications and/or services
that were stopped with a pre-binding script.
Rename this script file to <subclient name>_postlock.bat.
For example, for the subclient sub1, you would
rename the script file to sub1_postlock.bat.
Copy this script into the ../<software
installation path>/Base
folder of the client controlling the destination volume.
Configure Pre/Post Snapshot Scripts for the Windows File System
iDataAgent
Before You Begin
Review the Overview and
Agent-Specific Guidelines
for your agent before configuring pre/post processes for data protection/archive
operations.
To add pre/post snap scripts to
a subclient using the Windows File System iDataAgent, follow the instructions below.
To
create Pre/PostBackup process scripts to back up VMware virtual machines using
the Linux File System iDataAgent:
In the PreBackup script, include for each virtual machine the appropriate
/usr/bin/vmware-cmd addredo command
provided by VMware. Each command will create the required REDO file. REDO
files will allow the system to back up the virtual machine files.
<Path-to-vmx-config-file> is
the path to the virtual machine configuration file addredo – instructs VMware to create the REDO file <disk_device> – is the virtual device node name.
For example, PreBackup process script /root/scripts/Pre-VM-bkup.sh might include the following commands.
In the PostBackup script, include for each virtual machine the appropriate
/usr/bin/vmware-cmd commit command
provided by VMware. The commands in this script will post the data in the
REDO files back to the virtual machine files, making the virtual machines
active again. The REDO files will then be deleted.
<Path-to-vmx-config-file> is
the path to the virtual machine configuration file commit – instructs VMware to post the data in the REDO files back to
the virtual machine file, making them active again <disk_device> – is the virtual device node name.
For example, PostBackup process script /root/scripts/Post-VM-bkup.sh might include the following commands.
To remove a process from Pre/Post processing of data protection/archive operations:
From the CommCell Browser, right-click the subclient for which you want
to remove a pre/post process, and then click Properties from
the shortcut menu.
Click the Pre/Post
Process tab of the Subclient Properties dialog box.
Click the text inside the space that corresponds to one of the following
phases for which you want a pre/post process removed, then press the Delete
key:
PreScan
PreArchive
PreCopy
PreSnap
PostBackup
PostScan
PostArchive
PostCopy
PostSnap
Repeat Step 3 for any additional processes that you want to remove.