海角社区

So you've accidentally deleted a page on your site

It's not the end of the world. You may not even have to ask for your database to be restored.
Image by Ca茂n venant de tuer son fr猫re Abel by Henri Vidal. Photo by Alex Proimos..

Take聽a few minutes to ponder how聽聽may apply to your current situation before聽asking yourself the following questions:

  1. Do I have a copy of the聽content somewhere?
    • Maybe somebody asked you to post something and sent it to you via email. Or you were asked to publish a document that was written by a committee. This means that a copy of the text must exist somewhere. If that's the case, you can just聽recreate the lost page.
    • If you have a staging site (), you can see if the deleted page exists there. Just don't ask for your staging site to be reset before you're able to copy the content over.
  2. Is the deleted page cached somewhere?
    • 罢丑别听Wayback Machine聽is a searchable internet archive which is the bane of anyone who's ever tweeted and deleted. In this particular聽case it would be your new best friend. Just go to聽聽and enter the URL of the page you accidentally deleted. It may not have the most recent version, but it could provide you with enough content to start drafting a replacement.
    • Google Webcache. Don't see what you need on the Wayback Machine? See if your page still exists in the limbo of Google's webcache:
      1. Go to聽
      2. Enter the URL of the page you accidentally deleted
      3. On the top or best search result, click on the small green arrow to the right of the URL, then聽on聽Cached
      4. This will show Google search's latest cached version of the deleted page. It may not have the correct styling or fonts but you will at least see whatever text or images were lost.
  3. All hope is lost. Can I just have my website restored?
    • Yes, but keep mind that your site can only be restored to the last available backup from before you deleted the page. This means that any changes to the site that had been made after the backup was created will also be lost. This is why restoring the database should only be considered as a last resort.
    • If you had uploaded any files to that page that have not been embedded on other pages, the files would have been deleted as well. You will also need to ask for your files to be restored.
      • Before asking聽for your files to be restored, please verify if they still exist on your site by going to聽admin/workbench/files
      • Note that the files and database backups are not made at the same time, so you will have to help determine which combination of backups will work best.
    • If you're prepared to accept the risks associated with having your site's database and/or files restored, then send a request聽to聽itsupport [at] mcgill.ca聽and ask for it to be assigned to the聽Web Service Group聽so we can coordinate your request with the database administrators.
Back to top