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

# Backing up to Yandex Object Storage with Veeam Backup

# Backing up to Yandex Object Storage with Veeam Backup

You can use Object Storage to backup and restore data using [Veeam Backup & Replication](https://en.wikipedia.org/wiki/Veeam_Backup_%26_Replication) as well as back up data under the 3-2-1 rule.

Why use Object Storage for backups with Veeam:

* S3 protocol-compatible.
* Support for [locking](../concepts/object-lock.md) files with `s3 object lock`
* Allows restricting data access using an [ACL](../concepts/acl.md) and a [bucket policy](../concepts/policy.md).

To configure Object Storage for Veeam backup:

1. [Get your cloud ready](#before-you-begin).
1. [Create a bucket](#create-bucket).
1. [Set up a service account](#configure-service-account).
1. [Configure a backup job](#configure-veeam).
1. [Run a backup job](#start-veeam-backup-job).
1. [Run a restore job](#start-veeam-restore-job).

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


## Getting started {#before-you-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 Veeam backup includes:

* Fee for data storage (see [Object Storage pricing](../pricing.md#prices-storage)).
* Fee for data operations (see [Object Storage pricing](../pricing.md#prices-operations)).
* Fee for Yandex Cloud outbound internet traffic (see [Object Storage pricing](../pricing.md#prices-traffic)).


## Create a bucket {#create-bucket}

{% note info %}

Object Storage only supports Veeam backup to buckets of the [default storage type](../concepts/storage-class.md#default-storage-class): **Regular**.

{% endnote %}

To create a backup 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.editor` [role](../../iam/concepts/access-control/roles.md) to the service account.
1. [Create](../../iam/operations/authentication/manage-access-keys.md#create-access-key) a static access key. Save the ID and secret key: you will need them later on to configure Veeam access to the Object Storage bucket. After closing the window, the private key properties will no longer be available.


## Configure a backup job {#configure-veeam}

{% note info %}

Make sure the system with Veeam can access the `storage.yandexcloud.net` endpoint through ports `80` and `443`.

{% endnote %}

To configure Veeam for Object Storage:

1. Run Veeam.
1. In the left-hand control panel, select **Backup Infrastructure** → **Backup Repositories**.
1. In the window that opens, select the `S3 Compatible` storage type.
1. Enter a name for the repository you are creating.
1. Specify the endpoint for connecting to Object Storage: `https://storage.yandexcloud.net`.
1. Enter `ru-central1` and click **Add**.
1. In the **Access Key** field, specify the static access key ID.
1. In the **Secret Key** field, paste the secret key.
1. From the list of available Object Storage buckets, select the target bucket to store your backups in.


## Run a backup job {#start-veeam-backup-job}

To back up data to the Object Storage bucket you created earlier:

1. In the Veeam window, find the server whose backup you want to create. Right-click it and select **Add to backup job** → **New job**.
1. In the window that opens, select **Type Server** → **Mode Managed by backup server**.
1. In the backup repository selection window, select the one you created earlier in Object Storage.
1. From the list of backup jobs, select the one you created earlier. Right-click it and select **Start**.
1. Once the backup is complete, you will get a complete report.


## Run a restore job {#start-veeam-restore-job}

To restore a file or directory from a backup:

1. In the left-hand control panel, select **Home** → **Backups** → **Object Storage**.
1. Right-click the backup you created earlier and select **Restore guest files**.
1. In the window for selecting files and directories to restore, click **Browse**. 
1. In the file manager that opens, select a file or directory to restore and click **Restore**.
1. Once restoring is complete, you will get a complete report.


## 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.