Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2010
    Posts
    14

    Default How do I recover from this?

    I did something really dumb the other day! I was using File Manager, meant to delete the content of home/user/public_html but I accidentally deleted home/user!!!

    That basically killed everything!

    At this point I have finally stopped sobbing (24 hrs later ) and pieced together most of the work that I deleted. But I have one question before moving forward:
    What do I do about all those folders that had been generated by whm/cpanel?

    When I hit delete, I was in the HOME directory of MYSITE.com and I deleted all of the following folders:
    etc
    mail
    public_ftp
    public_html

    There may have been more folders, those are the only ones I recall off hand. I managed to get "mail" to come back back by going into WHM and "upgrading" the account.

    Can I simply create my own folders for:
    etc
    public_ftp
    public_html


    I am on a VPS and have root access, but before this disaster I had everything set up perfectly. I really don't want to erase the domain account because I am using it as a "reseller" and have configured a shared ssl cert that is finally working perfect. Plus this acct "owns" sub accts.

    Any thoughts would be deeply appreciated!

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    The first obvious question ....

    Does your server have backups turned on?

    Do you have any backups for this site?

    If you have backups, it should be fairly simple to restore that or merge in
    the missing data from the backups.

    Otherwise, you'll probably need recreate the missing folders and set the
    correct permissions and any email or web data deleted is just gone and
    you'll have to re-create whatever is lost.

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    It just occurred to me that you said "File Manager" ....

    It is possible that the files and folders you deleted are in the trash.

    If they did get moved to trash, that would also let you undo the mistake.

  4. #4
    Member
    Join Date
    May 2010
    Posts
    14

    Default

    You will laugh, but I deleted the Trash folder at the same time I deleted everything else!

    I may be a bit of a noob, but really this has to be the DUMBEST thing I have done in years!

    My host backs up once a week. She is currently reinstalling the missing data, so I guess this issue has become moot!

    I will be enabling the backup in the root whm (if i can ever get back in there... still being denied access due to brute force attacks....).

    I think given time, I will learn to laugh at how bizarre and painful this week has become.
    Last edited by DaNewGuy; 05-16-2010 at 07:59 AM.

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by DaNewGuy View Post
    My host backs up once a week. She is currently reinstalling the missing data, so I guess this issue has become moot!
    Glad to hear there is at least a backup somewhere

    It is incredibly important to always keep good backups

    I will be enabling the backup in the root whm (if i can ever get back in there... still being denied access due to brute force attacks....).
    You can clear the blocks (database based) and / or disable CpHulk from SSH

  6. #6
    Member
    Join Date
    May 2010
    Posts
    14

    Default

    Quote Originally Posted by Spiral View Post
    It is incredibly important to always keep good backups
    I agree 100%. And I was so proud of myself for constantly/regularly backing up... many as 5 times a day while developing the site I was working on.

    Of course, my pride vanished when I deleted my public_html folder.... and the trash folder... and the backup folder!!! They were all sitting together at the top level!!!!

    You can clear the blocks (database based) and / or disable CpHulk from SSH
    Good stuff... I am whitelisted now, thanks!

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 12-04-2009, 05:44 PM
  2. HELP !!. what the best way to recover sites without recover backups?
    By konrath in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-04-2009, 05:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube