So disaster has struck! Here is how to get things up and running again and try and avoid future disasters.
We will assume a typical scenario. Files are infected/deleted and the database is corrupted beyond repair. It could actually be a little bit worse. The database could have been deleted. In which case you would need to recreate it using your web hosts database tools as you would have done in the Installing Joomla! 2.5 in your web space recipe in Chapter 1, Setting Up Shop.
Put the files you created while doing your site backup from the Creating a backup of your Joomla VirtueMart site recipe, on your desktop.
Open FileZilla and connect to your site. File | Site Manager | Your site | Connect.
Let's start clean. In the right hand window of FileZilla, right click on your corrupted Joomla! install folder and select Delete as shown in the following screenshot:
Next, when FileZilla is ready, delete the VirtueMart safe path...