Pre-processes and post-processes are batch files or shell scripts that you can run before or after certain job phases, for example, the sequential phases of data protection and data recovery jobs can be used to trigger operations outside of the data protection or recovery process. Scripts must return with exit code 0 in order for the next phase to start. If the script does not return with exit code 0, it is treated as a phase failure and the job is marked as pending. To mark the job as failed, see Failing a Job If the Pre-process or Post-process Fails.
To run a Save As Script file as a pre-process or a post-process, include the absolute path of the associated input file in the script file.
Note
-
You cannot run pre-processes and post-processes for backup jobs that are complete after the scan phase. For example, if subclient content was not added or did not change since the last incremental or differential backup, the backup and archive index phases are not performed, so the backup job is complete after the scan phase.
-
By default, newly installed clients block any executables or binaries that run from outside the installation folder. The recommended approach is to provide the credentials for the target machines so the client can run under those credentials. If that's not possible, you can manually adjust the security settings on each target machine to fine-tune the access level. Note that these settings cannot be pushed from the Command Center and must be created directly on the target machines.
-
To whitelist certain folders to execute the binaries, configure the sAdminWhiteListPaths additional setting on the target computer.
-
To whitelist certain executables for CVD to execute, configure the sAdminWhiteListBinaries additional setting on the target computer.
-
To disable this security feature, configure the nLimitedAdminAccess additional setting for admin computers.
Examples
-
You can use an echo command to check the level of a backup.
-
You can include a case statement within a script to run specific operations based on the level of the backup job.