Scheduled backup
MCS has the ability to back up virtual machines on a schedule.
Automatic backup is presented as a "Backup Plan" and includes all disks in an instance, adding or removing VM disks also changes the plan.
Configuring a backup plan is available from several interfaces.
MCS control panel
To create a plan in your MCS account, you should:
- Go to the "Backup" section of the "Cloud Computing" service.
- On the Automatic tab, click Add to add the plan.
- Configure backup options:
Parameter Description Backup type Full or incremental backups. Incremental allows you to save space, reduce costs and increase the speed of creating backups Plan name Backup plan name Max. number of full backups Configures the number of full backups to keep Backup Schedule Specifies the days and times for making copies. Multiple schedules can be created Apply for the following instances Selecting virtual machines for which copies will be created - Click "Save Plan".
To edit a backup plan in the "Backup" section, select "Edit" in the context menu of the plan.
To delete a plan, select "Delete" in the context menu of the plan. This will also delete all restore points (backups).
OpenStack CLI
To create a backup in the karbor client you need:
Get a list of providers:
$ karbor provider-list
Get a list of resources that can be backed up:
$ karbor protectable-list
Get a list of instances available for backup:
$ karbor protectable-list-instances OS :: Nova :: Server
Create trigger (backup schedule):
$ karbor trigger-create '<name>' 'time' "pattern" = "<schedule in crontab format>", "format" = "crontab"
Create a backup plan:
$ karbor plan-create '<name>' '<provider ID>' 'Server ID' = 'OS :: Nova :: Server' = '<resource name>'
Create backup operation:
$ karbor scheduledoperation-create '<name>' <trigger ID> "plan_id" = "<plan ID>", "provider_id" = "<provider ID>", "max_backups" = "<number of stored backups>"