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.

Force account Restore

Discussion in 'Workarounds and Optimization' started by kernow, Feb 27, 2018.

  1. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    We had a client account which had several addon and subdomains, the client changed packages a number of times and ended up on a package with no addon or sub domains allowed though they all worked and we did not ask the client to remove them. Fast forward several months and the clients requests a full back restore and its here the problem started. the cPanel restore would only restore the main domain and ignore the addon and subdomains as the restored package (we surmise) contained data showing zero allowed addon and sub domains. All attempts in WHM to overwrite existing user, delete account and restore failed to restore the addon and subdomains which contained websites and important files etc. The fix?
    From a console cd to the directory containing the backup and run:
    Code:
    /scripts/restorepkg --force client_name.tar.gz
    Voila !!! :) All domains and subdomains restored.
     
  2. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    30
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Interesting technique and workaround. Thanks for posting. I didn't realize --force would have this effect.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for sharing.
     
Loading...

Share This Page