Website security is a key element of online business. WordPress sites are particularly at risk due to their popularity - they are a common target for hackers. One of the best ways to ensure your website is protected is to perform regular backups. Below are the steps on how to do this.
Manually create a backup
The easiest way, although perhaps a bit time-consuming, to back up your WordPress site is to do it manually.
Step 1: Copy all WordPress files
Log in to your FTP account and copy all the files related to your WordPress site to your local hard drive. This will include files from the root directory (e.g. public_html) as well as all subdirectories.
Step 2: Export database
The best tool for this task is phpMyAdmin, available in most hosting panels. Find your site's database, then select "Export." It is recommended to use the SQL format for export.
Using a WordPress plugin
There are many WordPress plugins that allow you to create automatic backups. The best of them are:
UpdraftPlus
UpdraftPlus is one of the most appreciated WordPress backup plugins. It is a highly customizable tool that allows you to automatically create backups of your website data and store them on an external server or cloud service. UpdraftPlus is known for its ease of use, making it the perfect choice for both beginner and advanced WordPress users.
General Features of UpdraftPlus
UpdraftPlus is easy to install and configure. Unlike many other backup plugins, it allows you to backup not only your database, but also theme files, plugins, uploads, and even other directories available in your WordPress directory.
UpdraftPlus has a backup scheduling feature, which allows you to automatically create backups at designated intervals. You can set different intervals for files and database, which means you can back up files less frequently than databases if your site doesn't change frequently.
Backup storage
UpdraftPlus allows you to store backups in many popular data storage locations, including Google Drive, Dropbox, Amazon S3, UpdraftVault, Rackspace Cloud, FTP, DreamObjects, Openstack Swift, and email. This allows you to keep your backups in a safe and independent location, protecting your site from data loss.
Restoring a page from a backup
UpdraftPlus is not only a powerful backup tool, but also allows you to easily restore your site from a backup. All you need is a few clicks to restore your website to a state from a specific backup.
Premium version
There is also a premium version of UpdraftPlus that offers additional features such as on-demand backups, site migration and cloning support, backup encryption, advanced reporting, as well as support for many other backup storage locations. The premium version of UpdraftPlus costs from $70 per year. This plug-in can also be purchased in our store (only the plug-in files) for a much lower price.
Support and updates
UpdraftPlus offers technical support to users in both free and premium versions. There is also an extensive knowledge base available on the UpdraftPlus website, which contains articles, guides and answers to frequently asked questions.
Overall, UpdraftPlus is an extremely powerful and flexible backup tool that is easy to use and configure, making it an ideal choice for all WordPress users, regardless of experience level.
BackupBuddy by iThemes
BackupBuddy is another extremely popular and effective WordPress backup plugin created by the iThemes team. It is a comprehensive backup solution that covers your entire WordPress site, including the WordPress database, WordPress kernel files, themes, plugins, post content, users, comments, and even SEO settings.
Below are the main features of BackupBuddy:
Automatic backup schedules: BackupBuddy allows you to automatically create backups according to a set schedule. You can set schedules to daily, weekly, biweekly, monthly, or even custom, depending on your needs.
Various storage locations: BackupBuddy allows you to store your backups in various places, including the cloud. It supports services like Dropbox, Google Drive, Amazon S3, BackupBuddy Stash (their own cloud storage service), and even FTP.
Website migration and cloning: BackupBuddy not only creates backups, but also allows you to migrate and clone your website. This allows you to move your WordPress site to another server or domain, as well as create duplicates of your site for testing.
Protection against malware: BackupBuddy also includes anti-malware features that scan your site for known threats and help fix any issues that may occur.
Support and updates: BackupBuddy offers excellent user support, as well as regular updates to the plugin to keep it secure and functional.
The only downside to BackupBuddy is that it is not available for free. The plugin is available in various pricing plans starting from $80 per year for one website. However, given the comprehensiveness and quality of services offered by BackupBuddy, it is an investment that can definitely pay off for any WordPress website owner. Of course, the plug-in (the files themselves) can also be purchased in our store for a much lower price.
Use of features built into the hosting service
Some hosting companies offer backup features as part of their services. Depending on the service, backups may be created daily, weekly or monthly. Examples of such companies include SiteGround, Bluehost, and WP Engine.
Using a custom solution
If you are a developer and are familiar with PHP, you can create a script that will back up your WordPress site. Below is a sample script that exports a database:
$file"); ?>
Warning: This script will have access to your sensitive database information, so make sure it is kept in a safe place and protected from unauthorized access.
Remember that no matter which method you choose, regular backups are essential to protecting your website. Even the most secure websites can fall victim to attacks, system failures or user errors, so it's always worth being prepared.