Написать в техподдержку Позвонить нам
Admin Panel Logout

In this article:

    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.

    Attention

    Backups are placed in a shared data storage and are billed according to the tariff. Detailed information about the storage cost can be seen in the Billing project details.

    After the virtual machine is deleted, all backups are saved in the project. Deleting the backups created by the plan will require a manual operation to delete the plan itself. Manual backups can be deleted at any time if necessary.

    Configuring a backup plan is available from several interfaces.

    MCS control panel

    To create a plan in your MCS account, you should:

    1. Go to the "Backup" section of the "Cloud Computing" service.
    2. On the Automatic tab, click Add to add the plan.
    3. 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
    4. 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>"

    Was this article helpful?