[Yandex Cloud documentation](../../index.md) > [Yandex Serverless Containers](../index.md) > [Concepts](index.md) > Backups

# Backups in Serverless Containers

Data in Serverless Containers is stored securely and replicated within the Yandex Cloud infrastructure. You can get:
* [List of containers](#containers-list).
* [Container revision lists](#revision-list).
* [Information about container revisions](#revision-get).
* [Lists of triggers](#trigger-list).
* [Information about triggers](#trigger-get).

For more information about backing up [Docker images](../../container-registry/concepts/docker-image.md) used to create container revisions, see the [Yandex Container Registry documentation](../../container-registry/concepts/backup.md).

## Getting a list of containers {#containers-list}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), go to the folder where you want to view a list of containers.
    1. Navigate to **Serverless Containers**.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    To get a list of containers, run the following command:

    ```bash
    yc serverless container list
    ```

    Result:

    ```text
    +----------------------+--------------------+-----------------------+--------+
    |          ID          |        NAME        |      FOLDER ID        | STATUS |
    +----------------------+--------------------+-----------------------+--------+
    | b097d9ous3ge******** | my-beta-container   | aoek49ghmknn******** | ACTIVE |
    +----------------------+--------------------+-----------------------+--------+
    ```

- API {#api}

  To view a list of containers, use the [list](../containers/api-ref/Container/list.md) REST API method for the [Container](../containers/api-ref/Container/index.md) resource or the [ContainerService/List](../containers/api-ref/grpc/Container/list.md) gRPC API call.

{% endlist %}

## Getting a list of container revisions {#revision-list}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), select the folder with your container.
    1. Navigate to **Serverless Containers**.
    1. Select the container for which you want to get a list of revisions.
    1. Under **Revisions**, you can find a list of container revisions and their details.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    To find out the name or ID of a container, [get](../operations/list.md) the list of containers in the folder.

    To get a list of container revisions, run this command:

    ```bash
    yc serverless container revision list --container-name <container_name>
    ```

    Result:

    ```text
    +----------------------+----------------------+--------------------------------------------+---------------------+
    |          ID          |     CONTAINER ID     |                   IMAGE                    |     CREATED AT      |
    +----------------------+----------------------+--------------------------------------------+---------------------+
    | bbaq84v92qqc******** | bbab5i36nvda******** | cr.yandex/crpp35hht729********/ubuntu:test | 2021-09-09 11:22:28 |
    | bba5eosk5sod******** | bbab5i36nvda******** | cr.yandex/crpp35hht729********/ubuntu:test | 2021-09-09 10:13:04 |
    +----------------------+----------------------+--------------------------------------------+---------------------+
    ```

- API {#api}

  To get a list of container revisions, use the [listRevisions](../containers/api-ref/Container/listRevisions.md) REST API method for the [Container](../containers/api-ref/Container/index.md) resource or the [ContainerService/ListRevisions](../containers/api-ref/grpc/Container/listRevisions.md) gRPC API call.

{% endlist %}

## Getting information about a container revision {#revision-get}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), select the folder with your container.
    1. Navigate to **Serverless Containers**.
    1. Select the container whose revision information you want to get.
    1. Under **Revisions**, you can find a list of container revisions and their details.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    To find out the name or ID of a container revision, [get](../operations/revision-list.md) the list of container revisions in the folder.

    To get detailed information about a container revision, run this command:

    ```bash
    yc serverless container revision get <revision_ID>
    ```
    Result:
    ```text
    id: bbaq84v92qqc********
    container_id: bbab5i36nvda********
    created_at: "2021-09-09T11:22:28.128Z"
    image:
      image_url: cr.yandex/crpp35hht729********/ubuntu:test
      image_digest: sha256:9f05670784f562f278177e43a9ae0179f29b3cb93b2ef165b935f1k9********
    resources:
      memory: "1207959552"
      cores: "1"
      core_fraction: "100"
    execution_timeout: 0s
    concurrency: "1"
    service_account_id: aje07l4q4vmo********
    status: ACTIVE
    ```

- API {#api}

  To get information about a container revision, use the [getRevision](../containers/api-ref/Container/getRevision.md) REST API method for the [Container](../containers/api-ref/Container/index.md) resource or the [ContainerService/GetRevision](../containers/api-ref/grpc/Container/getRevision.md) gRPC API call.

{% endlist %}

## Getting a list of triggers {#trigger-list}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), go to the folder where you want to view a list of triggers.
    1. Navigate to **Serverless Containers**.
    1. In the left-hand panel, select ![image](../../_assets/console-icons/gear-play.svg) **Triggers**.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    Get a list of triggers:

    ```bash
    yc serverless trigger list
    ```

    Result:

    ```text
    +----------------------+------------+----------------------+
    |          ID          |    NAME    |      FOLDER ID       |
    +----------------------+------------+----------------------+
    | dd0gj5tsj2p3******** | my-trigger | aoek49ghmki7******** |
    +----------------------+------------+----------------------+
    ```

- API {#api}

  To get a list of triggers, use the [list](../triggers/api-ref/Trigger/list.md) REST API method for the [Trigger](../triggers/api-ref/Trigger/index.md) resource or the [TriggerService/List](../triggers/api-ref/grpc/Trigger/list.md) gRPC API call.

{% endlist %}

## Getting information about a trigger {#trigger-get}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder containing the trigger.
  1. Navigate to **Serverless Containers**.
  1. In the left-hand panel, select ![image](../../_assets/console-icons/gear-play.svg) **Triggers**.
  1. Select the trigger you want to get details about.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    Get detailed information about a trigger:

    ```bash
    yc serverless trigger get <trigger_name>
    ```

    Result:

    ```text
    id: a1sfe084v4h2********
    folder_id: b1g88tflrih2********
    created_at: "2022-12-04T08:45:31.131391Z"
    name: mail-trigger
    description: My trigger for mail.
    rule:
      mail:
        email: a1smdtklemh2********-xivn****@serverless.yandexcloud.net
        invoke_container:
          container_id: bba5jb38o8h2********
          service_account_id: aje03adgd2h2********
          retry_settings:
            retry_attempts: "1"
            interval: 10s
          dead_letter_queue:
            queue-id: yrn:yc:ymq:ru-central1:b1gmit33ngh2********:dlq
            service-account-id: aje3lebfemh2********
    status: ACTIVE
    ```

- API {#api}

  To get information about a trigger, use the [get](../triggers/api-ref/Trigger/get.md) REST API method for the [Trigger](../triggers/api-ref/Trigger/index.md) resource or the [TriggerService/Get](../triggers/api-ref/grpc/Trigger/get.md) gRPC API call.

{% endlist %}