[Yandex Cloud documentation](../../index.md) > [Yandex Object Storage](../index.md) > [Tutorials](index.md) > Backups > Backing up to Object Storage with Veritas Backup Exec

# Backing up to Yandex Object Storage with Veritas Backup Exec

You can use Yandex Object Storage for backup and recovery using Veritas Backup Exec.

To set up a backup to Object Storage using Veritas Backup Exec:

1. [Get your cloud ready](#before-begin).
1. [Create a bucket](#create-bucket).
1. [Set up a service account](#configure-service-account).
1. [Create a cloud instance on Yandex Object Storage](#new-becloudinstance).
1. [Configure cloud storage](#setup-cloud).
1. [Add a server for backup](#add-source).
1. [Configure the backup settings](#add-target).
1. [Test your backup](#test-backup).

If you no longer need the resources you created, [delete them](#clear-out).

## Getting started {#before-begin}

Sign up for Yandex Cloud and create a [billing account](../../billing/concepts/billing-account.md):
1. Navigate to the [management console](https://console.yandex.cloud) and log in to Yandex Cloud or create a new account.
1. On the **[Yandex Cloud Billing](https://center.yandex.cloud/billing/accounts)** page, make sure you have a billing account linked and it has the `ACTIVE` or `TRIAL_ACTIVE` [status](../../billing/concepts/billing-account-statuses.md). If you do not have a billing account, [create one](../../billing/quickstart/index.md) and [link](../../billing/operations/pin-cloud.md) a cloud to it.

If you have an active billing account, you can create or select a [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) for your infrastructure on the [cloud page](https://console.yandex.cloud/cloud).

[Learn more about clouds and folders here](../../resource-manager/concepts/resources-hierarchy.md).

### Required paid resources {#paid-resources}

The cost of backup using Veritas Backup Exec includes:

* Fee for data storage.
* Fee for data operations.
* Fee for outbound traffic from Yandex Cloud to the internet.

[More on Yandex Object Storage pricing](../pricing.md#prices).

## Create a bucket {#create-bucket}

{% list tabs group=instructions %}

- Management console {#console}

  1. Go to the Yandex Cloud [management console](https://console.yandex.cloud) and select the [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) where you will perform the operations.
  1. On the folder page, click ![plus](../../_assets/console-icons/plus.svg) **Create resource** and select **Bucket**.
  1. In the ** Name** field, enter a name for the [bucket](../concepts/bucket.md) consistent with the [naming conventions](../concepts/bucket.md#naming).
  1. In the **Read objects**, **Read object list**, and **Read settings** fields, select `With authorization`.
  1. Specify the maximum size of the bucket in GB.
  1. Click **Create bucket**.

{% endlist %}

## Set up a service account {#configure-service-account}

In Object Storage, you back up data under a [service account](../../iam/concepts/users/service-accounts.md). If you do not have a service account, [create](../../iam/operations/sa/create.md) one.

To create a service account:

1. [Assign](../../iam/operations/sa/assign-role-for-sa.md) the `storage.admin` [role](../security/index.md#storage-admin) to the service account.
1. [Create](../../iam/operations/authentication/manage-access-keys.md#create-access-key) static access keys. Save the ID and the secret key right away. After you close the window, the private key properties will no longer be available.

## Create a cloud instance on Yandex Object Storage {#new-becloudinstance}

1. Start the Backup Exec Management Command Line Interface and run this command:

    ```bash
    BEMCLI> New-BECloudInstance
    ```

1. Enter the cloud instance properties one by one:
    * `Provider:`: `compatible-with-s3`
    * `ServiceHost:`: `storage.yandexcloud.net`
    * `SslMode:`: `disabled`
    * `Name:`: `cloud`

    Result:

    ```text
    cmdlet New-BECloudInstance at command pipeline position 1
    Supply values for the following parameters:
      Provider: compatible-with-s3
      ServiceHost: storage.yandexcloud.net
      SslMode: disabled
      Name: cloud


    Name        : cloud
    Id          : 12436533-a39e-4df6-81db-f836********
    Provider    : compatible-with-s3
    ServiceHost : storage.yandexcloud.net
    SslMode     : Disabled
    UrlStyle    : Path
    HttpPort    : 80
    HttpsPort   : 443
    Endpoint    :
    ```

## Configure cloud storage {#setup-cloud}

1. Run Veritas Backup Exec.
1. On the **Storage** panel, select **Configure cloud storage**.
1. Enter a **Name** for the cloud storage device and click **Next**.
1. Select a vendor for **S3** and click **Next**.
1. Enter the connection info:
    * Select **Cloud storage** `cloud [ compatible-with-s3 ]`.
    * Next to **Logon account**, click **Add/Edit**.
    * In the **Logon account** selection window, click **Add**.
    * In the **Username** field, enter the key ID.
    * In the **Password** field, enter the secret key.
    * Enter the secret key once again to confirm it.
    * Enter an **Account name**, e.g., `Administrator of Bucket`.
    * Confirm the name of your account and click **OK**.
    * Click **Next**.
1. Select a bucket for backup and click **Next**.
1. Select the number of parallel operations for the device and click **Next**.
1. Double-check the settings you selected and click **Done**.

## Add a server for backup {#add-source}

1. Open the **Backup and restore** tab in Veritas Backup Exec.
1. From the **Servers and Virtual Hosts** drop-down list, select **Add**.
1. Select **Microsoft Windows computers and servers** and click **Next**.
1. Enable **Allow Backup Exec to establish a trust with the servers** and click **Next**.
1. Add the server and click **Next**.
1. Optionally, enable the settings for updating the agent and restarting a remote computer and click **Next**.
1. Double-check the settings you selected and click **Install**.

## Configure the backup settings {#add-target}

1. Open the **Backup and restore** tab in Veritas Backup Exec.
1. Select the server you added at the previous step.
1. From the **Backup** drop-down list, select **Back Up to Cloud**.
1. Double-check the backup settings and modify them if required.

   Select the cloud device you created earlier as the storage.
1. Click **OK**.

## Test your backup {#test-backup}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder with backups.
  1. Navigate to **Object Storage**.
  1. Open the bucket with backups and check whether all relevant files were copied.

{% endlist %}

## How to delete the resources you created {#clear-out}

To stop paying for the resources you created:

1. [Delete](../operations/objects/delete-all.md) the [objects](../concepts/object.md) from the [bucket](../concepts/bucket.md).
1. [Delete](../operations/buckets/delete.md) the bucket.