Lab No. 12 Backing Up Wordpress Site: Pro Tip
Lab No. 12 Backing Up Wordpress Site: Pro Tip
Lab No. 12 Backing Up Wordpress Site: Pro Tip
12
Backing Up WordPress Site
Backing up your WordPress website means making sure that all of your data is kept
safe in an alternative location. In the event of something going wrong with your
WordPress site, a backup is a good way to ensure that all of your files can be restored
to their original condition.
PRO TIP
Backup your website as often as possible in order to avoid any nasty surprises.
Sometimes, when moving, deleting, or editing your WordPress files, you will notice an
error or change on your website that can be very difficult and time-consuming to correct.
That’s why backing up your WordPress website is so important.
One of the best methods to backup your WordPress site is to use All-In-One WP
Migration plugin which is pre-installed on 000webhost.
In order to create a backup of your WordPress, click the All-In-One WP
Migration plugin that is visible on the WordPress Admin menu. The
options Export, Import, and Backups will be available. Click Export to proceed to the
Export Site screen, and then select the Export To button. You will then be asked to
choose a location to save your newly exported WordPress files:
File
FTP
DropBox
Google Drive
Amazon S3
OneDrive
Box
Choose the first option if you want to save backup files to your computer. The only thing
left for you to do is click Download and you’re all done.
From this point on, you’ll be able to Import all of your safeguarded WordPress files and
database onto your new or existing WordPress instance following almost identical
steps. The only difference is, when you have successfully downloaded the All-In-One
WP Migration plugin on your new website, be sure to select Import instead of Export.
With barely any effort at all, you will be able to see all of your themes, images, text,
plugins, widgets, and everything else exactly as you did before.
Using FTP and phpMyAdmin
There are more ways to create backup of your WordPress site. One way to backup your
files in a safe and simple way is through an FTP client, like Filezilla or Cyberduck. This
method is particularly useful if you cannot access your WordPress admin area.
Follow these steps, to backup your WordPress files using FTP:
Keep in mind that due to the nature of FTP, it can take quite some time to download all
website files.
While WordPress files are download, you can proceed and create a backup of
WordPress database. On 000webhost it’s easy:
Click Go
That’s it! Once all of your WordPress files are downloaded and the download of the SQL
file is complete, you will have a full backup of your WordPress site.
Although FTP backups are considered a more hands on and manual way of backing up
your WordPress site, compared to the All-In-One WP Migration export and import, it is a
relatively easy way of duplicating your WordPress database and files to another
location. In essence, all you have to do is download the files onto FTP client, and your
WordPress site is saved.
Page cache plugin. The page caching plugin saves the dynamically
generated HTML files on the server via the cache whenever a request is
received. This reduces the overhead of execution of database queries and the
PHP code.
Browser cache plugin This plugin reduces the server load by decreasing the
amount of requests received per page. For instance, if you put the right file
headers on static files (images, JavaScript, CSS etc.), the browsers can cache
the files on the computer of the user. By implementing this technique, the
browser will check whether the files have changed since last request and if not, it
will just display cached versions instead of reloading everything from the server .
Although these plugins were created for Hostinger's WordPress hosting, they work
flawlessly on 000webhost. You can find and control these plugins in your
WordPress Admin control panel -> Plugins -> Must-Use section.
PRO TIP
If you have made changes for your WordPress site, but still see the the old version of
the page, it’s possible that caching plugins display cached version instead of a new one.
The very first thing you should do is clear cache. On our Page Cache plugin, it can be
done by pressing the Purge Cache button.
There are other sophisticated plugins that also aid in the overall optimization of a
WordPress website. Ones worth-mentioning are as follows.
W3 total cache
W3 total cache is exactly what its name suggests: a comprehensive caching solution for
WordPress websites. It offers CSS and JS minification, object cache along with the
database cache and page cache abilities.
Minification is the process by which unnecessary characters and blank spaces are
removed from the source code without damaging the functionality.
You can turn on CSS and JavaScript minification in the General settings section of
W3 Total Cache. To turn on minification simply check Enable box and hit Save all
settings button.
If you need more control, advanced minification settings can be found
on Minify section:
Combine only does exactly what you think it does: it combines all the CSS
files but doesn’t perform minification.
Preserved comment removal only removes the comments from the
combined files.
Line break removal can be checked to remove line breaks present in the
combined files
WP Super Cache
Just like its aforementioned compatriot, the WP Super Cache is also an excellent
caching plugin choice. It can also fulfill all the caching needs of modern websites. After
installation, you can turn caching on by going to Settings -> WP Super Cache.
Here you can click on the Caching on radio button present in the Easy section, to
turn on the caching or tweak any advanced settings.
Best Practices
Keeping your WordPress website optimized should be an ongoing process; here are a
few best practices to always keep in mind: