|
|||
|
Transfer sites from command line
hello,
i need help in transferring a lots of sites. i need to transfer (suppose) 500 sites out of total 1000 accounts in a server. it is not possible to find & check 500 sites and check the express transfer box. its so bad that there is not option to check all for express mode option. thats why i am planning to write a script. i can handle the script part. but i need to know how to transfer the site in command line. i have a list of domains/username in a text file. using the script i will transfer each site. how can I do it? anything to do it like: restorepkg root@OLD_SERVER_IP username --express thanks |
|
|||
|
Quote:
problem of rsync is the express transfer. cpanel's express transfer nicely suspends the site in the remote server, point all A records to new server etc. how can I do that using rsync? thanks |
|
|||
|
I have found this thread. will it still work?
Transfer account from command line |
|
||||
|
A quick solution would be to use '/scripts/suspendacct' script after each successfully account restore on the new server and to update the A record for the zone located in /var/named/ for the given domain using a stream editor (ie: sed).
__________________
:: Server Buddies :: Server Management & Monitoring .Dedicated Server Solutions At Affordable Rates. |
|
||||
|
Sorry, I did not note your last reply.
I believe /scripts/getremotecpmove prompts for the account password every time you run it so I doubt you can automatize the migration process with it.
__________________
:: Server Buddies :: Server Management & Monitoring .Dedicated Server Solutions At Affordable Rates. |
|
|||
|
thanks for your efforts.
i find it easier to check the accounts. but i will appreciate if cpanel makes it easier to select 'express transfer' option for many domains. |
|
|||
|
The IP should be reassigned automatically when you restore the cpmove
file on the new server (usually to the shared default IP for that server) but you can also individually and mass change IPs easy enough. The only thing I recommend is that before transferring, you duplicate the settings, features, and package plans on the new server to be the same as the old server before transferring accounts and it will make your life much easier and things should sync up nicely.
__________________
[b][color="Blue"]Server Support[/color]: [color="Red"]Server consulting, security, and management![/color][/b] |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command Line? | fizz | cPanel and WHM Discussions | 1 | 05-19-2006 05:41 AM |
| exim command line | carloseduardoab | cPanel and WHM Discussions | 2 | 09-19-2005 11:16 AM |
| Transfer account from command line | akox | cPanel and WHM Discussions | 2 | 05-01-2005 01:25 PM |
| What is the command to restart cpanel via the command line? | AbeFroman | cPanel and WHM Discussions | 2 | 07-29-2004 04:24 PM |
| Is there a way to look up how much bandwidth some on has used from the command line? | AbeFroman | cPanel and WHM Discussions | 1 | 02-18-2004 11:30 PM |