Article ID: 3072, created on Nov 14, 2007, last review on Sep 11, 2016

  • Applies to:
  • Plesk for Linux/Unix


My server is broken and the operating system does not boot. I mounted the hard drive to a new Plesk server of the same version and want to transfer my Plesk data to the new server.


If you prefer to let Plesk professionals handle the migration or upgrade job for you please check out Plesk professional services options on our website:

The best way to do this is to make a Plesk backup using the migration agent, then restore it on the new server. Follow the steps below:

  • Mount the old drive, for example to the "/restore" folder. If there are several partitions on the old drive (for example "/" and "/var"), they should all be mounted as they were in the old system (so that "/" is mounted to "/restore/" and "/var/" to "/restore/var/").

  • Stop all Plesk services on the new system with this command:

    # /etc/init.d/psa stopall
  • Create a new directory on the old drive and make sure it has the proper permissions (0755):

    # mkdir /restore/migration
    # chmod 0755 /restore/migration
  • Copy the migration agent to this location (after making sure there is enough free disk space to perform the dump):

    # cp -r /usr/local/psa/PMM/agents/shared/* /usr/local/psa/PMM/agents/PleskX/* /restore/migration 
  • Ensure that the old drive mounted to "/restore/" has a "/dev" directory with all the required data. Otherwise, copy the data from "/dev" to "/restore/dev":

    # cp -rp /dev/* /restore/dev/
  • Chroot to the root folder of the old server ("/restore" in our case):

    # export SHELL=/bin/bash
    # chroot /restore
  • Start MySQL from the old drive in the new chrooted environment:

    # /etc/init.d/mysqld start 
  • Run the migration agent to make the Plesk dump:

    # cd  /migration
    # chmod +x ./
    # ./ --dump-all -v5
  • Exit from the chrooted shell after the dump process is finished and create an archive folder in the migration directory:

    # mkdir /restore/migration/archives
  • Move all files except for dump.xml from "/restore/migration/" to the "/restore/migration/archive" folder.

  • In Plesk 9.5 and older it is possible to import this data via the Plesk GUI. Go to Home > Migration Manager > Transfer data already processed by the migration agent and located on the local host and specify the dump.xml location (e.g. /restore/migration/dump.xml).

  • In Plesk 10 and newer the data is restored using the following command:

    # /usr/local/psa/bin/pleskrestore --restore ./dump.xml -level server

How must a Plesk server be prepared for migration?

Is it possible to migrate data to a Plesk server manually using the PMM tool in Plesk 8?

See also How to restore a Plesk installation on a new server after a disaster

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838

Email subscription for changes to this article
Save as PDF