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: https://www.plesk.com/professional-services/
The best way to do this is to make a Plesk backup using the
PleskX.pl 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 "
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 "
# 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 ./PleskX.pl # ./PleskX.pl --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
/restore/migration/" to the "
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
In Plesk 10 and newer the data is restored using the following command:
# /usr/local/psa/bin/pleskrestore --restore ./dump.xml -level server