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!

Restore account default folders?

Discussion in 'General Discussion' started by kenneth-vkd, Mar 29, 2019.

  1. kenneth-vkd

    kenneth-vkd Active Member

    Joined:
    Apr 1, 2017
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Denmark
    cPanel Access Level:
    DataCenter Provider
    Hi
    A customer has managed to delete everything in their home folder and only the top level public_html and mail folders are left over.

    They have managed to do it in such a way that everything is not recoverable by copying back the data from a virtual machine backup.
    Is there a script to recreate the missing files and folders or would we have to completely delete the cPanel account and create it again?
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,367
    Likes Received:
    151
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    No cpanel backup? I've not been in this position without a backup but you might try to make a backup even though it's broken with

    /scripts/pkgacct username

    Though that may not work given the missing data
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kenneth-vkd

    kenneth-vkd Active Member

    Joined:
    Apr 1, 2017
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Denmark
    cPanel Access Level:
    DataCenter Provider
    Well, tried that and while the backup restored, no more folders were created.
    So guess the customer has to start over with a fresh cPanel account and then restore their website on to that and then recreate their email accounts
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @kenneth-vkd,

    You'll need to backup the account's remaining data to a location outside of it's home directory, remove the account, and then create it again. Once it's created, move the data back into place and ensure the moved files/directories are owned by the account username. Finally, run the following command for good measure to make sure permission and ownership values on the email data is correct:

    Code:
    /scripts/mailperm $username
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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