Manage infobase backups
For an infobase, you can create backups manually, as well as configure a backup schedule.
A backup can be used to restore an infobase, as well as download or delete.
By default, backups are stored in a service bucket in Selectel S3. You can mount your 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. You can download the backup or restore the infobase from it;
- a
.dtfile — an infobase copy made using 1C:Enterprise tools. The.dtfile can be downloaded or used to create a new infobase from it. Creating a.dtfile requires the username and password of a 1C user with infobase administrator privileges.
Enter the name of the backup.
Create a backup
Create a .dt file
-
In the control panel, in the top menu, click Products and select Turnkey 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 backup storage, create one.
-
Click Create. The backup will appear in the Backups block. Once its status changes to
AVAILABLE, you can download the backup or restore the infobase from it.
Configure a backup plan
A backup schedule creates infobase copies using 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 must not overlap with the maintenance window of the 1C server cluster where the infobase runs.
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, in the top menu, click Products and select Turnkey 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup schedule block, click Configure schedule.
-
Specify the days and time for creating backups according to the guidelines for choosing a backup schedule time. Backup creation starts within an hour after the specified time. You can set the schedule:
- by days of the week — click Days of the week, select the desired days, and enter the backup creation time in your time zone;
- using 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 of the values can be replaced with the
*symbol — 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.To create cron expressions, you can use online editors, for example, crontab guru.
-
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 backup storage, create one.
- to a Selectel S3 service bucket — click Service storage. Review the information on the backup storage rate in the service storage.
-
Click Save.
Edit plan
-
In the control panel, in the top menu, click Products and select Turnkey 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup schedule block, check that the schedule is enabled.
-
In the Backup schedule block, click .
-
Specify the days and time for creating backups, take note of the guidelines for choosing a backup schedule time. Backup creation starts within an hour after the specified time. You can set the schedule:
- by days of the week — click Days of the week, select the desired days, and enter the backup creation time in your time zone;
- using 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 of the values can be replaced with the
*symbol — 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.To create cron expressions, you can use online editors, 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, you had retention of seven backups set, and you changed the value to four. After creating one new backup, the oldest four will be deleted — one new and three older backups will remain. All backups 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 backup storage, create one.
- to a Selectel S3 service bucket — click Service storage. Review the information on the backup storage rate in the service 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, in the top menu, click Products and select Turnkey 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backup schedule block, disable the schedule.
Download a backup
You can only download a backup with the AVAILABLE status.
-
In the control panel, in the top menu, click Products and select Turnkey 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backups block, open the backup's menu and select Download.
Delete a backup
You can only delete a backup with the AVAILABLE, FAILED or CANCELLED status.
-
In the control panel, in the top menu, click Products and select Turnkey 1C Cloud.
-
Go to the Infobases section.
-
Open the infobase page → Backups tab.
-
In the Backups block, open the backup's menu and select Delete.