Setting up the cloud database
The first stage is connecting to the required cloud database platform. dbForge Edge is a solution that contains four multi-featured IDEs called Studios, each designed for specific RDBMS – for SQL Server, for MySQL, for Oracle, and for PostgreSQL. Database comparison and synchronization features are present in all Studios.
As we chose the Amazon Web Service and PostgreSQL, we need a PostgreSQL cluster on AWS. If you don’t have one, set it up as described in the official instructions. To connect to your cloud PostgreSQL instance, do the following:
Launch dbForge Studio for PostgreSQL and click New Connection.
Provide the connection details for your cloud database instance.
Click Test Connection to verify the details or click Connect at once.
Pre-migration assessment
The most fundamental task in migrating databases to the cloud is ensuring the accurate transfer of data. Depending on your environment and specific work scenarios, you may need to perform either a full data migration, which copies all database data to the cloud, or an incremental data migration, which transfers only the data that has been added or modified.
In both cases, you can rely on dbForge Studio and its Data Compare feature.
Once you've connected to your cloud instance, you can run a data comparison task to identify differences between the source (on-premises) and target (cloud-based) databases. The Data Compare tool can analyze and synchronize data across both environments, ensuring consistency and accuracy throughout the migration process.
1. In dbForge Studio for PostgreSQL, navigate to Comparison and choose New Data Comparison.
2. Select the original database as Source and the database in the cloud as Target.
3. Click Compare to launch the analysis.
When the process is complete, you can check which data is missing in the target cloud database.
Running the migration process
When you define the data to be transitioned to the cloud, click the green arrow on the top to start the synchronization process.
The Synchronization Wizard allows you to configure the data migration task in several clicks. This tool generates synchronization script for deploying the data. You can execute this script immediately or save it for review, editing, and further reuse, if needed.
How often you need to transfer data from your sources to the cloud database depends on your unique work requirements, but you can automate regular database migration tasks. Click Save Command Line in the lower left corner of the Wizard and save the necessary configurations as a .bat file to use it further for automation.
Post-migration testing & optimization
After completing the synchronization task, refresh the window displaying the previous comparison results to confirm that the required data has been successfully transferred.
Once your database has been successfully migrated to the cloud, you can further optimize it to better suit the new environment. With dbForge Edge, you can manage cloud databases just as efficiently as on-premises ones.
It provides a comprehensive toolkit for writing, analyzing, and optimizing queries; importing and exporting data; designing database objects and entire databases; version-controlling databases; managing users and permissions; and handling many other essential database tasks.