# /scripts/pkgacct --skiphomedir --skipacctdb CPANEL_USER
Showing posts with label Migration. Show all posts
Showing posts with label Migration. Show all posts
Sunday, March 9, 2014
Saturday, April 25, 2009
site transfer
cPanel Account transfer
You should able to transfer accounts from your old server to this via WHM as follows. To work this properly you should able to SSH from this sever to the old server without any issue.
WHM login >> Main >> Transfers >> Copy multiple accounts/packages from another server
Here you need to provide the old server IP, SSH port, and root password.
If the above method fails you can transfer accounts manually as follows.
1. Take backup of the accounts using the following script: ( in source server)
# /scripts/pkgacct
This will create a backup file under /home with name cpmove-.tar.gz
2. Copy(use scp) this file into the target server: (say xx.xx.xx.xx)
#scp your-tar-filename root@newserverip:/home
It will ask the password of destination server
eg.
# scp cpmove-.tar.gz root@xx.xx.xx.xx:/home
3. Restore accounts using the following script:
# /scripts/restorepkg
--------------------------------------------------------------------
Scp command with port
Sometimes server needs a port for scp
#scp -p(portno) old-serverip:/home/tar-filename current-file
eg.
home#scp -P22 00.00.00.00:/home/cpmove-user.tar.gz ./
-------------------------------------------------------------------------
You should able to transfer accounts from your old server to this via WHM as follows. To work this properly you should able to SSH from this sever to the old server without any issue.
WHM login >> Main >> Transfers >> Copy multiple accounts/packages from another server
Here you need to provide the old server IP, SSH port, and root password.
If the above method fails you can transfer accounts manually as follows.
1. Take backup of the accounts using the following script: ( in source server)
# /scripts/pkgacct
This will create a backup file under /home with name cpmove-
2. Copy(use scp) this file into the target server: (say xx.xx.xx.xx)
#scp your-tar-filename root@newserverip:/home
It will ask the password of destination server
eg.
# scp cpmove-
3. Restore accounts using the following script:
# /scripts/restorepkg
--------------------------------------------------------------------
Scp command with port
Sometimes server needs a port for scp
eg.
home#scp -P22 00.00.00.00:/home/cpmove-user.tar.gz ./
-------------------------------------------------------------------------
Monday, February 23, 2009
Migration
Whm transfer gives bad file descriptor error
During a transfer you may run into the following error:
--------------------------------------------------------------------------------
Connecting to Remote Server Failed: Unable to connect to IP.ADDRESS:22: Bad file descriptor
---------------------------------------------------------------------------------
This error is shown when the server that the copy is running on is unable to connect to the remote SSH server. The most common error is due to a firewall blocking outgoing port 22 on the server. Open up the firewall to allow this and the transfer will go through.
Apf Firewall.
#vi /etc/apf/conf.apf
On the APF firewall add port 22 to EG_TCP_CPORTS if you have EGF set to 1. Then restart apf with apf -r
You have to check port 22 in conf.apf file on both servers source and destination.
Scroll down to the "Common ingress (inbound) TCP ports section. At this point you need to find the correct configuration for your control panel.
----------------------------------------
-----cPanel -----
IG_TCP_CPORTS="20,21,22,25,26,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,2096"
IG_UDP_CPORTS="21,53,873"
EGF="1"
EG_TCP_CPORTS="21,22,25,26,27,37,43,53,80,110,113,443,465,873,2089"
EG_UDP_CPORTS="20,21,37,53,873"
--------------------------------------------
During a transfer you may run into the following error:
--------------------------------------------------------------------------------
Connecting to Remote Server Failed: Unable to connect to IP.ADDRESS:22: Bad file descriptor
---------------------------------------------------------------------------------
This error is shown when the server that the copy is running on is unable to connect to the remote SSH server. The most common error is due to a firewall blocking outgoing port 22 on the server. Open up the firewall to allow this and the transfer will go through.
Apf Firewall.
#vi /etc/apf/conf.apf
On the APF firewall add port 22 to EG_TCP_CPORTS if you have EGF set to 1. Then restart apf with apf -r
You have to check port 22 in conf.apf file on both servers source and destination.
Scroll down to the "Common ingress (inbound) TCP ports section. At this point you need to find the correct configuration for your control panel.
----------------------------------------
-----cPanel -----
IG_TCP_CPORTS="20,21,22,25,26,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,2096"
IG_UDP_CPORTS="21,53,873"
EGF="1"
EG_TCP_CPORTS="21,22,25,26,27,37,43,53,80,110,113,443,465,873,2089"
EG_UDP_CPORTS="20,21,37,53,873"
--------------------------------------------
Subscribe to:
Posts (Atom)