# Enable Pre-Process and Post-Process Settings for CIFS Subclients

To automate tasks around CIFS backups, configure pre-process and post-process commands directly at hte subclient levels. These commands run before and after a subclient job, helping manage services, file states, or custom scripts.

Important

The pre- and post-script feature is not supported when auto-scaled access nodes are enabled on the subclient. Auto-scaling uses temporary access nodes that terminate after job completion. Because the nodes are not persistent, the system cannot execute pre-process or post-process scripts.

## Procedure

1. From the Command Center navigation pane, go to Protect > Files.

   The file servers Overview page appears.

2. On the Files tab, click the file server.

   The file server page appears.

3. Under Protocols, click CIFS.

   The CIFS Overview page appears.

4. On the Subclients tab, click the subclient, and then go to the Configuration tab.

5. On the Pre-process and post-process commands tile, click Advanced Settings.

   The Edit pre-process and post-process commands dialog box appears.

6. To configure scan process settings, expand the Scan process settings section.

   1. To run a command before the scan phase begins, enter the PreScan Process command.

   2. To run a command after the scan phase completes, enter the PostScan Process command.

   3. To enable the Run post-scan process for all attempts option, move the toggle key to the right. When this option is enabled, the PostScan Process command will run after every scan attempt, regardless of whether the scan was successful or failed.

7. To configure backup process settings, expand the Backup Process Settings section.

   1. To execute a command before the backup phase starts, enter the PreBackup Process command.

   2. To execute a command after the backup phase finishes, enter the PostBackup Process command.

   3. To enable the Run post-backup process for all attempts option, move the toggle key to the right. When this option is enabled, the PostBackup Process command will run after every backup attempt, regardless of whether the backup was successful or failed.

8. You can click Browse to select the file that contains the pre-process or post-process commands.

9. Enable Impersonate user to use a saved user credential with permissions to execute the commands.

   - From the Credential list, select existing credentials or create new credentials.

     Steps to add new credentials

     To add credentials to the Credential Manager, click the plus button (+), and then specify the following in the Add Credential dialog box.

     1. In the Credential name box, enter the name of the credential.

     2. In the User account box, enter the name of the user account.

     3. In the Password box, enter the password.

     4. In the Description box, you can enter a description of the credentials.

     5. Click Save.

10. Click Save.

×

Loading...