Manage infobase backups
For an infobase, you can create backups manually or configure a backup plan.
A backup can be used to restore an infobase, as well as to download or delete.
By default, backups are stored in a service bucket in Selectel S3. You can connect your own S3 bucket to store backups.
If you delete an infobase, its backups will be stored for another 30 days.
Create a backup manually
You can manually create:
- a backup — an infobase copy made using PostgreSQL DBMS tools. A backup can be downloaded or used to restore an infobase from it;
- .dt
.dtfile — a copy of an infobase made using 1C:Enterprise tools. A.dtfile can be downloaded or used to create a new infobase from it. To create a.dtfile, you need the login and password of a 1C user with infobase administrator rights.
Enter the name of the backup.
Create a backup
Create a .dt file
-
In the Control panel, on the top menu, click Products and select 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
Click Create backup.
-
Enter the backup name.
-
Optional: select backup storage to save the backup to an S3 bucket.
6.1. Select the Save backup to storage checkbox.
6.2. Select a backup storage from the list. If you do not have a backup storage, create one.
-
Click Create. The backup will appear in the Backups block. When its status changes to
AVAILABLE, you can download the backup or restore an infobase from it.
Configure a backup plan
Scheduled backups are created with PostgreSQL DBMS tools. If you need a .dt file, create a backup manually.
The limit on the number of created backups is 999. When the limit is exceeded, the oldest backup is deleted when the next one is created.
Recommendations for choosing the time for a backup plan
Choose a period with the lowest load on the 1C server cluster where the infobase is running.
The backup time should not coincide with the maintenance window of the 1C server cluster where the infobase is running.
Backups are created within an hour of the time specified in the plan.
Specify different backup times for infobases that run on the same server cluster or the same database. If you specify the same backup time, the copies will start being created sequentially. As a result, each subsequent copy in the queue may not have enough time to start within the allotted hour and will be cancelled. To avoid backup cancellation, schedule backups for several infobases at different times.
Configure plan
-
In the Control panel, on the top menu, click Products and select 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup plan block, click Configure plan.
-
Specify the days and time for creating backups while taking into account the recommendations for choosing a time for a backup plan. Copy creation starts within an hour after the specified time. You can set the schedule:
- by day of the week — click Days of the week, select the required days, and enter the backup creation time in your time zone;
- via a cron expression — click Cron expression and configure cron in the UTC +00:00 time zone.
A cron expression consists of five values in order; they specify the times when backups will be created:
- minutes — from 0 to 59;
- hours — from 0 to 24;
- days of the month — from 1 to 31;
- month — from 1 to 12;
- days of the week — from 1 to 7.
Any value can be replaced with the
*symbol, which represents every possible value.For example, the entry
0 0,12 * * 1,5will create backups on Monday and Friday at 00:00 and 12:00 (03:00 and 15:00 Moscow time), regardless of the date.You can use online editors such as crontab guru to create cron expressions.
-
Specify the number of recent backups to keep — from 1 to 999.
-
Select the storage where backups will be saved:
- to a custom S3 bucket—click S3 storage, select a backup storage from the list. If you do not have a backup storage, create one.
- to the Selectel service S3 bucket — click Service storage. Review the storage pricing for backups in service storage.
-
Click Save.
Edit plan
-
In the Control panel, on the top menu, click Products and select 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup plan block, check that the plan is enabled.
-
In the Backup plan block, click .
-
Specify the days and time for creating backups, please pay attention to the recommendations for choosing a time for a backup plan. Copy creation starts within an hour after the specified time. You can set the schedule:
- by day of the week — click Days of the week, select the required days, and enter the backup creation time in your time zone;
- via a cron expression—click Cron expression and configure cron in the UTC +00:00 time zone.
A cron expression consists of five values in order; they specify the times when backups will be created:
- minutes — from 0 to 59;
- hours — from 0 to 24;
- days of the month — from 1 to 31;
- month — from 1 to 12;
- days of the week — from 1 to 7.
Any value can be replaced with the
*character—it means every possible value.For example, the entry
0 0,12 * * 1,5will create backups on Monday and Friday at 00:00 and 12:00 (03:00 and 15:00 Moscow time) regardless of the date.You can use online editors to create cron expressions, for example, crontab guru.
-
Specify the number of recent backups to keep—from 1 to 999. If you decrease the backup retention limit, the oldest copies will be deleted when the limit is exceeded.
For example, if you had it set to store seven copies, you changed the value to four. After creating one new copy, the four oldest will be deleted—one new and three older copies will remain. All copies created manually will be kept.
-
Select the storage where backups will be saved:
- to a custom S3 bucket—click S3 storage, select a backup storage from the list. If you do not have a backup storage, create one.
- to a managed Selectel S3 bucket—click Managed storage. Read the information about the backup storage pricing in the managed storage.
-
Click Save.
Disable backup plan
If you need to temporarily suspend backup creation, turn off the plan. Previously created backups will be kept. You can turn the plan on later.
-
In the Control panel, on the top menu, click Products and select Managed Cloud 1C.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup plan block, turn off the plan.
Download a backup
You can only download a copy with the AVAILABLE. status.
-
In the Control panel, on the top menu, click Products and select Managed Cloud 1C.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backups block, open the menu for the copy and select Download.
Delete a backup
You can only delete a copy with the AVAILABLE, FAILED or CANCELLED. status.
-
In the Control panel, on the top menu, click Products and select Managed Cloud 1C.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backups block, open the menu for the copy and select Delete.