DS-Client Help : Working with backups : Configuring Pre/Post processes (Linux)
 
Configuring Pre/Post processes (Linux)
You can use the Pre/Post option to specify a command to run before (Pre) and/or after execution (Post) of the backup.
1. Browse the backups tree and select the backup.
2. On the Sets menu, point to Backup Sets, and then click Properties.
3. In the Set Properties dialog box, click the Options tab, and then click Pre/Post.
4. Under Before backup, do the following:
a) Select the Execute check box, and type the command you want to run before backup. Click Test to verify the command.
b) To apply a condition if the exit code is equal (=) or not equal (<>) to the exit code entered in the box, select the On exit code check box. This is required if you know the command will produce an exit code when finished.
c) Select the Do not perform backup check box, if you do not want the DS-Client to perform the backup when the exit code condition is fulfilled.
d) Select the Do not perform backup post activity check box, if you do not want the DS-Client to perform the post activity when the exit code condition is fulfilled.
5. Under After backup, do the following:
a) Select the Execute check box, and type the command you want to run after backup.
b) To execute the command after the backup data has been copied to the DS-Client buffer, select the Execute after data has been copied to DS-Client buffer (if applicable) check box.
c) Click Test to verify the command.
6. Under Before restore, do the following:
a) Select the Execute check box, and type the command you want to run before backup.
b) To apply a condition if the exit code (for local commands), is equal (=) or not equal (<>) to the exit code entered in the box, select the On exit code check box. This is applicable if you know that the command will produce an exit code when finished.
c) Select the Do not perform restore check box, if you do not want the DS-Client to perform the restore when the exit code condition is fulfilled.
d) Select the Do not perform restore post activity check box, if you do not want the DS-Client to perform the post activity when the exit code condition is fulfilled.
e) Click Test to verify the command.
7. Under After restore, do the following:
a) Select the Execute check box, and type the command you want to run after backup.
b) Click Test.
8. Click OK.