Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Duplicate cpanel account (for a backup)

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

  1. cpf

    cpf Registered

    Apr 25, 2010
    Likes Received:
    Trophy Points:
    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

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    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 "" 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

    Nov 5, 2008
    Likes Received:
    Trophy Points:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    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):
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice