Backup SmallBiz and How to Restore from Backup
You are backing up your self-hosted WordPress blog, aren’t you?
Well, if not, you’re not alone. Most people I’ve surveyed are not backing up their WordPress site. That’s because up until recently, there haven’t been many good solutions for it.
But it is super important to have these backups. And you can’t rely on your hosting provider to do it for you. Even if they say they have complete backups, I’ve heard too many stories of this not turning out well.
A few common reasons why you would need to restore from backup:
1) You installed a third-party plugin that took down your site
2) You accidentally deleted the “Home” Page
3) You modified theme files and don’t like it or made a mistake
4) Your WordPress install got hacked (usually happens via Plugins)
5) Your hosting provider got hacked
Alternative ways to Backup – Using Third-Party Services:
Please read this blog post if you are looking for ongoing backup service options .
Backup Options in the Blog post includes:
1) Backup via your Hosting Provider.
2) Backup via Plugin (see below for BackUpWordPress Plugin).
3) Backup via “VaultPress” a third-party backup service provider.
4) Backup via “Time-Machine” a third-party backup service provider
Where does WordPress store my Files and where does it store Text?
WordPress uses the “uploads” folder to store your images and media, the “plug-in” folder for your third-party plugins and the “themes” folder for your WordPress Themes. All of the above folders are stored in the “wp-content” folder – which is located in the root of WordPress.
Your text for posts, pages, admin email address, permalinks and everything inside the Smallbiz Options Panel is stored in your Database.
Using a Plugin that will back-up both – your Files and Database
1) Install the “BackUpWordPress Plugin
You can install this plugin from within WordPress – Under Plugins search for BackUpWordPress.
2) After activating the plugin go to Tools -> Backup and create a backup and download it to your desktop.
Optional: Backup your Files manually
The best way to back up all your themes, plugins, images and uploads is to get your “wp-content” folder.
Use a Filemanger (provided and supported by your hosting provider or use an FTP Client.
Make it a habit to back up your entire wp-content folder once a month and more often if you post a lot. I found that backing up the entire wp-content folder is much less of a hassle then backing up all the individual folders. The wp-content folder sits in the root of your hosting server. Or root of your subfolder
Create a folder on your desktop and download the wp-content folder to it. Keep at least 2 or 3 copies of “Last Known Good” Configurations.
Optional: Backup your Database manually
Your database is not easily access able via FTP or Filemanger. To get to it you would need to go via your hosting options panel and use phpMyAdmin. Good News: There is a much easier and safer way! Install the WP-DB-Backup plugin and you can schedule database backups to be sent via email or you can immediately download a backup to your desktop!
Restoring your Files
Restoring lost files from the wp-content folder is easy:
1) Log in to your hosting server using a FTP client or Filemanager
2) Make sure you are in the “root” of your WordPress install
3) Drag your backup “wp-content” folder into your FTP client window and choose to “overwrite and replace” the current wp-content folder.
Restoring your Database:
1) Log in to your hosting providers cpanel
2) Click on phpMyAdmin
3) FTP into your WordPress install and look for your wp-config file. Open it and write down your database user name and your database password.
4) Log into phpMyAdmin with those credentials
5) Select your WordPress database (left side bar)
6) Click the “import” tab and select your backup file
7) Choose to replace existing files and tables.
Your site should be restored.
8) If your pages bring up a 404 error simply set your Permalinks to default and Save. Look if the pages are back and then change the permalinks back again to your custom setting.