Skip to main content

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 (segment ru-6a).

Configure migration

  1. Get access to the source bucket.
  2. Configure the target bucket.
  3. Configure migration parameters.

1. Get access to the source bucket

  1. Sign in to your S3 provider's control panel.
  2. Get the endpoint of the source bucket.
  3. 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

  1. If you do not yet have an S3 bucket for the migration, create one.

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

    2.2. Issue an S3 key to the user.

3. Configure migration settings

  1. In the Control panel, from the top menu, click Products and select S3.

  2. Go to the Data migration section.

  3. Click Create migration.

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

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

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

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

  8. 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:

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

Minimum object sizeThe object is transferred if its size is equal to or greater than the specified value
Maximum object sizeThe object is transferred if its size is equal to or less than the specified value
Modified over a period of timeThe object is transferred if it was uploaded or updated during the specified period of time
Include patterns *Only objects whose names contain a prefix matching the pattern from the specified value are transferred; for more details, see the Pattern filtering subsection
Exclude patterns *All objects are transferred except those whose names contain a prefix matching the pattern from the specified value; for more details, see the Pattern filtering subsection

* 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:
SyntaxValuePattern exampleExample of a value that matches the filterExample of a value that does not match the filter
*Any characters within a single level (up to the / character) *.jpga.jpg, photos/a.jpga.jpeg
**Any characters across all nested levels, including the / character /images/**images/a.jpg, images/2025/a.jpgold/images/a.jpg
?Any single character except the / character report-?.pdfreport-1.pdfreport-10.pdf
[...]A single character from the specified set or range2025-0[1-3]-*.gz2025-02-15.gz2025-04-01.gz
[!...]Any single character except those specified in the set[!_]*.csvdata.csv_tmp.csv
{a,b}Any value from the specified list*.{jpg,png}a.jpg, b.pngc.gif
\Escapes a special character to include it in the search as a regular character\[draft\]*.docx[draft]plan.docxdraft-plan.docx
/ at the beginning of the patternChecking from the root of the value specified in the Path field for the source bucket/tmp/**tmp/x.parta/tmp/x.part
Without / at the beginning of the patternChecked at any nesting level. Must match a full path element between two / characters or between a / character and the beginning or end of the patternfile.jpga/file.jpga/myfile.jpg

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

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

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. In the migration row, check the status in the Status column. Possible statuses:
StatusDescriptionPossible migration actions
IN PROGRESSMigration in progress
  • complete;
  • rename
DONEMigration completed
  • restart;
  • edit;
  • rename;
  • delete
PARTIALLY DONEMigration partially completed — some objects were not transferred to the destination bucket. They may have been modified or deleted during the migration
  • restart;
  • editing;
  • renaming;
  • deletion
ERRORAn error occurred during the migration, and the migration was not completed
  • restart;
  • editing;
  • renaming;
  • deletion
ABORTEDMigration was aborted
  • restart;
  • editing;
  • renaming;
  • deletion
DRAFTMigration has not been started yet
  • start;
  • editing;
  • renaming;
  • deletion

View migration run history

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. Open the migration page.
  4. 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.

  1. In the control panel, on the top menu, click Products and select S3.

  2. Go to the Data migration section.

  3. In the migration menu, select:

    • Start — to start a migration with the DRAFT status;
    • Restart — to run any other migration again.
  4. Optional: click Edit and modify the migration parameters by following steps 4–8 of the Configure migration parameters subsection.

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

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. In the migration menu, select Rename.
  4. 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.
  5. Click Rename.

Edit migration

You cannot edit a migration that is in the IN PROGRESS status.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. In the migration menu, select Edit.
  4. 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.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. In the migration's menu, select Complete.
  4. Enter the migration name to confirm.
  5. 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.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Data migration section.
  3. In the migration's menu, select Delete.
  4. Enter the migration name to confirm.
  5. Click Delete.