---
title: "Restore an infobase from a backup"
sidebar_label: "Restore an infobase from a backup"
sidebar_position: 7
description: "How to restore an infobase from a backup"
toc_max_heading_level: 2
---

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'

# Restore an infobase from a backup

It is not possible to restore from a backup to the original infobase. You must create a new infobase and load the backup into it.

Connection details for the [new infobase](/cloud-1c/connect/connect-to-1c.mdx) will be different. To keep the existing connection details, you can verify the backup on a test infobase, then delete the original infobase and create a new one with the same name.

The 1C server cluster where the infobase is being restored will remain available during the restoration process, but its performance may decrease, and other infobases in the cluster might become unreachable. The infobase being restored from a backup will be unavailable to users until the operation is complete.

You can [create a backup](/cloud-1c/infobase/manage-infobase-backups.mdx#create-backup-manually) of the required type.

## Restore an infobase from a backup \{#restore-infobase}

<Tabs queryString="restore-infobase">
  <TabItem value="savecredentials" default>
    <TabItemLabel>
      Save the 1C connection details
    </TabItemLabel>

    1. Optional: [set a session lock](#set-session-lock).
    2. [Create a test infobase](#create-test-infobase).
    3. [Upload the backup to the test infobase](#upload-backup-to-test-infobase).
    4. [Verify the test infobase](#check-test-infobase).
    5. [Delete the original infobase](#delete-source-infobase).
    6. [Create a working infobase](#create-main-infobase).
    7. [Upload the backup to the working infobase](#upload-backup-to-main-infobase).
    8. Optional: [delete the test infobase](#delete-test-infobase).
    9. Optional: [remove the session lock](#remove-session-lock).

    ### 1. Optional: set a session lock \{#set-session-lock}

    You can schedule maintenance time and set a session lockout for all info bases of the 1C server cluster where the info base will be restored. Once the session lockout is enabled for an info base, the base's active users will be prompted to save their data, and their sessions will be terminated.

    To set a session lock, use the [Set a session lock](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#set-lock) instructions.

    ### 2. Create a test infobase \{#create-test-infobase}

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

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

    3. Click **Create infobase**.

    4. Specify the 1C server cluster where the infobase will run:

       4.1. Click **Select existing**.

       4.2. Choose the region and pool where the cluster is located.

       4.3. Select a 1C server cluster.

       4.4. Click **Continue**.

    5. Specify the database where the infobase will run:

       5.1. Click **Select existing**.

       5.2. Select a database.

       5.3. Click **Continue**.

    6. Verify the selected 1C server cluster and database details.

    7. Click **Continue**.

    8. Verify the 1C server cluster license list and click **Continue**. If you need more licenses, you can [activate them](/cloud-1c/cluster/activate-license.mdx) after creating the infobase.

    9. Enter the infobase name.

    10. Click **Create infobase**. Once the infobase status changes to `ACTIVE`, the infobase will be ready for [loading the backup](#upload-backup-to-test-infobase).

    ### 3. Upload the backup to the test infobase \{#upload-backup-to-test-infobase}

    1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Enterprise Cloud**.
    2. Go to the **Infobases** section.
    3. Open the infobase page for the infobase you [created as a test infobase](#create-test-infobase).
    4. Open the **Configuration** tab.
    5. In the **Infobase loading** block, select **Backup copy**.
    6. Select the infobase whose backup you want to restore.
    7. Select a backup for restoration. Only backups with the `AVAILABLE` status can be selected.
    8. Click **Restore**.

    ### 4. Verify the test infobase \{#check-test-infobase}

    Ensure that the configuration has been loaded into the test infobase and that it works correctly. To do this, [connect to 1C](/cloud-1c/connect/connect-to-1c.mdx) and perform any necessary operations in 1C to verify.

    ### 5. Delete the original infobase \{#delete-source-infobase}

    1. In the [control panel](https://my.selectel.ru/ones/base), in the top menu click **Products** and select **1C Enterprise Cloud**, then the **Infobases** section.
    2. In the infobase card corresponding to the original infobase, copy its name. You will need to use this name when creating the working infobase.
    3. In the <MoreVerticalIcon /> menu of the infobase the backup was created from, select **Delete infobase**.
    4. Enter the infobase name to confirm deletion.
    5. Click **Delete**.

    ### 6. Create a working infobase \{#create-main-infobase}

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

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

    3. Click **Create infobase**.

    4. Specify the 1C server cluster where the infobase will run:

       4.1. Click **Select existing**.

       4.2. Choose the region and pool where the cluster is located.

       4.3. Select a 1C server cluster.

       4.4. Click **Continue**.

    5. Specify the database where the infobase will run:

       5.1. Click **Select existing**.

       5.2. Select a database.

       5.3. Click **Continue**.

    6. Verify the selected 1C server cluster and database details.

    7. Click **Continue**.

    8. Verify the 1C server cluster license list and click **Continue**. If you need more licenses, you can [activate them](/cloud-1c/cluster/activate-license.mdx) after creating the infobase.

    9. Paste the infobase name, which you copied during the [deletion of the original infobase](#delete-source-infobase) in step 2.

    10. Click **Create infobase**. Once the infobase status changes to `ACTIVE`, the infobase will be ready for [loading the backup](#upload-backup-to-main-infobase).

    ### 7. Upload the backup to the working infobase \{#upload-backup-to-main-infobase}

    1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Enterprise Cloud**.
    2. Go to the **Infobases** section.
    3. Open the page for the infobase that you [created earlier](#create-main-infobase).
    4. Open the **Configuration** tab.
    5. In the **Infobase loading** block, select **Backup copy**.
    6. Select the infobase whose backup you want to restore.
    7. Select a backup for restoration. Only backups with the `AVAILABLE` status can be selected.
    8. Click **Restore**. Once the infobase status changes to `ACTIVE`, the infobase will be ready for use, and you can [connect to it](/cloud-1c/connect/connect-to-1c.mdx) using your previous credentials.

    ### 8. Optional: delete the test infobase \{#delete-test-infobase}

    1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Enterprise Cloud**.
    2. Go to the **Infobases** section.
    3. In the <MoreVerticalIcon /> menu of the infobase you [created as a test infobase](#create-test-infobase), select **Delete infobase**.
    4. Enter the infobase name to confirm deletion.
    5. Click **Delete**.

    ### 9. Optional: remove the session lock \{#remove-session-lock}

    You cannot connect to an infobase until the lock duration expires or you remove the lock manually.

    You can remove the lock by following the [Remove a session lock](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#remove-lock) instructions.
  </TabItem>

  <TabItem value="dontsavecredentials">
    <TabItemLabel>
      Do not save 1C connection details
    </TabItemLabel>

    1. Optional: [set a session lock](#set-lock).
    2. [Create an infobase](#create-infobase).
    3. [Upload the backup to the infobase](#upload-backup-to-infobase).
    4. Optional: [remove the session lock](#remove-lock).

    ### 1. Optional: set a session lock \{#set-lock}

    You can schedule maintenance time and set a session lockout for all info bases of the 1C server cluster where the info base will be restored. Once the session lockout is enabled for an info base, the base's active users will be prompted to save their data, and their sessions will be terminated.

    To set a session lock, use the [Set a session lock](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#set-lock) instructions.

    ### 2. Create an infobase \{#create-infobase}

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

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

    3. Specify the 1C server cluster where the infobase will run:

       3.1. Click **Select existing**.

       3.2. Choose the region and pool where the cluster is located.

       3.3. Select a 1C server cluster.

       3.4. Click **Continue**.

    4. Specify the database where the infobase will run:

       4.1. Click **Select existing**.

       4.2. Select a database.

       4.3. Click **Continue**.

    5. Verify the selected 1C server cluster and database details and click **Continue**.

    6. Verify the 1C server cluster license list and click **Continue**. If you need more licenses, you can [activate them](/cloud-1c/cluster/activate-license.mdx) after creating the infobase.

    7. Enter the infobase name.

    8. Click **Create infobase**. Once the infobase status changes to `ACTIVE`, the infobase will be ready for [loading the backup](#upload-backup-to-infobase).

    ### 3. Upload the backup to the infobase \{#upload-backup-to-infobase}

    1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Enterprise Cloud**.
    2. Go to the **Infobases** section.
    3. Open the page for the infobase you [created as a working infobase](#create-main-infobase).
    4. Open the **Configuration** tab.
    5. In the **Infobase loading** block, select **Backup copy**.
    6. Select the infobase whose backup you want to restore.
    7. Select a backup for restoration. Only backups with the `AVAILABLE` status can be selected.
    8. Click **Restore**.
    9. Wait for the infobase to switch to the `ACTIVE` status — this means it is ready for use, and you can [connect to it](/cloud-1c/connect/connect-to-1c.mdx).

    ### 4. Optional: remove the session lock \{#remove-lock}

    You cannot connect to an infobase until the lock duration expires or you remove the lock manually.

    You can remove the lock by following the [Remove a session lock](/cloud-1c/infobase/manage-infobase-user-sessions.mdx#remove-lock) instructions.
  </TabItem>
</Tabs>

<Formbricks />
