Create a protection
To create a protection inside Horizon do the following steps:
- On the Horizon console, navigate to NBOS Backups > Protection.
- Click Add protection.
- On the Details tab, provide the protection name, description, and the type as Serial or Parallel.
- On the Instances tab, select the virtual machine to protect.
- On the Protection Plan tab, select the protection plan from the drop-down list.
- On the Schedule tab, Click Enable Scheduler to schedule the backups.
In the schedule, provide the start date, end date, start time, and the number of hours the snapshot/backup must repeat.
- On the Options tab, you can pause the virtual machine during the snapshot creation. Select Pause VM.
- Click Create.
The created protection will be available after a few seconds and starts to take backups according to the provided schedule and protection plan.
nbosjm protection-create [--protection-plan-id <protection plan_id>] [--instance <instance-id=instance-uuid>] [--display-name <display-name>] [--display-description <display-description>] [--protection-type-id <protection-type-id>] [--source-platform <source-platform>] [--jobschedule <key=key-name>] [--metadata <key=key-name>]
--protection-plan-id Protection plan ID to associate the protection with.
--display-name The protection name.
--display-description The protection description.
--protection-type-id The protection type ID.
--source-platform The protection source platform is required. openstack is the supported platform.
--instance Specify an instance to include in the protection. Instance-id: Include the instance with this UUID.
--jobschedule Specify the following key-value pairs for a job schedule. To include multiple keys, run the command multiple times with each key.
"start_date" : "06/05/2014" "end_date" : "07/15/2014" "start_time" : "2:30 PM"
--metadata Specify a key-value pair to include in the protection type metadata.To include multiple keys, run the command multiple times with each key.