Backup to Yandex Object Storage via Duplicati
You can use Yandex Object Storage for backup and recovery via the Duplicati
To set up backups in Object Storage via Duplicati:
- Prepare your cloud.
- Create a bucket.
- Set up a service account.
- Install Duplicati.
- Set up Duplicati.
- Test the backup process.
If you no longer need the resources you created, delete them.
Getting started
Sign up for Yandex Cloud and create a billing account:
- Go to the management console
and log in to Yandex Cloud or create an account if you do not have one yet. - On the Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account, create one.
If you have an active billing account, you can go to the cloud page
Learn more about clouds and folders.
Required paid resources
The price for backups via Duplicati includes:
- Data storage fees (see Yandex Object Storage pricing).
- Fee for data operations (see Yandex Object Storage pricing).
- Cost of outgoing traffic from Yandex Cloud to the internet (see Yandex Object Storage pricing).
Create a bucket
To create a bucket for backups:
- Go to the Yandex Cloud management console
and select the folder to perform your steps in. - On the folder page, click Create resource and select Bucket.
- In the ** Name** field, enter a name for the bucket following the naming conventions:
- In the Object read access, Object listing access, and Read access to settings fields, select Restricted.
- Specify the maximum size of the bucket in GB.
- Click Create bucket.
Set up a service account
Backups in Object Storage are performed on behalf of a service account. If you do not have a service account, create one.
To create a service account:
- Assign the
editor
role to your service account. - Create static access keys. Save the ID and the secret key right away. After you close the window, the private key parameters will become unavailable.
Install Duplicati
Configure Duplicati
To configure Duplicati to work with Object Storage:
- Run Duplicati. If required, set a password for your account.
- Click Add backup.
- Select Configure a new backup then click Next.
- Enter the backup plan name:
Yandex Cloud
. If you selected to encrypt the backup (AES-256 encryption
), enter the password and confirm it. Click Next. - Under Storage Type, select
S3 compatible
. - In the Server list, specify
Custom server URL
. In the field below, enter the addressstorage.yandexcloud.net/
. - In the Bucket name field, enter a name for your bucket.
- In the AWS Access ID field, specify the static access key ID.
- In the AWS Access Key field, enter the secret key.
- To double-check the settings, click Test connection. In the window that opens, click No.
- After checking the settings, click Next.
- Select the files that you want to back up.
- Click Next.
- Set the backup schedule or deselect the Automatically run backups option to create backups manually. Click Next.
- Specify the volume size and set the storage duration. Click Save.
Test the backup procedure
To test a backup:
- In the Duplicati interface, click Home.
- In the list of backup plans next to the
Yandex Cloud
plan, click Run now. - Open the Yandex Cloud management console
. - Go to the folder hosting your bucket with backups.
- Select Object Storage.
- Open the bucket with backups and check whether all the relevant were copied.
For more information about restoring from a backup, see the Duplicati documentation
How to delete the resources you created
To stop paying for the resources created: