Current time: 05-05-2024, 08:30 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
Author Message
rethus Offline
Junior Member
*

Posts: 202
Joined: May 2009
Reputation: 3
Post: #37
RE: [HOWTO] Using the CLI to manage ispcp via command line (scripts)
(02-22-2010 05:07 AM)aseques Wrote:  
(02-21-2010 09:05 PM)rethus Wrote:  Can u give a short overview how you did your plesk-Migration?
Did you have a bash-script which connect to the plesk-server, or to the plesk-database to get all the informations automaticly?
We had to create some php scripts to accomplish the migration.
1.- You should stop the incoming mail for the domain, and the website, we did this changing the mx transport, and changed the index.php of the sites with a warning about the job being done.
2.- Another php prepared for use the list of the comands domain.php and domain_dns.php should run to replicate the domain. Basically you can get all that information from the database (in plesk the passwords are on clear text)
3.- Finally you run the scripts in order, for example.
.- Create the domain on ispcp
.- wait for it to be finished
.- rsync the content from plesk to ispcp
.- create the database and the mysql users
.- rsync the databases (normally syncing /var/lib/mysql and restarting the mysql server does the trick)
.- create the mail accounts
.- rsync the mail from plesk to ispcp (was using dovecot in my case)
and so on...
4.- At the end you will have the new server ready to run, then you must change from the old server to the new one the dns service.
5.- Domain finished, and then for the next (I did around 300 domains, but most were quite simple)

Thanks for this Information.
But did you have done these steps (at point 3) manualy or did u create a bashscript on the target-Machine.

Please can u sent little example-commands for creating domain, mysql-database, mails ?
02-23-2010 10:07 PM
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Using the CLI with ispcp - aseques - 05-08-2009, 11:26 PM
RE: [HOWTO] Using the CLI to manage ispcp via command line (scripts) - rethus - 02-23-2010 10:07 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)