• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Accidentally deleted /var

G

gd263

Guest
Hi



Last night, I was restoring a backup which was a zip file, extracted it, moved all of the files out, then I proceeded to remove the leftover emtpy folders.


One of them was /var/www/vhosts/...

I was already inside the folder, and ran rm - vrf /var

Thinking that it would remove the /var folder from the zip file I just extracted - but I was wrong.


Now the system's /var folder is basically deleted (a few files are still left)

Mysql and FTP doesn't seem to work, what can I do?


Hope somebody can help me with this problem

Thanks guys!
 
Restore /var from a backup. In case you don't have a backup I'm afraid you're looking at a OS reinstall.
 
Not to rub salt in your wound or anything, but thats why you only do the rm -Rf when your SURE :p
 
Back
Top