1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Accidentally deleted /var

Discussion in 'Plesk for Linux - 8.x and Older' started by gd263, Sep 28, 2007.

  1. gd263

    gd263 Guest

    0
     
    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!
     
  2. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    Restore /var from a backup. In case you don't have a backup I'm afraid you're looking at a OS reinstall.
     
  3. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Not to rub salt in your wound or anything, but thats why you only do the rm -Rf when your SURE :p
     
Loading...