Accidentally Deleted Drupal Site
How would you recover your website if you had accidentally deleted all the drupal site files from your public_html folder? I know, surely you'd likely want to perform a 'hara-kiri', but wait just a minute! Fortunately all is not lost. For those of you who are facing this probelm right now, relax. Take a deep breath. Now moving on to how to restore some of your dignity. These are things not deleted, most likely:
A) Your database should be still intact.
B) You should still have ftp access to your root directory of your account at the webserver. Some partial restoration:
1. Copy the drupal tar.gz file back into the pubic_html and then extract it <!--{12416673613810}-->and place it or rename it to the original name or location prior to the 'accident'. In my case,its 'version2'.
2. Go through the installation process as normal but point back to the original database. In my case 'megacomp_version2'.
3. Copy back your themes into the themes folder and your modules into the modules folder.
4. Of course the installation will detect that you've already got some data in the db, so it'll ask you to do an update.php script, but you cannot run this until you've changed the update_free_access to TRUE in the settings.php file. Then try to execute the update.php script as what the installation requests you to. Well the idea here is to at least get back you themes and articles, but you'll still be missing the pictures as the folder that held them had been erased. Just ftp the pics back from your PC, and presto, your site should back to normal again. Always remember to backup your database an site files on a regular basis. :-)


