DaNewGuy

Member
May 12, 2010
14
0
51
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! :eek:

At this point I have finally stopped sobbing (24 hrs later :eek: ) 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!
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
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.
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
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.
 

DaNewGuy

Member
May 12, 2010
14
0
51
You will laugh, but I deleted the Trash folder at the same time I deleted everything else! :eek:

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! :eek:

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:

Spiral

BANNED
Jun 24, 2005
2,018
8
193
My host backs up once a week. She is currently reinstalling the missing data, so I guess this issue has become moot! :eek:
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
 

DaNewGuy

Member
May 12, 2010
14
0
51
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!!!! :D

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