For those interested, here are the scripts I’m using for automated migration from Plesk 7.5. The scripts take 2 parameters, the domain name ($1) and the reseller ($2).
[code:1]
#!/bin/sh
Remote Plesk backup via ssh
ssh 1.2.3.4 /usr/local/psa/bin/psadump --single-domain-mode --domain-name $1 -f - --noblock --nostop --nostop-domain --force > /root/$1_backup
Import into Virtualmin
/usr/libexec/webmin/virtual-server/migrate-domain.pl --source /root/$1_backup --type psa --user $1
Assign new domain to reseller
/usr/libexec/webmin/virtual-server/modify-domain.pl --domain $1 --reseller $2
[/code:1]
This script works with physical hosting domains. For standard- or frame-forward domains, however, I had to slightly modify it, using the trick to temporarily import the domain as subdomain.
[code:1]
#!/bin/sh
Remote Plesk backup via ssh
ssh 1.2.3.4 /usr/local/psa/bin/psadump --single-domain-mode --domain-name $1 -f - --noblock --nostop --nostop-domain --force > /root/$1_backup
Import into Virtualmin
/usr/libexec/webmin/virtual-server/migrate-domain.pl --source /root/$1_backup --type psa --user $1 --parent some-existing-domain.com
Move to parent
/usr/libexec/webmin/virtual-server/move-domain.pl --domain $1 --newuser $1
Assign new domain to reseller
/usr/libexec/webmin/virtual-server/modify-domain.pl --domain $1 --reseller $2
[/code:1]
Before starting the migration, be careful to the Plesk limits for the domain: the disk space limit should not be less then the total disk space actually used (httpdocs + mail + database), or the database import may fail.
If you want to import from Plesk 8, you have to use a different dump command:
/usr/local/psa/bin/pleskbackup -v domains --skip-logs $1
(tested on Plesk 8.1)
and the parameter ‘–type plesk’ in the migrate-domain.pl command.
Daniele
System Administrator
Umbrianet srl