Skip to main content

Backup storage

Last update:

By default, all backups are stored in the S3 Selectel service bucket.You can create a backup repository, a bucket in S3, to which you can save backups of the information base.

Using your own backup storage gives you full access to your backup files, allows you to set up replication to another pool, download backups, and transfer to a third-party infrastructure outside of Selectel.

You can work with the backup storage in the control panel or through the Cloud for 1C API.See how to work with S3 in the S3 Product Description instructions.

Principle of operation

You create a backup repository based on an existing or new bucket in S3, and then you can store all new backups there.

S3 has a flat address structure — there are no folders and hierarchy in the storage, but you can create and browse simulated folders (directories) for convenience.The folder name is a prefix in the object name.When connecting a bucket, you can specify the prefix and configure saving backups to a simulated folder.

Three ways to connect the S3 are available:

  • automatically — you can connect an existing bucket or create a new one. The service user and access policies for working with the baquette will be created automatically;
  • manually — you can connect an existing bucket. You must create the service user and access policies yourself;
  • using API — you can connect a bucket from any projects to which a service user with the S3 User role has access. You need to create the service user and access policies yourself.

Limitations and recommendations for baquettes

Only backups with Virtual-Hosted addressing can be connected to the backup storage.One backup or simulated folder can be connected to only one storage in the selected pool and project.

The backup storage and the information base must be in the same pool. Backup S3 can be located in any pool.

For optimum performance, we recommend choosing buckets:

  • with a private type;
  • in the region in which the information base is located.

The bucket is connected to the backup repository using the service user and bucket access policies.When you change, delete the service user or bucket access policies:

  • the backup repository will go to the ERRORED status;
  • saving backups to the vault will not be available;
  • scheduled backup will be stopped for all linked information databases;
  • downloading backups will only be available from S3.

Cost

Storage of files in the baket is charged under the S3 payment model and pricing.

If you delete the information base, the backups in the linked bucket will be stored for another 30 days.When you delete the backup storage, the backup files are not deleted and continue to be billed — delete the bucket to stop billing.

Create a backup repository automatically

The default storage will be created and configured when you create it:

  • GO1C_SERVICE_USER service user;
  • access policy for service user GO1C_UPLOAD_BACKUP_POLICY;
  • access policy for the current control panel user ALL_OTHER.

A user with the Account Owner role and users with role combinations can automatically connect the buckets:

  • Account Administrator and User Administrator;
  • Project Administrator and User Administrator.
  1. In the control panel, in the top menu, click Products and select 1C Ready Cloud.

  2. Go to the Backups section.

  3. Click Create a backup repository.

  4. Select the region and pool where the backup storage will be created. The pools of the information base and the backup storage must match.

  5. Select the method of backup storage creation — Automatic.

  6. Select the region and pool in which the buckets will be created. We recommend to create a bucket in the same region as the information base.

  7. Select New S3 buckets in the Buckets field. A private bucket with Virtual-Hosted addressing and standard storage class will be created.

  8. In the Bucket name field, specify the name of the new bucket. For compatibility with the S3 API, the name of the bucket must be unique within S3 and comply with Amazon S3 bucket naming rules, see the Bucket naming rules in the Amazon documentation.

  9. In the Prefix field, specify the prefix for the simulated folder (directory) where the backup files will be stored.

    If you need to create a new folder, name it according to the Amazon S3 backup naming rules. The folder will be created when the backup storage is created.

    If you want the backup files to be stored in the root of the bucket, leave the field blank.

  10. Click Create.

Create a backup repository manually

  1. Prepare the tank for connection.
  2. Create a backup repository.

1. Prepare the tank for connection

  1. Make sure you are in the project where the information base resides.

  2. Create a service user with the role User S3 and access to the project where the bucket will be created.

  3. Create a baquette at S3. Observe restrictions and recommendations for the bucket.

  4. Open the page of the created bucket → Access Policy tab.

  5. Click Create Access Policy.

  6. Add a rule for the service user:

    • in the Access field, select Allow;
    • in the Users field, select Authorized and add the service user you created in step 2;
    • in the Action Set field, select Editor.
  7. Add a rule for control panel users:

    • in the Access field, select Allow;
    • in the Users field select Authorized and add a control panel user who will connect the storage to the 1C cluster;
    • in the Action Set field, select All.
  8. Click Save.

  9. Issue S3 keys to the service user.

2. Create a backup repository

  1. In the control panel, in the top menu, click Products and select 1C Ready Cloud.

  2. Go to the Backups section.

  3. Click Create a backup repository.

  4. Select the region and pool where the backup storage will be created. The pools of the information base and the backup storage must match.

  5. Select the method of creating the backup vault — Manual.

  6. Select the region and pool in which the bucket is located.

  7. In the Bucket field, select the bucket you prepared earlier.

  8. In the Prefix field, specify the prefix for the simulated folder (directory) where the backups will be stored.

    If you need to create a new folder, name it according to the Amazon S3 backup naming rules. The folder will be created automatically when you create the backup storage.

    If the backups will be stored in the baket root, leave the field blank.

  9. In the S3 keys block, specify the Access key and Secret key for the service user that you created when preparing the bucket.

  10. Click Create.