The best way it is make Plesk backup using PleskX.pl migration agent and restore it on the new server. Follow the steps below:
- mount the old drive, for example to /restore folder. If there are several partitions on the old drive, for example ‘/’ and ‘/var’, they all should be mounted as they were in the old system, so ‘/’ is mounted to /restore/ and ‘/var/’ to ‘/restore/var/’
- stop all Plesk services in the new system with:
# /etc/init.d/psa stopall
- copy migration agent to the old drive (make sure that there is enought free disk space to perform the dump):
# mkdir /restore/migration
# cp -r /usr/local/psa/PMM/agents/shared/* /usr/local/psa/PMM/agents/PleskX/* /restore/migration
- make 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/mysql start
- run migration agent to make Plesk dump:
# cd /migration
# ./PleskX.pl --dump-all -v5
- exit from the chrooted shell after the dump process finished and create
archive folder in the migration directory:
# mkdir /restore/migration/archives
move all files except for dump.xml from /restore/migration/ to /restore/migration/archive folder.
- now you can import data via Plesk CP. Select “Import mode” on the Server->Migration page and specify “Working directory” where you
put all data, it is /restore/migration/ in this example.
Taken from Plesk Tutorial….