- Plesk for Linux
The server is broken and the operating system does not boot. Hard drive is mounted to a new Plesk server of the same version and it is required to transfer 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/help-center/professional-services
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 "
Stop all Plesk services on the new system with this command:
# service 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 (
/restorein our case):
# export SHELL=/bin/bash
# chroot /restore
Start MySQL from the old drive in the new chrooted environment:
# service 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