HowTo: Copy cPanel Packages from Server to Server

comcage

Member
Jul 26, 2003
20
0
151
I just thought I would share my method with those who haven't already figured out a method for transferring cPanel packages from one server to another.

1. SSH into the server with the existing packages.
2. CD to the path of the packages: cd /var/cpanel/packages
3. Zip the Packages: tar cvzf /home/user/public_html/packages.tar.gz *
4. SSH into server that will receive the new packages.
5. CD to the path of the packages: cd /var/cpanel/packages
6. wget http://www.domain.com/~user/packages.tar.gz
7. tar zxvf packages.tar.gz


Notes:

To copy packages to multiple servers, just start from step 4.

You may want to delete your packages.tar.gz file on the server with the original after you are finished transferring your packages over.
 

xerophyte

Well-Known Member
Mar 16, 2003
215
0
166
Canada
Or you can do thease


1) ssh to the old server
2) scp -rp /var/cpanel/packages root@newserveripaddress:/var/cpanel/

if you have root disabled then you need to copy with your wheelgroup user then move to the /var/cpanel/packages


hope that helps too
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
If you run the cpanel transfer script from inside WHM, it allows you to copy packages as well.
 

comcage

Member
Jul 26, 2003
20
0
151
I'm not familar with the scp -rp command, can you please go in further detail about it?
 

PbG

Well-Known Member
Mar 11, 2003
249
0
166
If the WHM copy of packages fails you should check to see the directory exists on the new server. If it does not you will need to:

mkdir /var/cpanel/packages


Hopefully CP will update the script to confirm, deny and/or create the directory if it is missing or at least tell you the same when copying. Instead of completing without error, only to find that no packages exist.


Originally posted by anand
If you run the cpanel transfer script from inside WHM, it allows you to copy packages as well.