Skip navigation

Backing Up WordPress

UPDATED

The recent challenges of dealing with Hurricane Katrina brought up the issue of bank security and record keeping. While many banks were destroyed and access to people’s money and accounts were limited temporarily, their money is still secure. Banks are required to backup all their information and store it offsite. One bank was described as backing up their information and having it stored in huge, climate controlled caves holding massive storage facilities for computer and paper data.

This reminded me of the importance of backing up your precious WordPress blog.

While you may or may not have your blog entries saved on your own computer, all of your WordPress core programming and data files are on an web host server. Even if your computer crashes, that information is still on the server. But what if that server goes down? Or the data gets corrupted in some way?

Check with your host provider for how often they backup your site’s data and how to retrieve it if something happens. Print out the instructions and save them in a file in your desk – just in case. You should do the same with the instructions on the WordPress Codex which outlines how to backup and restore your WordPress site.

The process of backing up your WordPress blog is an easy two step process. While step-by-step backup instructions are available in the WordPress Codex, let’s look at the two steps here.

Step One to Backing Up WordPress

The first step to backing up your WordPress site is to backup the database. You have a few choices. You can back it up manually through your PHPMyAdmin program as an exported file. You can also back your WordPress database up by using the WordPress Backup Plugin WordPress Database Backup Plugin by IfFilosofo.

Backup options were included in WordPress 2.0, but with WordPress 2.1, the built-in backup is gone. The newly updated WordPress Database Backup Plugin backs up your database with an option to backup automatically, on a schedule of your choice. You can set it to backup hourly, daily, or weekly. Backups can be automatically emailed to you, too. And it works with WordPress 2.1.

Once activated, it adds a menu to your Manage panel that says “Backup”. Click it and choose your options. If you want to backup manually, you can do it now and have the backed up file downloaded to your server, to your computer, or have it sent to you by email. I recommend you download to your computer or have it emailed to you. By default, the saved file is compressed to save space and bandwidth. That’s it. No fuss, no muss.

Among your options, whether backing up manually or via the Backup Plugin, is to choose tables in addition to your core WordPress database tables. Many of these are created by plugins and not necessary for you to backup unless you want to preserve that data.

DO NOT BACKUP comment spam, blacklists, or statistics. These tend to be huge database tables and can grow to several megabytes in size. The priority is to save your posts, categories, comments, and core information, not the junk. This can make the difference between a 1 MB backup file and a 12 MB backup file.

Save your WordPress database backup file to your computer, and put a copy of it on a CD, DVD, or some other backup storage media. Like the banks, if your website is critical to your business or life, consider storing this off your premises.

Step Two to Backing Up WordPress

Your database holds your posts and critical information that generates your site’s content. The framework that displays that information is based upon the core WordPress program files, your WordPress Theme, and your WordPress Plugins, as well as any customization you have made to any of those files. These need to be saved, too.

Using any FTP client program, simply download the files to a folder on your computer. Be sure to include the wp-content folder, as this contains your WordPress Themes and Plugins. If you are using a translation or localization version of WordPress, be sure that your translation files (.mo and .po) are also backed up.

Your photographs and graphics are also important to your site, so make sure you backup whatever folder(s) you use to store these valuable images.

Once you have the files saved to your computer, you can select that entire folder and zip it to a single file, saving the file hierarchy structure. Like your database, store this zipped file to any removable storage media, and if precious, store it offsite.

Reversing the Process – Restoring WordPress

The process of recovering from a server or database crash is almost the exact reversal of the process. Begin by making sure all of the old stuff is cleared out and deleted. When you restore, you want to literally start with a clean plate.

DO NOT UPLOAD OVER OLD FILES.
This is very important. The uploading process isn’t perfect and frequently the process of replacing an old file with a new one doesn’t work. Delete the old files and upload the new ones.

Restore the file structure first. Install a new, updated version of WordPress. Then open the zipped files for your site’s data files and upload the wp-content, translation files, and other modified core files. Avoid copying any non-modified core files if you have upgraded to a newer version of WordPress. Make sure they all go to the same folders as before.

To restore the database, follow the step-by-step instructions in the WordPress Codex, Restoring Your Database From Backup.

Login to WordPress, check all of the options and settings to make sure they are the same and change them if they are not. Check the Manage panel to see if all your posts have been restored. Also look at the categories and comments to make sure they are also where they should be.

Then view your site and poke around and make sure everything is working right.

Backing Up WordPress.com

bloggers can now backup their WordPress.com blogs through the Export panel. Export your WordPress.com blog as an XML file for easy importing back into WordPress or another blog program. Or just save the file as your backup.

The Export will not backup your WordPress.com Theme, only the post and Page content, along with comments. If you are using the Paid Extras for customizing your WordPress.com Theme, make sure you save a copy of the CSS stylesheet file in a safe place. Same with the images you upload to your WordPress.com blog.

The WordPress Themes and program are backed up by WordPress.com and since you have no control over the tweaking factors, it isn’t “yours”. So that leaves content and images. Actually, you should have backups of your images because they were on your hard drive in order to upload them, so make sure you have backup copies of those.

Other alternatives include saving web pages on a web page storage site like , or use the tips in the article, Backing Up Your WordPress.com Blog.

How Often Should I Backup

The question of how often you should backup your WordPress site is based upon how often you add to or change it.

The core files, such as your WordPress Themes, should be backed up after you have finished many any major changes. It does not have to be backed up again until you make more changes.

The database needs to be backed up anywhere from once a week to once a month, depending upon how frequently and how much content you add to your site. At the least, you should backup once a month.

In general, again depending upon how critical your site’s information is to you, the general rule of thumb is to have three backups saved. These are the three most recent or three copies of the most recent. A non-breakable, indestructible, impervious to fault technology for backups still doesn’t exist. If your site is of critical importance, consider backing up via CD, hard drive, Internet storage, and/or other removable storage medium, just in case one of the choices goes bad. This way you will have backups of your backups.

As we have learned from Hurricane Katrina and other recent disasters and catastrophes, prevention and protection also can mean faster recovery.


Site Search Tags: , , , , , , , , , , , , ,
Copyright Lorelle VanFossen, member of the 9Rules Network Feed on Lorelle on WordPress Subscribe

Member of the 9Rules Blogging Network

14 Comments

  1. Posted November 13, 2006 at 10:43 am | Permalink

    The perfect tool for your wordpress backup is SiteVault (http://www.site-vault.com). It takes a bit to configure but you can just forget about it until you need the latest backup ;).

    George

  2. Posted October 1, 2007 at 8:17 am | Permalink

    Great post! I am looking forward to find solutions for moving my two WordPress websites from two different providers to a single one and your post offered to me the most comprehensive solution!

    By the way … any good hosting provider that you would recommend?

  3. Posted January 14, 2008 at 8:36 pm | Permalink

    thanks for the info. as a new blogger, i’ve been bothered by the issue of backing up my WP in full as a means to address crashes and other server issues.

  4. Posted April 29, 2008 at 12:37 pm | Permalink

    My host was recently suffering from a DOS attack. I thought my blog was gone.
    Luckily, it came back up but your site offered great advice on what to do to backup.
    I am backing up now and ready for anything! (Well, almost anything)

  5. Posted December 3, 2008 at 3:49 am | Permalink

    Ваш блог мог бы приносить неплохие деньги 🙂

  6. Posted January 31, 2009 at 10:50 pm | Permalink

    Hi ewveryone.
    My weblog site is still under construction. I used to be a speechwriter so I don’t have too much trouble with creating posts. But I’m trying to modify my WordPress theme,”Cool Winter.” Specifically, (1) how to make the nav bar more visible (at this point, you have to run the mouse over the words in order to see them); and (2) how to bring the Sidebar higher up on my Home page. If anyone is feeling particularly inspired, I’d think I’d died and gone to heaven if you could send me a step-by-step procedure. Thanks……Maggie

  7. Laurel
    Posted April 22, 2009 at 7:59 pm | Permalink

    Thanks for the helpful article and links. I just got wordpress for my blog and am usually really paranoid about backing things up… when my computer’s hard drive died back in january, i didn’t lose anything important.

  8. josephmallozzi
    Posted August 4, 2009 at 9:23 pm | Permalink

    Hiya. Back-up question. Whenever I try to export my blog’s contents, the XML file always shows 0kb. Am I missing something? I mean, the process looks fairly straightforward, but it’s not working.

    Thanks.

    • Posted August 4, 2009 at 10:09 pm | Permalink

      More information will be needed to understand what happened. I recommend you make this inquiry with that information on the WordPress Support Forum for a specific answer and help. Good luck.

  9. Posted September 4, 2010 at 8:32 am | Permalink

    Thanks for the helpful article and links. I just got wordpress for my blog and am usually really paranoid about backing things up… when my computer’s hard drive died back in january, i didn’t lose anything important.

  10. Carlo
    Posted October 31, 2010 at 4:00 pm | Permalink

    Hi Lorelle you have outdone yourself once again with this great post.

    In my case I really like wp-db backup since its automated when set on a schedule. If on cpanel I have a separate software to create my website backup which merges Step 1 & Step 2 though its limited for cpanel only so I still use your method a lot

  11. V Saxena
    Posted December 15, 2010 at 3:47 am | Permalink

    THANK YOU :-)! I just started building my site (first one ever) and after having spent HOURS just to get things right (even things as simple as changing the theme’s menu color), I definitely want a backup!

  12. Posted April 6, 2014 at 4:37 pm | Permalink

    For those of you with hosted WordPress installs, check out MyRepono.
    (I don’t know what the name means, just search for it from Add Plugins from your Dashboard)

    It backs up everything (database, theme, etc.) to their servers for a very reasonable price – costs me under $70 a year for daily automatic backups, and pretty easy to Restore if need be.

    Sam


56 Trackbacks/Pingbacks

  1. WordPress Backup Week

    Your WordPress database contains every post, every comment and every link you have on your blog. If your database gets erased or corrupted, you stand to lose everything you have written. There are many reasons why this could happen and not all are thi…

  2. […] Backing Up WordPress […]

  3. […] Backing Up WordPress […]

  4. […] Backing Up WordPress […]

  5. […] Step-by-step instructions for backing up your WordPress blog and database can be found on the WordPress Codex in “Backing Up Your Database” and in my article, Backing Up WordPress. The article by Futurosity offers some other options, too. […]

  6. […] Lorelle on WordPress: Backing Up WordPress […]

  7. […] For information on backing up your full version WordPress blog, see full version of WordPress backup technique. […]

  8. […] Plugins, and any changes you make to your WordPress setup. That you still have to do yourself. See Backing Up WordPress for details on how to do […]

  9. […] 1. Know how to backup and restore your wordpress database by yourself and don’t depend to someone else to do it for you. Because if you know how backup and restoring your wordpress database you can always revert to your previous installation just in case the upgrade process failed. You can read Lorelle’s post about this process […]

  10. […] the backing up of our themes and plugins ok? And any changes we made on our WordPress Setup. See Backing Up WordPress on how to do […]

  11. […] This doesn’t cover the backing up of our themes and plugins ok? And any changes we made on our WordPress Setup. See how to do this on Backing Up WordPress. […]

  12. […] In the full version of WordPress, there are a variety of WordPress Plugins for images, photographs, and graphics to speed up the process of uploading multiple images. Once uploaded, you can use the fast search and replace in WordPress MySQL database method to change the URL to the images to their new address, however, WordPress may sort and date the URL to your images, so do this with extreme care and backup first. […]

  13. […] now on to backing up your site. I would suggest that you follow Lorelle’s guide to create a backup for WordPress and keep in mind the XML export would be needed if you are […]

  14. […] Backup your database. Backup your WordPress Theme. Backup Your Plugins directory. Backup EVERYTHING. Even do an XML export as an additional backup […]

  15. […] Backing Up WordPress (Source: Lorelle on […]

  16. Video Tutorial: Backup your WordPress Blog

    I’ve written before about the importance of backing up your WordPress blog, and how to do it. But maybe a video tutorial will convince you to do it now.
    This file is a QuickTime movie. If you don’t have the free player you can download it here.
    Pre…

  17. […] WordPress 主题,备份你的插件目录。备份所有一切。设置输出 XML […]

  18. […] Backing Up WordPress (Source: Lorelle on […]

  19. […] Any kind of website including wordpress must do physical folder and database backup before do any major […]

  20. […] Backing Up WordPress >>Wordpress has presented a great easy to understand step by step guide on how to back up blogs , if you are confused in using 3 party services you can read wordpress Official blog articles and after that still youl have problem in backups then you can post yours problem in wordpress forum. […]

  21. […] now on to backing up your site. I would suggest that you follow Lorelle’s guide to create a backup for WordPress and keep in mind the XML export would be needed if you are […]

  22. […] Thumbnail Size Limit Hack. 135. Restore your WordPress Database. 136. Validating WordPress. 137. Backing Up WordPress. 138. Getting your feet wet inWP. 139. Importing Content from another […]

  23. […] keep a backup copy of the latest version of WordPress, your WordPress Theme, a full backup of your WordPress database, WordPress Plugins, and copies of all the images and files on your host server. If something does […]

  24. […] Thumbnail Size Limit Hack 135. Restore your WordPress Database 136. Validating WordPress 137. Backing Up WordPress 138. Getting your feet wet in WP 139. Importing Content from another […]

  25. […] now on to backing up your site. I would suggest that you follow Lorelle’s guide to create a backup for WordPress and keep in mind the XML export would be needed if you are […]

  26. […] 05. Backing Up WordPress […]

  27. […] Backing Up WordPress […]

  28. […] Backing Up WordPress | Lorelle […]

  29. […] Backing Up WordPress | Lorelle […]

  30. […] Backing Up WordPress | Lorelle […]

  31. […] WordPress – Lorelle covers some similar stuff to my post but also focusses on WordPress plug-ins that can do it automatically for you. […]

  32. […] Backing Up WordPress | Lorelle […]

  33. […] Thumbnail Size Limit Hack. 135. Restore your WordPress Database. 136. Validating WordPress. 137. Backing Up WordPress. 138. Getting your feet wet inWP. 139. Importing Content from another […]

  34. […] 47. Backing Up WordPress (Source: Lorelle on WordPress) […]

  35. […] Thumbnail Size Limit Hack. 135. Restore your WordPress Database. 136. Validating WordPress. 137. Backing Up WordPress. 138. Getting your feet wet inWP. 139. Importing Content from another […]

  36. […] Backing Up WordPress (Source: Lorelle on […]

  37. […] avoided much of the stress and worry.  If you are like me, and wouldn’t know where to start, Lorelle has a really helpful post about backing up your blog. I think some people (me included) just feel like they aren’t going to need a backup, that […]

  38. […] Thumbnail Size Limit Hack. 135. Restore your WordPress Database. 136. Validating WordPress. 137. Backing Up WordPress. 138. Getting your feet wet inWP. 139. Importing Content from another […]

  39. […] Backing Up WordPress | Lorelle […]

  40. […] Backing Up WordPress […]

  41. […] Backing Up WordPress | Lorelle […]

  42. […] Backing Up WordPress | Lorelle […]

  43. […] Backing Up WordPress | Lorelle […]

  44. […] Backing Up WordPress | Lorelle […]

  45. […] Backing Up WordPress (Source: Lorelle on […]

  46. […] Backing Up WordPress | Lorelle […]

  47. […] Moving Your WordPress Blog to a New Directory […]

  48. […] Realizando Backup do seu WordPress (Fonte: Lorelle on […]

  49. […] BACKUP YOUR DATABASE. […]

  50. […] I need to tell you to backup? Backup the database, your Theme(s), Plugins, images, and all files on the server. Backup regularly and […]

  51. […] Moving Your WordPress Blog to a New Directory […]

  52. […] 47. Backing Up WordPress (Source: Lorelle on WordPress) […]

  53. […] Backup your WordPress database, Theme, Plugins, and all the files for your blog regularly. Some day once a week, others once a month. I say do it every 10 blog posts, or whatever number you are willing to lose if not backed up regularly. […]

  54. […] future reference, just in case of a crash or data loss. And once you have upgraded, take time to do a new backup of your WordPress blog so you have a fresh new copy with the new […]

  55. […] BACKUP YOUR DATABASE. […]

  56. […] For information on backing up your full version WordPress blog, see full version of WordPress backup technique. […]

Post a Comment

Required fields are marked *
*
*