If you are looking for a new hosting solution for an existing project, for example because you want more per­form­ance, more flexible scaling, or you simply wish to switch providers – you might ask yourself this question: what happens to the existing data, struc­tures, and con­fig­ur­a­tions? The answer isn’t far away: with the necessary know-how, the ap­pro­pri­ate planning and specific software, you simply transfer the desired data to the new server. Trans­fer­ring from one system to another is also referred to as data migration. The com­plex­ity of the migration process increases with the com­plex­ity and size of the project. It is also important to know whether you’re migrating your data to a server of the same type, or whether the new server has a com­pletely new ar­chi­tec­ture. We will show you what you should pay attention to when moving your server data and how server migration works with IONOS.

Free VPS Trial
Try a virtual server risk-free for 30 days

Try out your VPS for 30 days. If you're not satisfied, we'll fully reimburse you.

Migrating data to a new server – a question of proper planning

When trans­fer­ring your complete server data, you should clarify some important basic con­di­tions in advance. Choosing a suitable target server is the first step. If, for example, you are planning on changing providers, you’ll have ad­di­tion­al tasks to contend with that you don’t have to deal with during a simple re­lo­ca­tion. It also makes a dif­fer­ence whether you transfer your data from one dedicated server to another, or whether the new server structure is based on clusters and involves several different systems.

To ensure that the effort isn’t dis­pro­por­tion­ately high, you should ask yourself whether the planned migration progress is worth it and will have a positive effect on your website’s de­vel­op­ment in the long run. When you change the server ar­chi­tec­ture, you will have to make changes to the con­fig­ur­a­tions – whether it is because of a different operating system, different software versions, or a different system control. And even if you are just switching to a more powerful server of the same type, you still need to configure your ap­plic­a­tions and services ac­cord­ingly so you can take advantage of the extra memory, improved CPU per­form­ance, or increased memory capacity.

Tip

Whether you choose a simple per­form­ance upgrade or a complete change of server ar­chi­tec­ture: you should create the optimal con­di­tions for the move in advance. These include factors such as suf­fi­cient storage space and computing power plus 30 to 40% buffer or a detailed scaling plan as well as a fast network con­nec­tion.

When does it make sense to migrate data to another server?

There are very different reasons for trans­fer­ring data to a new server. In most cases, mi­gra­tions take place because more capacity is needed. If the hardware can no longer meet the re­quire­ments and an upgrade is not possible, there is no al­tern­at­ive but to relocate to a new server. Vice versa, it makes sense to migrate your data to a smaller server if the available computing power exceeds the amount you require. This is mainly due to the cost factor, which is often why people change their supplier.

If you rent your server resources, you might not look ex­clus­ively at the costs for the re­spect­ive hosting service. The contract con­di­tions can also be a reason for migrating servers. The various packages from providers differ in what they offer i.e. avail­ab­il­ity, data security, and support. Therefore, it makes sense to compare the different packages before making your selection. Another reason for migrating data could be that you want to take some pressure off your IT de­part­ment. In this case, a managed server solution would be a good choice. It isn’t only hosted, but also main­tained and updated by the provider.

Preparing the current server for upcoming migration

To make the con­fig­ur­a­tion and in­tro­duc­tion of the new server as simple as possible, it makes sense to tidy up the server you’re currently using. Therefore, data migration is the optimal time to delete any redundant or outdated pages, back-ups, e-mail accounts, and user accounts. This means you reduce the amount of data you’re trans­fer­ring to a minimum and, on the other hand, you obtain greater value out of the required resources on the target system.

In addition, you should develop an accurate schedule for shutting down the active server processes so that no com­plic­a­tions occur later with the result of data being lost. Specify a time at which any changes to files, scripts, and con­fig­ur­a­tions should be stopped, and tem­por­ar­ily block access to your databases, if possible. It’s also possible to update your database later. In most cases, the data transfer takes place by means of a complete server backup (which you should also carry out if you are aiming for a different migration strategy).

How does data migration work for servers?

The easiest way to migrate your data is to use a one-to-one copy of the actual state. You transfer this to the new server hardware before you make necessary con­fig­ur­a­tions and ad­just­ments and then you can test if it works. Finally, you can adjust the DNS or IP settings, which will allow you to start your web project live on the new system. Although this approach usually requires the support of system ad­min­is­trat­ors, it is easy to plan and execute. However, it means the current server will be com­pletely suspended and you won’t be able to access or use your website for the duration of the data migration. If you offer a service that requires constant database access, you need a hybrid migration solution that keeps the current server active. In this case, you should declare the current database on the server as 'master', which then sub­or­din­ates the new database to 'slave' once the con­fig­ur­a­tion is complete. This enables the two ap­plic­a­tions to syn­chron­ise in real time. If both databases are in the same state, reverse the roles so that the new database becomes master. This means that your project can continue being available during data migration. In addition, this strategy offers the pos­sib­il­ity of you always being able to access the old database (which still has the current data), if the new server is ex­per­i­en­cing com­plic­a­tions. In order to test the func­tion­al­ity of a web or ap­plic­a­tion server without having to switch off the old version, you can use a load balancer: by first re­dir­ect­ing the traffic of your web project to the new server, you will see if it is properly con­figured and works as desired. Once again, you benefit from no downtime and can therefore rest assured.

Which resources are available for data migration to a new server?

There are several tools and services available that simplify server migration. For example, if you want to simply move your data without having to adjust the operating system or other software, you shouldn’t forgo a control panel. Server man­age­ment pro­grammes like these help you create backups of your data and then migrate them to the new server. The required con­fig­ur­a­tion effort is minimal. Content man­age­ment systems such as WordPress can also be trans­ferred using simple FTP and backup ap­plic­a­tions, and often offer their own plugins for migrating the linked database. These automate the process for the most part.

For more complex projects, root per­mis­sions always pay dividends: via SSH, you can transfer complete databases, including all per­mis­sions and user data, to a new server via the re­spect­ive command line. For example, you can use MySQLdump to send MySQL databases to the target system as a copy. As a Microsoft SQL server user, you can even use the built-in functions for this purpose.

However, you can also outsource the migration of your server data: many hosting providers offer their customers not only specific software for manually per­form­ing a server data transfer, but also offer to actively support the data migration. Fur­ther­more, there are also services that spe­cial­ise in the migration of web projects and provide a round-the-clock service – whether it’s a simple switch from one shared server to another, you’re changing your provider, or you plan to switch to a server cluster.

Which problems can occur during server migration?

A permanent con­nec­tion is necessary for the server data to be trans­mit­ted as desired. It is therefore not sur­pris­ing that con­nec­tion problems are among the most frequent sources of error during server migration. If the con­nec­tion is broken, it could com­pletely terminate the trans­mis­sion, meaning it’s restarted from the beginning. Short-term con­nec­tion problems, however, often remain unnoticed and don’t result in the process being ter­min­ated. However, in some cases, not all data can reach the target server, which in turn can com­prom­ise the func­tion­al­ity of the migrated ap­plic­a­tions.

However, if certain files can’t be suc­cess­fully trans­ferred to the new server, there may be several reasons behind this. Com­pat­ib­il­ity problems occur, in par­tic­u­lar, when the operating system is changed and certain file formats, pro­gram­ming languages, etc. aren’t supported natively anymore. Moreover, different access rights or password pro­tec­tion on the source computer and target computer can lead to com­plic­a­tions. In addition, data migration might incur errors if the target system does not have the required disk space or if the DNS entries have not been changed correctly. 

Server data migration: check list

Moving your project to a new server can be a complex and tedious process, depending on the size of the project and the new target’s ar­chi­tec­ture. This is why it should be well planned and carefully executed. The following checklist sum­mar­ises the most important questions about server migration.

  • Which ar­chi­tec­ture should the new server have?
  • Does the project’s ar­chi­tec­ture suit your needs?
  • Are the necessary financial resources and spe­cial­ists available for the migration and the sub­sequent server con­fig­ur­a­tion?
  • Is the selected hardware flexible enough for the future de­vel­op­ment of your project? 
  • Should the migration process take place during operation or should all activ­it­ies be in­ter­rup­ted for the duration of the process?
  • Is main­tain­ing the operation pro­por­tion­ate to the as­so­ci­ated resources and the increased com­plex­ity?
  • Which steps can otherwise be taken to keep the downtime as low as possible?
  • How can you ensure the integrity of the database entries and that they are up-to-date?
  • How is the func­tion­al­ity of the new server tested? 
  • What happens when certain ap­plic­a­tions do not work after data migration is complete?
Tip

Do you wish to migrate your server data  onto a IONOS cloud server? Find out here how you can benefit from a server migration.

Server migration with IONOS: how to import server images from your Cloud panel

All users of the IONOS cloud server solution have the option to migrate data to the new server via the IONOS Cloud panel. To do this, an image/ISO image of the original server can be created and used to set up the new server. Image files like these are created auto­mat­ic­ally for your project (even in regular intervals), if you have created a cor­res­pond­ing backup plan in the panel. In both automatic and manual creation, the un­der­ly­ing server can’t be edited during the process. In addition, a size limit of 500 GB applies to each server image. The possible formats of the images are:

  • .vdi
  • .qcow
  • .qcow2
  • .vhd
  • .vhdx
  • .vmdk
  • .iso

Creating images/ISO images

If you aren’t using an auto­mat­ic­ally created backup image, you first need to create the server image for the planned data migration. There are two options for this step: you can either use a separate software or use the in­teg­rated copy function in the Cloud panel.

First, you need a programme that enables you to make a copy of the current server. The Disk2vhd tool and QEMU are re­com­men­ded for this task. The former was developed spe­cific­ally for Windows operating systems and enables image files to be created in Microsoft’s format for virtual machines VHD (Virtual Hard Disk). The latter is part of most Linux re­pos­it­or­ies and is also available for macOS and Windows. QEMU is com­pat­ible with these image formats: .vmdk, .vhdx, .qcow, .qcow2, and .vdi.

Al­tern­at­ively, you can also access the built-in function in the Cloud panel for image creation. Simply go to 'Images' under the 'In­fra­struc­ture' tab, then click on the 'Create image' button and select the server that is to be copied. A final click on 'Create' will start the process.

Importing images

After you have created an image of the output server, you can use it to create a new server with the same database. To import your server image in the Cloud panel, go to 'In­fra­struc­ture' à 'Images' section of the Cloud panel.

  1. To migrate data to the new server using an image, first click the 'Create' button and give an ap­pro­pri­ate name to the copy that’s in the panel.
  2. Select the 'Import image' option and specify the operating system of the server image in the 'Operating system' field.
  3. In the 'URL' field, copy the address of the location where the image file is stored.
  4. In the advanced settings, you can finally enter the data centre of your choice in the 'Display' section.
  5. Click on 'Create' to start the import process.
Tip

After you install an imported CentOS 7 image, you must create a new kernel image. A copy of a Microsoft Windows server requires the LSI_SAS con­trol­ler to be activated.

Importing ISO

For ISO copies of the output server, a separate import button is displayed in the 'Images' area of the Cloud panel. In addition, you have the option of either spe­cify­ing the server’s operating system or in­dic­at­ing that the ISO is a single ap­plic­a­tion.

  1. For the first step, create a new server entry via 'Create' and specify a mean­ing­ful name for the server image.
     
  2. Next, select the option 'Import an ISO' and indicate whether it is an image of an ap­plic­a­tion or an operating system.
  1. The next field is where you specify the URL under which the ISO image is to be down­loaded.

  2. Under 'Ad­di­tion­al Settings', you can now select the required data centre by clicking on 'Display' before you start importing the ISO file after clicking on 'Create'.
Tip

After the import process is finished, you can see the absolute size of the image in the overview.

Go to Main Menu