---
title: "Manage infobase backups"
sidebar_label: "Manage infobase backups"
sidebar_position: 5
description: "How to manually create a backup, configure a backup plan, download or delete a backup"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import EditIcon from '@selectel/docux/icons/edit'

# Manage infobase backups

For an infobase, you can [create backups manually](#create-backup-manually) or [configure a backup plan](#configure-scheduled-backups).

A backup can be used to [restore an infobase](/cloud-1c/infobase/restore-from-backup.mdx), as well as to [download](#download-backup) or [delete](#delete-backup).

By default, backups are stored in a service bucket in [Selectel S3](/s3/). You can [connect your own S3 bucket](/cloud-1c/infobase/mount-backup-storage.mdx) to store backups.

If you delete an infobase, its backups will be stored for another 30 days.

## Create a backup manually \{#create-backup-manually}

You can manually create:

* a backup — an infobase copy made using PostgreSQL DBMS tools. A backup can be [downloaded](#download-backup) or used to [restore an infobase from it](/cloud-1c/infobase/restore-from-backup.mdx);
* .dt `.dt` file — a copy of an infobase made using 1C:Enterprise tools. A `.dt` file can be [downloaded](#download-backup) or used to [create a new infobase from it](/cloud-1c/quickstart.mdx#upload-configuration). To create a `.dt` file, you need the login and password of a 1C user with infobase administrator rights.

Enter the name of the backup.

<Tabs queryString="create-backup-manually">
  <TabItem value="dump" default>
    <TabItemLabel>
      Create a backup
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **1C Cloud**.

    2. Go to the **Infobases** section.

    3. Open the infobase page → **Backups** tab.

    4. Click **Create backup**.

    5. Enter the backup name.

    6. Optional: select [backup storage](/cloud-1c/infobase/mount-backup-storage.mdx) 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](/cloud-1c/infobase/mount-backup-storage.mdx).

    7. Click **Create**. The backup will appear in the **Backups** block. When its status changes to `AVAILABLE`, you can [download the backup](#download-backup) or [restore an infobase from it](/cloud-1c/infobase/restore-from-backup.mdx).
  </TabItem>

  <TabItem value=".dt">
    <TabItemLabel>
      Create a .dt file
    </TabItemLabel>

    :::warning

    While a `.dt` file is being created, the infobase will be unavailable; user sessions and scheduled tasks will be locked. Creating a copy can take up to 60 minutes.

    :::

    1. Optional: [set a session lock](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#set-lock) for the duration of `.dt` file creation.

    2. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **1C Cloud**.

    3. Go to the **Infobases** section.

    4. Open the infobase page → **Backups** tab.

    5. Click **Create backup**.

    6. Click **.dt file**.

    7. Enter the login and password of a user with infobase administrator rights.

    8. Click **Create**. The copy will appear in the **Backups** block. When its status changes to `AVAILABLE`, you will be able to [download the copy](#download-backup) or [create a new infobase from it](/cloud-1c/quickstart.mdx).

    9. Optional: if you set a session lock in step 1, [remove it](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#remove-lock).
  </TabItem>
</Tabs>

## Configure a backup plan \{#configure-scheduled-backups}

Scheduled backups are created with PostgreSQL DBMS tools. If you need a `.dt` file, [create a backup manually](#create-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-time-for-scheduled-backups}

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](/cloud-1c/cluster/maintenance-window.mdx) 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 \{#configure-schedule}

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **1C Cloud**.

2. Go to the **Infobases** section.

3. Open the infobase page → **Backups** tab.

4. In the **Backup plan** block, click **Configure plan**.

5. Specify the days and time for creating backups while taking into account the [recommendations for choosing a time for a backup plan](#choose-time-for-scheduled-backups). 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,5` will 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](https://crontab.guru/) to create cron expressions.

6. Specify the number of recent backups to keep — from 1 to 999.

7. 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](/cloud-1c/infobase/mount-backup-storage.mdx).
   * to the Selectel service S3 bucket — click **Service storage**. Review the storage pricing for backups in service storage.

8. Click **Save**.

### Edit plan \{#edit-schedule}

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **1C Cloud**.

2. Go to the **Infobases** section.

3. Open the infobase page → **Backups** tab.

4. In the **Backup plan** block, check that the plan is enabled.

5. In the **Backup plan** block, click <EditIcon />.

6. Specify the days and time for creating backups, please pay attention to the [recommendations for choosing a time for a backup plan](#choose-time-for-scheduled-backups). 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,5` will 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](https://crontab.guru/).

7. 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](#create-backup-manually) will be kept.

8. 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](/cloud-1c/infobase/mount-backup-storage.mdx).
   * to a managed Selectel S3 bucket—click **Managed storage**. Read the information about the backup storage pricing in the managed storage.

9. Click **Save**.

### Disable backup plan \{#stop-scheduled-backups}

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.

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **Managed Cloud 1C**.

2. Go to the **Infobases** section.

3. Open the infobase page → **Backups** tab.

4. In the **Backup plan** block, turn off the plan.

## Download a backup \{#download-backup}

You can only download a copy with the `AVAILABLE.` status.

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **Managed Cloud 1C**.

2. Go to the **Infobases** section.

3. Open the infobase page → **Backups** tab.

4. In the **Backups** block, open the <MoreVerticalIcon /> menu for the copy and select **Download**.

## Delete a backup \{#delete-backup}

You can only delete a copy with the `AVAILABLE`, `FAILED` or `CANCELLED.` status.

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **Managed Cloud 1C**.

2. Go to the **Infobases** section.

3. Open the infobase page → **Backups** tab.

4. In the **Backups** block, open the <MoreVerticalIcon /> menu for the copy and select **Delete**.

<Formbricks />
