Manage backups of the information base
You can create manual backups for an information base, and you can also customize a backup plan.
The backup can be used to restore the information base and can be downloaded or deleted.
By default, backups are stored in the S3 Selectel service bins. You can connect your own S3 bucket to store the backup copies.
If you delete an information base, it will be backed up for another 30 days.
Create a manual backup
It can be manually created:
- backup copy - a copy of the information database using PostgreSQL DBMS. The backup copy can be downloaded or the information base can be restored from it;
.dtfile - a copy of the information base using 1C:Enterprise tools. The.dtfile can be downloaded or a new information base can be created from it. To create a.dtfile, you need a login and password of a 1C user with the rights of the information base administrator.
There is no limit to the number of manually created copies.
Create a backup
Create a .dt file
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
Click Create Backup.
-
Enter a name for the backup.
-
Optional: select a backup repository to save a backup to the S3 buckets.
6.1 Check the Save backup to storage checkbox.
6.2 Select a backup repository from the list. If you do not have a backup repository, create one.
-
Click Create. The copy will appear in the Backups block . When its status changes to
AVAILABLE, you can download the copy or restore the information base from it.
While the .dt file is being created, the information base will be unavailable, user sessions and routine tasks will be blocked. It may take up to 60 minutes to create a copy.
-
Optional: set session locking for the duration of the
.dtfile creation. -
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
Click Create Backup.
-
Click File .dt.
-
Enter the login and password of the user with the rights of the administrator of the information base.
-
Click Create. The copy will appear in the Backups block . When its status changes to
AVAILABLE, you can download the copy or create a new information base from it. -
Optional: If you set session locking in step 1, remove it.
Configure a backup plan
The backup plan creates copies of the information base using PostgreSQL DBMS. If you need a .dt file, create a backup manually.
When 999 copies have been created, the oldest copy is deleted when the next copy is created.
Recommendations for timing your backup plan
Choose the time when the 1C server cluster on which the information base is running is least loaded.
The backup time must not coincide with the maintenance window of the 1C server cluster on which the information base is running.
Copy creation is triggered within one hour of the time specified in the plan settings.
For information databases that run on the same server cluster or on the same database, specify different copy times. If you specify one copy time, copies will be created one by one. If the next database copy fails to run in the allotted hour, it will be canceled. To avoid canceling a copy, schedule multiple databases to be copied at different times.
Set up a plan
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
In the Backup Plan box, click Customize Plan.
-
Specify the days and times for backups. Pay attention to the recommendations for selecting the time for the backup plan. Backups are started within one hour of the specified time. You can specify the time:
- by days of the week - click Days of the week, select the desired days and enter the time in your time zone at which the backups will be created;
- via cron-expression - click Cron-expression and configure cron in UTC +00:00 time zone.
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;
- clock - 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 by the
*symbol - it stands for every possible value.For example, the entry
0 0,12 * * * 1,5will back up 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 statements.
-
Specify the number of recent backups to keep, from 1 to 999.
-
Select the storage where the backups will be saved:
- in the S3 user bach- click S3-storage, select a backup repository from the list. If you do not have a backup repository , create one.
- in the S3 Selectel Service Backup - click Service Storage. Read the information about the tariff for storing backups in the service storage.
-
Click Save.
Change the plan
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
In the Backup Plan block, verify that the plan is enabled.
-
In the Backup Plan block, click .
-
Specify the days and times of backup creation, note the recommendations for selecting the time for the backup plan. Backups are started within one hour of the specified time. You can specify the time:
- by days of the week - click Days of the week, select the desired days, and enter the time in your time zone at which the backups will be created;
- via cron-expression - click Cron-expression and configure cron in UTC +00:00 time zone.
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;
- a month - 1 to 12;
- days of the week, 1 through 7.
Any of the values can be replaced by the
*symbol - it stands for every possible value.For example, the entry
0 0,12 * * * 1,5will back up 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 statements.
-
Specify the number of recent backups to keep, from 1 to 999. If you reduce the current number, then after automatic creation of new backups, the previous backups that do not fall under the new limit will be deleted. For example, instead of storing seven copies, you set the number of copies to four - after creating one new copy, the first four copies will be deleted (leaving one new and three previous copies). All manually created copies will be retained.
-
Select the storage where the backups will be saved:
- in the S3 user bach- click S3-storage, select a backup repository from the list. If you do not have a backup repository , create one.
- in the S3 Selectel Service Backup - click Service Storage. Read the information about the tariff for storing backups in the service storage.
-
Click Save.
Turn off the backup plan
If you need to temporarily suspend backups, stop the plan. The previously created backups will be saved. You can turn the plan back on later.
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
In the Backup Plan block, turn off the plan.
Download the backup
Only a copy in AVAILABLE status can be downloaded.
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
In the Backups block, open the copies menu and select Download.
Delete backup
Only a copy in AVAILABLE, FAILED or CANCELLED status can be deleted.
-
In the control panel, in the top menu, click Products and select 1C Ready Cloud.
-
Go to the Information Bases section.
-
Open the Information Base page → Backups tab.
-
In the Backups block, open the copies menu and select Delete.