Create New Backup Plan in the New Backup Format Using Command Line (CLI 2.0)

As of Backup 4.0 for Linux, a new command line interface (CLI 2.0 or CLI V2)is introduced. CLI 2.0 is a separate command line interface solution that has the enhanced functionality that covers the new backup format requirements.

Note that all actions and settings in the new backup format are supported in the CLI V2 only

Create File Backup Plan Using CLI V2 (new and current backup formats)

To create a new backup plan, use the plan create_backup file command.

./cbbV2 plan create_backup file --format nbf --name “Plan Name" --account “Account Name” --source “Source” --confirm

Create Backup Plan Command Examples

Create Backup Plan in the New Backup Format

The most common use-case: create a backup plan in the new backup format, specify the plan name, storage account and source.

* ./cbbV2 plan create_backup file --format nbf --name “My first plan Name" --account “My storage account” --source “/home/usr/me/backup/” --confirm
* ./cbbV2 plan create_backup file -n “Plan Name” -ac “Account Name" -s “Source” --confirm 

View the example of creating a scheduled backup plan.

./cbbV2 plan create_backup --name "plan65" -a "test14" -f "nbf" -s "/home/jmisth/tmp" --schedule "true" --use-recurring-option "true" --frequency-value "Monthly" --occurrence-type-value "1" --occurrence-repeat-every "23.09.2022" -c

Create Backup Plan in the Current Backup Format

View the command examples to create backup plans in the currenty backup format:

./cbbV2 plan create_backup file --format cbf --name “Plan Name" --account “Account Name” --source “Source” --confirm
./cbbV2 plan create_backup file --format cbf --name “Plan Name" --account “Account Name” --source “Source” --confirm
./cbbV2 plan create_backup file --name “Plan Name” --account “Account Name" --source “Source” --confirm 

Run Backup Plan

View the command examples to execute backup plans:

* ./cbbV2 plan start -n “Plan Name”. This command runs the plan named "Plan name"
* ./cbbV2 plan start –name “Plan Name”. This command runs the plan named "Plan name"
* ./cbbV2 plan start -n “Plan Name” -f. This command runs full backup of the plan named "Plan name"
* ./cbbV2 plan start –name “Plan Name” -f. This command runs full backup of the plan named "Plan name"
* ./cbbV2 plan start -n “Plan Name” --force-full. This command runs full backup of the plan named "Plan name"
* ./cbbV2 plan start –name “Plan Name” --force-full. This command runs full backup of the plan named "Plan name"
* ./cbbV2 plan start –id “Plan ID”. This command runs the backup plan with the "Plan ID" instead of a plan name

Stop Backup Plan

View the command examples to stop running backup plans:

./cbbV2 plan stop -n “Plan Name”
./cbbV2 plan stop –name “Plan Name”
./cbbV2 plan stop –id “Plan ID”

To learn more about CLI 2.0 commands and command parameters, refer to the CLI 2.0 section

https://git.cloudberrylab.com/egor.m/doc-help-std.git