Data migration to S3
You can configure data migration to S3 from a source bucket:
- in a third-party S3-compatible storage;
- or in Selectel S3 in the same or another account.
Migration is only possible to a target bucket in Selectel. Migration from Selectel S3 to third-party storage is not supported. Migrations also have a number of limitations.
To migrate data to S3, configure the migration. You can track the status and run history for each migration. You can also start a migration from a draft or rerun it, abort it prematurely, edit it, rename it, and delete it.
S3 migration restrictions
- it is recommended to migrate no more than 500 TB per migration. To migrate larger volumes of data, create a ticket;
- no more than five migrations can run simultaneously across all account projects. If the limit is reached, the migration will not start and will be saved as a draft with the status
DRAFT. You can start it once one of the running migrations completes. There is no limit on the number of migration drafts; - only one migration can be run to a single target bucket at a time. If you create another migration to the same bucket simultaneously, it will be saved as a draft.
Pricing
S3 migration is provided free of charge.
However, the target bucket in S3 is billed according to the S3 billing model.
If the migration is performed:
- from a third-party S3-compatible storage: API requests and storage volume are billed for the target bucket in Selectel. Incoming traffic is free. Outgoing traffic is charged by the S3 storage provider from which the migration is performed;
- from another Selectel S3 bucket: API requests are billed for the source bucket, and API requests and storage volume are billed for the target bucket. Traffic between buckets is internal within Selectel and is free of charge.
Data security during migration
- data is not stored anywhere during the migration process—the migration service transfers it directly from the source bucket to the target bucket;
- data transfer is carried out over a secure connection, and traffic is encrypted using the TLS protocol;
- migration is performed by computing resources of the multi-AZ pool
ru-6(segmentru-6a).
Configure migration
1. Get access to the source bucket
Third-party S3 storage
S3 bucket in Selectel
- Sign in to your S3 provider's control panel.
- Get the endpoint of the source bucket.
- Get an Access Key and Secret Key pair to access the source bucket. The credentials for which the keys are issued must provide read access to the bucket and its objects.
2. Configure the destination bucket
-
If you do not yet have an S3 bucket for the migration, create one.
-
Configure access to the destination bucket. Access can be configured by the Account Owner or a user with the iam.admin role:
2.1. Create a service user with a role that has S3 access. If you are using a service user with the s3.user, object_storage_user, or s3.bucket.user role, a bucket policy must be configured for the bucket, and its rules must grant the user at least permissions to list objects, read objects, and upload objects. To automatically delete test objects created during connection verification, also allow object deletion.
3. Configure migration settings
Third-party S3 storage
S3 bucket in Selectel
-
In the Control panel, from the top menu, click Products and select S3.
-
Go to the Data migration section.
-
Click Create migration.
-
In the Source block, add the source bucket details that you obtained in stage 1:
4.1. Enter the region where the source bucket is located.
4.2. In the Endpoint field, specify the endpoint of the source bucket that you obtained in step 2 of stage 1.
4.3. Enter the name of the source bucket.
4.4. Optional: To migrate data from a specific prefix rather than the entire bucket, enter the object prefix in the Path field. If no prefix is specified, all data in the bucket will be migrated.
4.5. Paste the Access Key value that you obtained in step 3 of stage 1.
4.6. Paste the Secret Key value that you obtained in step 3 of stage 1.
4.7. Optional: Click Check connection. The service will verify that the source bucket is accessible and that the credentials allow listing objects. Data in the source bucket will not be modified.
You can check the connection no more than five times per minute. If you do not check the connection manually, it will be verified automatically when creating the migration. If verification fails, the migration will not be created.
-
In the Destination block, add the destination bucket details in Selectel that you obtained in stage 2:
5.1. Select the location where the destination bucket is located.
5.2. Enter the destination bucket name.
5.3. Optional: to migrate data with a specific prefix rather than to the bucket root, in the Path field, enter the prefix under which objects will be uploaded to the destination bucket. If no prefix is specified, migration will be performed to the bucket root.
5.4. Paste the Access Key value from the S3 key that you obtained in step 2.2 of stage 2.
5.5. Paste the Secret Key value from the S3 key that you obtained in step 2.2 of stage 2.
5.6. Optional: click Check connection. The service will verify that the destination bucket is accessible and the credentials allow uploading objects — an empty test object named
.dt-conncheck-<uuid>will be created in the bucket. If, when configuring the destination bucket, you granted access permissions that allow deleting objects, the test object will be automatically deleted after the check completes. -
Optional: to overwrite same-named objects with the same prefix during migration, in the Migration parameters block, select the Overwrite if prefixes match checkbox. If the checkbox is unselected, same-named objects will be skipped during migration.
-
Optional: to select objects for migration based on specific conditions, in the Filtering block, configure the parameters:
7.1. Select a filtering parameter.
7.2. Specify the parameter value.
7.3. Click .
7.4. Optional: to add another parameter, repeat steps 7.1-7.3.
-
Complete the migration configuration:
8.1. To save the migration settings without starting it, click Save draft.
8.2. To start the migration immediately, click Create migration. If the migration completes with the status:
PARTIALLY DONE— start the migration again;ERROR— verify that the migration is configured correctly, change the parameters, and start the migration again. If you cannot determine the cause of the error, submit a ticket.
Filtering
Filtering determines which objects from the source bucket will be transferred to the destination bucket.
If multiple filters are added, they are combined — migration is performed only for objects that satisfy all filters.
Filter list
* You can use only one pattern filtering parameter in object names.
Pattern filtering
The Include patterns and Exclude patterns filters filter objects by their names. Only one pattern filter can be used per migration. You can add up to 100 patterns to a filter.
If multiple patterns are added to a filter, an object matches the filter if it satisfies at least one pattern.
Basic principles and limitations:
- latin and Cyrillic characters are supported;
- regular expressions are not supported;
- case-sensitive;
- patterns must be specified without quotes. If you include quotes, they will become part of the pattern;
- patterns must follow a specific syntax:
If in the source bucket in the Path field:
- nothing is specified, the template is checked against the bucket name;
- a prefix is specified, the template is checked relative to the value in the Path field;
- the path to the object is specified, the filter is not applied and the object is transferred.
For example, the name of the source bucket is backup, and you added the 2025 prefix to it in the Path field. The full name of the checked object with the prefix is backup/2025/images/a.jpg. When checking the object against the template, the value specified in the template will be matched against the images/a.jpg part.
View migration status
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- In the migration row, check the status in the Status column. Possible statuses:
View migration run history
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- Open the migration page.
- In the Migration History block, view the list of migration runs.
Start migration
You can start a migration that was saved as a draft with the DRAFT status, or restart any migration that has already been run previously, regardless of the migration result.
-
In the control panel, on the top menu, click Products and select S3.
-
Go to the Data migration section.
-
In the migration menu, select:
- Start — to start a migration with the
DRAFTstatus; - Restart — to run any other migration again.
- Start — to start a migration with the
-
Optional: click Edit and modify the migration parameters by following steps 4–8 of the Configure migration parameters subsection.
-
Click Start. If the migration completes with the status:
PARTIALLY DONE— run the migration again;ERROR— check if the migration is configured correctly, change the parameters, and run the migration again. If you cannot determine the cause of the error, create a ticket.
Rename migration
The migration name is generated automatically when the migration is created. You can rename a created migration.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- In the migration menu, select Rename.
- Enter a new migration name. The name must be between 3 and 255 characters long. It can contain Latin and Cyrillic letters in any case, numbers, periods, hyphens, and underscores.
- Click Rename.
Edit migration
You cannot edit a migration that is in the IN PROGRESS status.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- In the migration menu, select Edit.
- Modify the migration parameters by following steps 4–8 of the Configure migration parameters subsection.
Complete migration
Objects that were migrated before the migration was completed will remain in the destination bucket.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- In the migration's menu, select Complete.
- Enter the migration name to confirm.
- Click Complete.
Delete migration
You cannot delete a migration that is in the IN PROGRESS status. To delete an active migration, first complete it.
Deleting a migration will delete the saved access keys and run history. Objects that were migrated to the destination bucket will remain in it.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Data migration section.
- In the migration's menu, select Delete.
- Enter the migration name to confirm.
- Click Delete.