Skip to content

Instantly share code, notes, and snippets.

@jaisonnj90
jaisonnj90 / gist:bf0aa3ebeb8e71f91a6b
Created April 22, 2015 22:03
Plesk to cPanel migration
#!/bin/bash
#Plesk to cPanel
echo ""
echo "Plesk To Cpanel Migration Script \n=======================================\n"
echo "Make sure that the cPanel user has shell access enabled and an sshe key is setup for the same. \nAdd the private key in the location where the script is executing with name key\n=================================================================================================\n"
echo "Before executing this script, create three files in the directory where your are executing the script \nThe file names should be 'dblist', 'emaillist', 'sdomainlist' dblist \nshould contain the name of all dbs, emaillist should contain all the email account without @ and domain name, \nsdomain list should contain the subdomain name individual names should be written in sperate lines\n=====================================================================\n\n"
echo "Enter the domain domain name in the source server:"
read d;
echo "Enter the domain domain name in the destination server:"
read d2;