SharedTutor | Tutorials For Everyone

Find your interesting tutorials in Get your tutorial about Computer, Blogging, Makemoneyonline, Games, Design, and more!

How To Backup & Restore Your WordPress Site Easily With UpdraftPlus

How To Backup & Restore Your WordPress Site Easily With UpdraftPlus

Being a WordPress site owner myself I’ve seen servers fail and loss of data on many occasion. Hardware fails, and hackers will try to compromise your site. With that in mind it’s extremely important to have a thoroughly tested backup routine, to be able to restore your internet site should the worst happen.

You spend a lot of time tweaking, changing, and managing your web site. So imagine how awful it will be to lose all that hard work as a result of something that is totally out of the control.

We’ve previously shown you many of the really useful plugins that can be used to migrate your WordPress site, but it’s also important to backup often, not simply when you mean to migrate it. On my websites I run daily backups to your NAS drive via FTP, and do this I use a WordPress plugin called UpdraftPlus.

Backup WordPress With UpdraftPlus

You can readily install UpdraftPlus in the WordPress plugins page. Click for the add new button then search for UpdraftPlus. Once installed, click the settings menu and select UpdraftPlus Backups from your sub-menu to configure your backup routine.


UpdraftPlus is full of features a large number of other free backup plugins for WordPress simply lack, including:

  • Automatic backups regularly - anything from monthly even every 4 hours.

  • Backup both your database and WordPress files.

  • Stores backups locally on your web server, or on remote/cloud storage including Dropbox, Google Drive, Amazon S3, FTP, and more.

  • Automatically overwrite old backups to save free space on your drives.

  • Optional email alerts on finishing of your backups.

  • Accessible log files of most backups, that is great for troubleshooting issues.


Test Your Backups

What’s the point in having a backup system in the event you don’t understand how to restore at their store? That’s why you ought to not only run backups, but in addition test them to make sure you can recover your website should you ever should.

Testing your backups is very simple. All you need to do is produce a second WordPress site in your web server (or perhaps a local WordPress instance), so that you could have similar to which may need to have a vanilla installing of WordPress onto it.

Once you've got your test WordPress site ready to go you will need to grab your latest backup, automagically this will consist of 5 files that alll use the following naming convention:

  • backup_[date]-[time]_[Website_Name]_[hex-tag]

  • backup_[date]-[time]_[Website_Name]_[hex-tag]

  • backup_[date]-[time]_[Website_Name]_[hex-tag]

  • backup_[date]-[time]_[Website_Name]_[hex-tag]

  • backup_[date]-[time]_[Website_Name]_[hex-tag]-db.gz

The file contains files from a web server that aren’t in your plugins, themes, or uploads folders. You won’t require this file as you will manage to restore your internet site without it.

Upload Your Backup

Now that you have a copy of the backed up WordPress files and database, you have to uncompress a few zip files (plugins, themes, and uploads) and connect to your new blank WordPress test site via FTP. You can do that by installing a no cost FTP client like Filezilla.

If you’re utilizing a local WordPress site then you should copy and paste these folders to wherever you've got your WordPress site installed on the hard drive.

Once you’re in your test WordPress site’s directory, you need to see three folders at the top of the list. These are wp-admin, wp-content, and wp-includes. To restore your site you need to upload your supported files for the wp-content folder.


Once inside the wp-content folder you need to replace the plugins, themes, and uploads folders on the web server with your duplicated versions. Don’t worry should you don’t see an upload folder, it isn’t present when you haven’t uploaded anything in your WordPress media library yet.

This part usually takes some time, especially in the event you have a slow net connection or should you have a large website. So whilst you’re expecting the files to upload head over to phpMyAdmin to import your database backup.

Import Your Database

Most web servers have tools like cPanel or Plesk installed which permit you to manage items like email accounts, FTP access, web app installations like WordPress, as well as your databases. Under the database section you must see a possibility to launch phpMyAdmin - a tool that allows one to manage your databases via your internet browser.


Once you've got launched phpMyAdmin you will have to select the database that correlates for a blank WordPress test site. You specified the database name if you installed WordPress, so think back and appearance your notes. Once you’re inside the correct database, click on the Import tab near the top of the screen. You will then use a screen nearly the same as this:

Click on the “Choose file” button and find the db.gz backup file from the backup. Leave all other settings on his or her default value and go through the “Go” button. This will now import your supported database.


Check Your Website

Once your files have finished uploading and your database is imported, navigate for your test website address using your browser. Provided your backups will work correctly you must now see a carbon copy of your respective live website.

Congratulations, congratulations, you know that your backups work as intended!

Restoring For Real

If your site is damaged for whatever reason and you need to restore for real, it is possible to follow the exact same process as above. However, as opposed to creating a test site simply remove and re-install WordPress on you main site, then continue with the same process.


Backing up any crucial data is extremely important, but knowing how to restore that copied data whenever you need it is equally as important as the backups themselves, if not more so. A lot of people believe it will never occur to them so that they don’t backup. But why take that risk when the process of creating and testing backups is really simple with UpdraftPlus?

Do you guys have a different method of backing up your WordPress site? Or maybe you don’t backup at all? Either way we might love to hear your thoughts inside comments below.

No comments

Post a Comment