Hello,
I'm about to migrate all my websites to another cPanel server using the "Copy multiple accounts/packages from another server" feature. The problem is, it's a big transfer and it will take a while. To prevent data rollback I want to customize the transfer process.
Basically I just want the destination server (local server) to send a signal in the form of a HTTP request to my source server (the remote server) telling the server that an account has been restored/copied. This signal will run a script that will update the DNS zones for that account with the new IP address.
What I've tried is the following. I modified /scripts/restorepkg (on the local/destination server) and added the following lines at the end:
Unfortunately though, it doesn't work. I think the /scripts/restorepkg isn't involved for restoring the account on my new server...
I've read something about this in the following presentation, which isn't really documented at all so I'm just guessing:
http://docs.cpanel.net/twiki/pub/Al.../TrainingSlides09/Migration_Customization.pdf
So my question is: Which script is used at the local/destination server to restore the account once it's copied? Is there a way to augment this script?
Thanks
I'm about to migrate all my websites to another cPanel server using the "Copy multiple accounts/packages from another server" feature. The problem is, it's a big transfer and it will take a while. To prevent data rollback I want to customize the transfer process.
Basically I just want the destination server (local server) to send a signal in the form of a HTTP request to my source server (the remote server) telling the server that an account has been restored/copied. This signal will run a script that will update the DNS zones for that account with the new IP address.
What I've tried is the following. I modified /scripts/restorepkg (on the local/destination server) and added the following lines at the end:
Code:
system 'lwp-request', 'https://xxxxxxxxxx.com/restorepkg.php?user=' . $user;
I've read something about this in the following presentation, which isn't really documented at all so I'm just guessing:
http://docs.cpanel.net/twiki/pub/Al.../TrainingSlides09/Migration_Customization.pdf
So my question is: Which script is used at the local/destination server to restore the account once it's copied? Is there a way to augment this script?
Thanks