You can perform file system backup and restore operations by using the Commvault End-User Command Line Interface (cvc).
You can perform the following operations:
-
Log on to a local CommServe computer or a remote CommServe computer where you want to perform the operations.
-
Add a new subclient.
-
Modify the content of an existing subclient.
-
Delete a subclient.
-
Perform any of the following backup operations:
-
Full
-
Incremental
-
Differential
-
Synthetic full
-
-
Search for a backup set or subclient backup
-
Browse the backup set or subclient data
-
Perform any of the following restore operations:
-
In-place
-
Out-of-place
-
Point-in-time
-
-
Kill, pause or resume a job
The user running the Commvault End-User Command Line Interface (cvc) operations must have permission to the /tmp/cvc directory to write to the cvc.log log file.
Note
You can use the Commvault End-User Command Line Interface (cvc) on UNIX configurations.
Procedure
-
Set the PYTHONPATH environment variable. On the command line, type the following command:
export PYTHONPATH=<software_install_path>/Base/PythonSDK
where software_install_path is the Commvault software installation directory.
-
Make sure that you are in the correct directory to run the command. On the command line, type the following command:
cd <software_install_path>/Base
where software_install_path is the Commvault software installation directory.
-
Add the EnforceUnixUserPermissionsOnRestore additional setting to the CommServe computer, to perform command line (cvc) operations as a non-root user, as shown in the following table:
For instructions about adding an additional setting from the CommCell Console, see Adding an Additional Setting from the CommCell Console.
Property
Value
Name
Category
CommServDB.GxGlobalParam
Type
Integer
Value
1
-
You can run the Commvault End-User Command Line Interface (cvc) on UNIX configurations.
-
On UNIX, run the cvc command to run backup and restore operations or the cvrecover command when you only want to run restore operations. On the command line, type the following command:
Backup operations and restore operations
./cvc
-
-
Optional: To view documentation for the Python SDK Wrapper, type the following command:
>./cvc Starting prompt... >>> help
To learn more, we recommend that you explore the examples or code snippets.