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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Account Restoration With Different Username

Discussion in 'Data Protection' started by MajorLancelot, Nov 1, 2017.

  1. MajorLancelot

    MajorLancelot Member

    Joined:
    Dec 17, 2014
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    78
    Location:
    Shinjuku-ku, Tokyo, Japan
    cPanel Access Level:
    Root Administrator
    Situation:

    - new account provisioned with a new domain
    - migration from another server to new server needed
    - backup completed and backup.tar.gz has a different username but the same domain name from a new provisioned account
    - try to use Restore a Full Backup cpmove File
    - Restore failed because of the domain already exist with the $newAccount provisioned

    Please, what would be the ideal solution to this beyond remaining $newAccount?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Would you like to keep both accounts active, or are you attempting to replace the existing account with the one from the backup archive?

    Thank you.
     
  3. MajorLancelot

    MajorLancelot Member

    Joined:
    Dec 17, 2014
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    78
    Location:
    Shinjuku-ku, Tokyo, Japan
    cPanel Access Level:
    Root Administrator
    Objective:
    - replace the new account with contents of the old migrated account while maintaining the username of the new account without needing to copy via SFTP or SSH.

    Thank you, Michael.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you need any content from the existing cPanel account? If not, you could terminate it, and then restore the migrated account. Upon restoration, update the domain name and username to your preference using "WHM >> Modify an Account".

    Thank you.
     
  5. MajorLancelot

    MajorLancelot Member

    Joined:
    Dec 17, 2014
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    78
    Location:
    Shinjuku-ku, Tokyo, Japan
    cPanel Access Level:
    Root Administrator
    Thanks, Micahel.

    What I end up doing was to modify the username and DB prefixes of the $ewAccount and overwrite its content with the migrated data.

    For now, seem to work but keeping a close eye on it.

    Thanks a ton!!!
     
    cPanelMichael likes this.
Loading...

Share This Page