Generating a Command Line Script from the CommCell Console

To run backups and restores from the command line, you need an input XML file that contains the parameter values. You can generate a script from the CommCell Console as a basis for the input file, and then save it to the computer from where the backup or restore operation will be performed.

Procedure

  1. From the CommCell Browser, expand Client Computers > client > agent > defaultBackupSet.

  2. Right-click the subclient, and then do either of the following:

    • To create an input file for a backup operation, click Backup.

      The Backup Options dialog box appears.

    • To create an input file for a restore operation, click Browse and Restore.

      The Browse and Restore Options dialog box appears.

  3. Configure the backup or restore operation that you want to run using the script.

  4. Click Save as Script.

    The Save as Script dialog box appears.

  5. Enter the location where you want to save the script. Make sure to include the filename and extension.

    For example, "C:\scripts\myscript.bat" on Windows and "/usr/scripts/myscript.sh" on Unix. Alternatively, you can also click Browse and navigate to the location.

    The script is saved as a .xml file and .bat/.sh file.

    Caution

    If a file with the same name already exists in the specified location, both the .xml and .bat/.sh files will be overwritten.

  6. From the Specify user account to run the script list, select who can run the script. If necessary, enter the user name and password for the user account that you want to use to perform the backup.

  7. Click OK.

Loading...