Accidentally deleted the etc directory

mathieuauclair

Registered
Jan 19, 2019
2
0
1
morocco
cPanel Access Level
Website Owner
I have accidentally deleted the etc file. im new to this cpanel thing ... just getting familiar with it! should i just create another folder and name it etc or is there some way to regenerate it? what is it used for?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,740
300
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
There are a lot of important files in that folder, like the user account and email a\password files.

I would restore the account from a backup.
 

kssuhesh

Member
Jan 11, 2009
20
5
128
Kochi
cPanel Access Level
Root Administrator
Twitter
Hello,

You mean "/etc" ( system configuration files)?

One of the options is to restore the files from the backup. Unfortunately, you don't have a backup. So it is good to check with the hosting provider or your server management team and migrating the contents to a new server with the same configuration.

Now the configuration files are loaded in ram and running, so any restart in service will bring the service down. Also, the server will fail to boot, since configuration files are missing. So keep the server online without going with the reboot and do the migration of the contents to the new server.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,252
313
Houston
@kssuhesh since his profile indicates "website owner" I'll assume he means /home/$user/etc


@mathieuauclair literally the only way to get these back is to restore from a backup if you don't have one your host may by chance and it may be useful to contact them for further assistance.