Mass migration from plesk 7

6 posts / 0 new
Last post
#1 Thu, 05/29/2008 - 23:32
umbrianet

Mass migration from plesk 7

Hi, I'm going to migrate 200+ domains from Plesk 7.5 to my new Virtualmin PRO installation. I know VM only supports migration from Plesk 8, so I'm going to first migrate all the domains to another server with Plesk 8, then backup them (one at a time) and import the backups into VM. Since I'm new to VM, I wonder if there is a faster way to perform the migration. For example, is there any trick to avoid the Plesk 7 to Plesk 8 step? Any suggestion is appreciated.

Thanks Daniele

Fri, 05/30/2008 - 07:42
Joe
Joe's picture

It may be possible just to migrate directly. I'm not sure what has changed, if anything, because formats in the two versions. They may be entirely different, in which case migration would be tougher.

But, try a migration and let us know what happens. If it fails, and if you can make one or more of your Plesk 7.5 backups available to us, we may be able to tweak the migration tools to allow you to migrate directly into Virtualmin.

--

Check out the forum guidelines!

Tue, 06/03/2008 - 22:36 (Reply to #2)
umbrianet

Unfortunately the Plesk 7.5.4 backup file is not recognized by Virtualmin. The migration gives me this error:

Validating migration file ..
.. validation failed : Not a Plesk 8 backup file : Missing filename for section

All the migration options are set to defaults.

The backup file is about 9MB, how can I provide it to you?

Thanks a lot for your help.

Daniele

PS. It would also be interesting for me to have the possibility to migrate a backup file containing more than one domain.

Wed, 06/04/2008 - 12:26 (Reply to #3)
Joe
Joe's picture

I'll ask Jamie to chime in on this thread. And, if you can post the backup on a website and send us a link via email, that'll probably be the easiest and most reliable. Email can probably send it (our side will accept it, but servers in between might have a problem with a 9MB email).

--

Check out the forum guidelines!

Wed, 06/04/2008 - 13:09 (Reply to #4)
Joe
Joe's picture

At the moment, Virtualmin doesn't support Plesk 7 backups. But that would be relatively easy to add .. you can just email the file to me at jcameron@virtualmin.com

Also, it would be useful to know what domains, aliases and mailboxes were in the backup, so I can verify that the migration is complete.

--

Check out the forum guidelines!

Fri, 09/19/2008 - 04:15 (Reply to #5)
umbrianet

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

Topic locked