How To Backup WordPress

There are two parts to backing up your WordPress site: Database and Files. You need to back up the entire site, and you need to back up your WordPress database.

WordPress Files Backup

Your WordPress site consists of the following:

  1. WordPress Core Installation
  2. WordPress Plugins
  3. WordPress Themes
  4. Images and Files
  5. JavaScript and PHP scripts, and other code files
  6. Additional Files and Static Web Pages

All of these are used in various combinations to generate your website. The database contains your posts and a lot of data generated on your site, but it does not include the above elements that all come together to create the look and information on your site. These need to be saved. Remember, keep at least three backups on file, just in case one is corrupted or lost, and store them in different places and on different mediums

 

WordPress Database Backup

1. Click on Databases in your phpMyAdmin panel. (It may not be necessary to do this, depending on your version of phpMyAdmin)

2. You may have several databases. Click the one that holds your WordPress data, the database you created when you installed WordPress. (In older versions this may be done through a pull-down menu.)

3.

Click Export. There are two methods to export, Quick and Custom; if you choose Custom, follow these steps:

  1. Select all the tables.
  2. In the Output section check Save output to a file and select None for Compression. (If your database is very large use a compression method)
  3. Select SQL from the Format drop-down menu.
  4. Check “Add DROP TABLE”: this can be useful for over-writing an existing database.
  5. Check “IF NOT EXISTS”: this prevents errors during restores if the tables are already there.
  6. Click Go. The data will now be saved into your computer.

4. Keep these files safe, copied and stored in separate places on separate media.

 

Restoring Your Database From Backup

  1. Login to phpMyAdmin.
  2. Click “Databases” and select the database that you will be importing your data into.
  3. You will then see either a list of tables already inside that database or a screen that says no tables exist. This depends on your setup.
  4. Across the top of the screen will be a row of tabs. Click the Import tab.
  5. On the next screen will be a location of text file box, and next to that a button named Browse.
  6. Click Browse. Locate the backup file stored on your computer.
  7. Make sure SQL is selected in the Format drop-down menu.
  8. Click the Go button.

 

 

Leave a Reply

Your email address will not be published.

*