Create backups
You can create a backup manually or configure automatic scheduled backups.
For more information about full and incremental backups, see the network volume Backups manual.
Backups don't have automatic health and consistency checks for copies. We recommend that you periodically restore from backups — this way you can check that the restore is working correctly.
Create a manual backup
- In Control Panel, go to Cloud Platform → Disks.
- From the menu ( ) of the disk, select Create backup.
- Check the final cost of the backup.
- Click Create backup.
Configure scheduled backups
You can set disk backup settings in the backup plan:
- To which disks to apply the plan — for which disks backups will be created according to this plan;
- type of backups created — full or incremental;
- schedule — when disk backups will be created;
- how many recent full backups to store — more about backup storage.
A single backup plan can be applied to one disk or several at once — you don't have to configure a backup schedule for each disk separately. Any number of plans can be applied to a single disk.
A disk can have change-plan-list plans applied to it.
If you need to change the backup settings, you can edit-plan.
Create a plan
-
In Control Panel, go to Cloud Platform → Backups.
-
Open the Plans tab.
-
Click Create a plan.
-
Enter the name of the plan.
-
Select the pool segment in which the disk is located.
-
Mark the disks to which the plan will apply.
-
Select the backup type: full or incremental.
-
If you selected full backup, specify how to customize the schedule.
- По дням недели
- Через cron-выражение
To customize backups by day of the week, select the desired days and enter the time in
HH:MM
format in your time zone on which backups will be created.To configure backups via a cron statement, enter the cron statement in UTC +0.
The Cron expression consists of five values in order — they specify the time points at which backups will be created:
- minutes from 0 to 59;
- hours — 0 to 24;
- days of the month — from 1 to 31;
- month one through 12;
- days of the week, 1 through 7.
Any of the values can be replaced with the
*
symbol — it stands for every possible value.For example, the entry
0 0 0.12 * * * 1.5
will create backups on Monday and Friday at 00:00 and 12:00.You can use online editors such as crontab guru to create cron statements.
-
If you have selected an incremental backup, keep the time in
HH:MM
format in your time zone at which daily backups will be created.A full backup is created first, then it is created exactly one week later and then once a week thereafter. On other days, incremental backups are created.
-
Specify how many recent full backups to store:
- for full backups, the minimum number of backups is one;
- for incremental backups, the minimum number of full backups stored is two. Incremental backups are stored in chains of seven backups — one full backup and six subsequent incremental backups. For example, if the plan settings specify storing three full backups, the last three backup chains will be stored.
The maximum number of backups that can be created within a single plan is limited to 90 backups for full backups and 14 full backups and 78 incremental backups for incremental backups.
-
Click Create a plan.
Change the list of plans
You can add any number of plans to the disk for which backups will be created and disconnect plans from it.
- In Control Panel, go to Cloud Platform → Disks.
- From the menu ( ) of the drive, select Set up a backup plan.
- To add a new plan, select an existing plan or click New Plan and create a new one.
- To disable a plan, in the plan row, click Disable.
Edit plan
-
In Control Panel, go to Cloud Platform → Backups.
-
Open the Plans tab.
-
From the menu ( ) of the plan, select Change settings.
-
Make changes to the plan, such as:
- change the disks to which the plan applies. If you disconnect the plan from the disk, the backups created for it will be saved;
- change the backup schedule;
- change the number of backups stored. If you reduce this number, after new backups are automatically created, previous backups that do not fall under the new limit will be deleted. For example, instead of storing seven backups, you have set the storage to four — after creating one new backup, the first four backups will be deleted (leaving one new backup and three previous backups).
You cannot change the type of backups in the plan.
-
Click Save.