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.

Duplicate cpanel account (for a backup)

Discussion in 'General Discussion' started by cpf, Apr 25, 2010.

  1. cpf

    cpf Registered

    Joined:
    Apr 25, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to create a duplicate of a cpanel account, similar to a backup; but for use as a "test" account to test scripts and what not?

    For example:
    mirror "cpanel1" and create a "cpanel2" - it'll have all of the exact same files, logins, etc. . except it will be under a new cpanel account?
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Yes and no ---

    You could create another Cpanel account but it would have to have a different login name and a different web address.

    If you are wanting to create a development site, I would probably create a new hosting account with a subdomain of your main address such as "develop.yourdomain.com" as it's own hosting account.

    You can then recursively copy all your files and folders over to the "develop" site and clone copies of your databases to new databases on the development site you created.

    The only one other thing you would need to do is edit any script configuration files you have with database login information and update those settings to point to the development databases .

    That's pretty much it and then you should be able to do whatever you want to the development site.

    If you were just wanting to backup your site and not using it for testing and development then I would just say generate a "cpmove" backup with /scripts/pkgacct and be done with it but for what you are asking about doing, the above is the basic rundown of what you would need to do.
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Are you needing the account to exist on the same server, or be duplicated and setup on a different server?

    When you mention the duplicated account should have the "same logins" do you mean a login for a script that is installed, or a login such as the cPanel account username?

    Via cPanel (Files >> Backups, Backup Wizard), you may generate a full cPanel account backup and use this to duplicate an account on a new server; alternatively, if root access is available on the new server you may simply use WHM to perform a transfer of the account.

    If the testing situation only necessitates certain content be copied and setup in a duplicate account on the same server, I would consider using a home directory backup that may be downloaded and also restored using cPanel; the same applies to individual backups of databases, such as for MySQL.

    Here are two cPanel menu paths with related documentation that will help with generating backups and restoring all but full account backups (that would require root access):
     
Loading...

Share This Page