The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HowTo: Copy cPanel Packages from Server to Server

Discussion in 'General Discussion' started by comcage, Mar 30, 2004.

  1. comcage

    comcage Member

    Joined:
    Jul 26, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    If you run the cpanel transfer script from inside WHM, it allows you to copy packages as well.
     
  4. comcage

    comcage Member

    Joined:
    Jul 26, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I'm not familar with the scp -rp command, can you please go in further detail about it?
     
  5. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
  6. PbG

    PbG Well-Known Member

    Joined:
    Mar 11, 2003
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    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.


     
Loading...

Share This Page