How to backup your WordPress database and files

Most people think of a backup only when they really need it. Be one of the people that think about backups before you need them. Best case scenario is to have a full backup ready, that includes your database and all files, to rollback to at any given time.

What does your individual WordPress consist of?

Your WordPress installation is your custom installation because of:

  • its database and
  • its /wp-content/¬†folder

If you have a backup of both you are set. Now most backup plugins backup the whole root folder which makes sense, because this way it is easier to deploy. But any custom WordPress installation can be restored by first installing a new WordPress and then replacing the database and /wp-content/ folder.

Backing up your WordPress database

A WordPress database backup is a solid measure. It will shield you from all editing disasters and is a must before you edit your database. Here is a quick tutorial how using the nifty WP-DBManager plugin by Lester Chan:

GIF

Too small? Open GIF in full size.

Moving / Migrating a WordPress to a different domain name

Moving WordPress means to copy the files and database to a new location and then changing all file paths, so everything is where it is suppose to be.

A step by step instruction on how to do it manually can be found in the WordPress Codex: https://codex.wordpress.org/Moving_WordPress

When moving WordPress manually you need to adapt the file paths. For this I use:

I prefer using BackupBuddy.
Ithemes provides a script for easy WordPress migration called importbuddy: https://ithemes.com/backupbuddy/wordpress-migration/

If BackupBuddy fails for you:

  • try deactivating all un-required plugins to ease server load and minimize script runtime.
  • look for plugins that are heavy on database load such as logging / analytics or chat plugins that store their data in the local MySQL database. Get rid of their massive database entries.
  • Try activating the alternative ZIP system:
    Screen Shot

I forgot to take a backup!

In case you have forgotten to take a backup but are in dire need of one, ask your hosting provider for help. To my knowledge all hosting providers keep default backups for a limited time frame (usually 24h).

 

Last updated: May 10, 2016 at 12:35 pm

Related Posts

Powered By Related Posts for WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *