Getting started with Data Transfer
Copy or replicate data from a source to a target by creating endpoints and configuring transfers between them.
Before you start
-
Go to the Yandex Cloud management console and select the folder where you want to perform the operations. If that folder doesn't exist, create it:
Management consoleCLIAPI-
Click Create folder on the cloud page.
-
Enter the folder name. Naming requirements:
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
-
(Optional) Enter a description of the folder.
-
Select the Create a default network option. A network is created with subnets in each availability zone. A default security group, where all network traffic is allowed inside, will also be created in this network.
-
Click Create.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
-
See a description of the create folder command:
yc resource-manager folder create --help
-
Create a new folder:
-
with a name and without a description:
yc resource-manager folder create \ --name new-folder
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
-
with a name and description:
yc resource-manager folder create \ --name new-folder \ --description "my first folder with description"
-
-
-
On the billing page, make sure that a billing account is linked and that its status is
ACTIVE
orTRIAL_ACTIVE
. If you don't have a billing account, create one. -
On the access management page, make sure you have the
editor
role or higher to the desired folder or the cloud that the folder belongs to.
Configure the source and the target
Prepare the source service for sending data:
Prepare the target service for receiving the data:
To receive data in Managed Service for YDB, no setup is necessary.
Creating an endpoint for the source
- Go to the folder page and select Data Transfer.
- On the Endpoints tab, click Create endpoint.
- Make sure that the Direction field is set to
Source
. - Enter a name for the endpoint.
- In the Database type field, select the type of the DBMS to transfer data from.
- Specify endpoint parameters in the corresponding settings section.
- Click Create.
For more information, see Managing a source endpoint.
Creating an endpoint for the target
- Go to the folder page and select Data Transfer.
- On the Endpoints tab, click Create endpoint.
- Make sure that the Direction field is set to
Target
. - Enter a name for the endpoint.
- In the Database type field, select the type of DBMS that you want to transfer data to.
- Specify endpoint parameters in the corresponding settings section.
- Click Create.
For more information, see Managing a target endpoint.
Create a transfer
- Go to the folder page and select Data Transfer.
- On the Transfers tab, click Create transfer.
- Select the endpoint for the source and the endpoint for the target.
- Enter a name for the transfer.
- Select the type of transfer:
Copy and replicate
: To create a full copy of the source data and keep it up-to-date.Copy
: To create a full copy of the data without receiving further updates from the source.Replicate
: To continuously receive data updates from the source and apply them to the target (without creating a full copy of the source data).
- (Optional) add a transfer description.
- Click Create.
For more information, see Types of transfers.
Activate the transfer
- Go to the folder page and select Data Transfer.
- On the Transfers tab, click next to the name of the desired transfer and select Activate.
The data transfer process will begin.
For more information, see Managing the transfer process.
What's next
- Read about service concepts.
- Learn more about preparing databases for the service and setting up transfers.
- Read questions and answers.