Site Offline Migration Solution
In specific scenarios where user databases lack public network interfaces, only complete database import/export solutions are applicable.
Note
- During site migration, users must ensure the integrity and confidentiality of their data, usernames, and passwords.
- Users are accountable for the security of the systems, applications, services, or code being migrated, ensuring no backdoors, vulnerabilities, or other security risks.
- This solution carries a minimal risk of data loss.
- This solution involves one-time migration of user traffic to Baidu AI Cloud. Inadequate pre-testing may lead to risks such as partial service anomalies or interruptions.
Prerequisites
- Analyze the current site's systems and their dependencies, including mapping the front-end main site to the back-end databases.
- Establish the migration sequence based on interdependencies, prioritizing the migration of heavily interconnected databases.
- Prepare database usernames and passwords before migration.
- Document the business functions that require testing to verify the migration results.
- Complete the Baidu AI Cloud Account Registration, and purchase relevant services based on business needs.
Migration
This document provides an overview of the site migration approach. Specific operational methods must be tailored to the on-site environment and business requirements.
- Perform a complete export of all system database servers in the user’s data center and record the operation time for subsequent synchronization of incremental data.
-
Batch import the exported databases into Baidu AI Cloud databases.
Static files, such as videos and images, can be stored using Baidu AI Cloud Object Storage (BOS). Choose one of the two provided solutions based on the data size and network conditions.
- For terabytes (TB) of data requiring more than a week for upload: Use the Data Import Service along with the BOS CLI synchronization solution.
- Small data volumes with quick upload times: BOS CLI sync solution.
For specific operation plans to migrate local data to BOS, refer to Best Practices for Business Migration to BOS.
- Migrate front-end user services to Baidu AI Cloud, adjust service configurations, and integrate them with Baidu AI Cloud databases.
- Debug all business functions and conduct tests based on pre-established test points to ensure every functional module and page display matches the original website.
-
To synchronize database changes, choose one of the following two solutions:
- Solution A: Conduct a full data export from all system database servers in the user's local data center and then import them into Baidu AI Cloud. This is optimal for smaller databases that require minimal time for re-exporting and re-importing.
- Solution B: Use tools to export incremental data generated since the last full database export and synchronize it with Baidu AI Cloud.
- Reassign the user's domain name to Baidu AI Cloud's frontend and redirect all traffic to Baidu AI Cloud.
-
Transfer the site domain name to Baidu AI Cloud and set the DNS resolution information. Change the DNS server information at the original domain name registrar to Baidu AI Cloud DNS. For detailed steps, refer to Domain Name Transfer.
Since DNS changes require at least 24 hours to propagate nationwide, the user’s local front-end systems must remain functional for at least 48 hours to guarantee accessibility across all regions.
- File the migrated site. For specific guidance, refer to Filing Help.
