How to make and store backups for WordPress

Making WordPress backups is one of the necessary things that many bloggers who use WordPress script overlook, and this process has many answers in the event of problems, and among the latter is if you are upgrading WordPress and something went wrong and you deleted files or you were modifying something on the site By mistake, a folder or important files were deletedOr your blog was hacked and files were deleted or mined. In this case, expect anything bad that could happen to your blog. This is where the backups I made come inIn this explanation, we will talk about ways to take backup copies only. We will not discuss the method of installing backup copies. After a problem occurs, we will leave the method of installing backup copies for another explanation, God willing.

There are several ways to make backups:

  1. Through the site control panel such as plesk, cpanel, directadmin, etc
  2. Via ftp and phpMyAdmin
  3. Through the BackWPup add-on, the wonderful add-on that contains several features that we will discuss in detail

One of the important things is also where these backup copies are stored so that they are not lost. These are some of the ways and I will talk about some only, namely:

  1. Using skydrive with an area of ​​25 GB, one of the Microsoft services, you only need a Windows Live account
  2. Gmail is one of the most popular services on Google, and the limit here, I think, is 15GB
  3. Use FTP and here you need free or paid hosting that gives you storage space
  4. Using the DropBox service, this service is well known, of course
  5. Using the free SugarSync service gives you 5GB of space
  6. Use other services, but they are not free and I will not address them in the explanation
  7. Using CDs to burn the copies that we will take, in fact, this method is excellent, but it has its downsides

1 – How to make backups

As for making backup copies from the control panel, the method of backup copies is always for the site completely, that is, you will take a copy of your entire account, and in this case its size will be rather large and you will not need it completely, but in our case we would like only to keep the important files:

  1. Database
  2. wp-content folder
  3. htaccess file
  4. robots.txt file
  5. wp-config.php

Backups with CPanel, Plesk or DirectAdmin

As we mentioned earlier, this method will make a full copy of the site, and this may be cumbersome, either in downloading and re-uploading if necessary, and it will also have an impact on the storage location.

With regard to cpanel, it is one of the most used and most famous and easy to use control panels, and here are some explanations about it:

  1. An explanation from the official website of how to make backups from here
  2. Another explanation in Arabic from the Mashhad Net development forum supported by pictures
  3. Another video explanation on YouTube
How to make and store backups for WordPress

As for the rest of the control panels, they are rarely used in shared hosting. Perhaps the way to use them is a little complicated for beginners, or perhaps for something else, although if you look at the help documents for how to use one of these panels, you will find the solution of course

Plesk: An explanation from the official website of how to make backup copies from here. Do not forget that there are different versions or versions 7 8 9 10

And this is a video in English, and this is evidence that it is not popular with the Arabs. I did not find any video in Arabic. If you, brothers, find any explanation for it in the comment, please.

How to make and store backups for WordPress

Directadmin: An explanation from the official website of how to make backup copies from here

Also the same for the directAdmin control panel, which is not popular with Arabs, but not like the plesk control panel

How to make and store backups for WordPress

Backups via FTP and phpMyAdmin

This method can be done on all hosts without problems or headaches, and the method is quite easy. All you need is an FTP program to download important files and folders, as follows:

  1. The wp-content folder contains the templates, plugins, images and files that you upload to your site and use
  2. htaccess file if you use special settings
  3. robots.txt file if you use special settings in it
  4. The wp-config.php file contains the connection information for the base

The wp-content folder contains the most important files of your site, but do not forget that you have changed the location of uploading images and other files to another place in the media settings.

We move to the way to take a copy of these files and folders. First, create an empty folder on your desktop and give it the name backup-2011-07-04-mwordpress-net, for example, now all you have to do is log in to your site via FTP, browse the blog folder and download the folders The task that we mentioned earlier to the folder that you created earlier, for example:

files dir backuped1 - WordPress Magazine

It may take a long time to download, especially in downloading the wp-content folder, because it contains images of posts, as well as templates and plugins, etc. For this, if you want to use the time, press it. There is a simple way for those who use cpanel, which is as follows:

compress wp content - WordPress Magazine

After pressing, choose the type of compression you want

compress wp content2 - WordPress Magazine

Now that we have copied the files and the wp-content folder, we take a copy of the database through phpMyAdmin and the method is easy. All you have to do is log into the cpanel control panel and go to the list of databases as in the following picture:

phpMyAdmin - WordPress Magazine

Then choose phpMyAdmin and you will be redirected to its control panel. After you are directed to the control panel, you must choose the rule you want to copy as in the following picture:

list database - wordpress magazine

In the event that you have one rule, it will be displayed automatically, after you choose the rule, you will find a toolbar above, choose the exporter as follows:

database exporter - WordPress Magazine

After that you will get the rule when you press the Execute button and do not forget to check the Transmettre so that you can download the copy

get database - WordPress Magazine

You can download the base compressed by marking the important zippé. Save the base in the folder that we created on the desktop, which contains the files and the wp-content folder. We will now have a copy of the entire blog and the folder we created will contain the following:


Here you only talk on a copy of one blog. You can do the method on a group of blogs in one moment and pay attention in this case to what you are doing, as you may forget something when there are many

Now compress the folder that we created earlier and keep it until you know where you will store it, of course not on your device, as most of us do not know what will happen to his device

By adding BackWPup

In fact, this add-on is wonderful and will dispense with the method of backups by FTP and phpMyAdmin, which means it will save you a lot of effort and time, one of its advantages is that you can create backup copies of the files and folders you want and exclude what you want, and you can also send backup copies to different storage places such as dropBox or to your mail Or to an external FTP and other paid places that we do not need, of course, without additional expenses (minus the heartache). To learn more about the addition, visit the following page from here

The way to deal with the extension is easy, all you have to do is follow the following steps:

BackWPup - WordPress Magazine

First, we add a New Job, and we give it any new name, as shown in the following picture:

BackWPup add new - WordPress Magazine
BackWPup database table use - WordPress Magazine
  1. Enter any name you want like in the picture
  2. Here you can exclude any table from the base in the backup process

Do not exclude any table from the rule, as you may run into problems. If you do not know how to deal with databases, you may delete an important table that contains a lot of information, and in this case it is as if you are pouring water in sand

It is important for the files and folders that we will take a copy of, note the following image:

BackWPup files exclude - WordPress magazine
  1. Here we will only exclude the wp-admin and wp-includes folders and leave the rest as is
  2. As for the second option, if you use an additional folder for images, for example, you add it to the backup copy
  3. In this case, if you leave it blank, it will add all the files and we only need some files:
wp-config.php , robots.txt , htaccess

The rest we will not need, and here is the list of files that we do not need:

index.php,license.txt,readme.html,wp-activate.php,wp-app.php,wp-atom.php,wp-blog-header.php,wp-comments-post.php,wp-commentsrss2. php,wp-cron.php,wp-feed.php,wp-links-opml.php,wp-load.php,wp-login.php,wp-mail.php,wp-pass.php,wp-rdf. php,wp-register.php,wp-rss.php,wp-rss2.php,wp-settings.php,wp-signup.php,wp-trackback.php,xmlrpc.php,

The important thing is if you just want to get the important files, then put these files in the box indicated in the number 3 in the picture to exclude them from the backup copy

Now we move on to the type of work that we will do. Note the following image:

BackWPup job type - WordPress Magazine

What matters here is to take a copy of the database and files, then, as in the picture, we will mark the options as in the picture. For the other options, the first is to export files, posts and images in the form of an xml file. Of course, we do not need this method and the last options to improve and repair the database and check tables

Now with scheduling the time to take backup copies, and this method is also excellent, as you can take a copy of your site every week, every month, or every day and it is better every week

BackWPup schedel job - WordPress Magazine

Some hosts may not work for them in this way. As for the free hosts, I do not think they will work at all because of my experience with them and the endless problems

As for the type of compression that we will use in backups, there are different types (zip, tar, tar.gz). It is recommended to use zip and also change the prefix to the name of your site or any name you like

BackWPup backup file compress - WordPress Magazine

As for the other options, they are for storage places for backup copies, we will leave them to the rest of the next part of the explanation

Backup storage locations

In fact, this point is very important because you have to know where to put your files, of course, not on the device, because most of us are not secure on their device, so we will explain some ways that enable us to save backup copies safely, God willing

Using skydrive with an area of ​​25 GB, one of the Microsoft services

SkyDrive 25 GB Online Storage - WordPress Magazine

This method only needs a live account, but you must know that it allows you to upload a file whose size does not exceed 100MB, and in the event that the size of the backup copy is very large, this will not help anything. As for the way to store files in skydrive, you will need a program that helps you, and you will also need to download backup copies from your site and then upload them. This is an explanation from Brother Muhammad Ghorab’s website for one of the programs and service features. For large files, you will need to divide them into several parts according to the maximum size allowed to be uploaded

Using Gmail is a popular Google service

gmail - wordpress magazine

Also, this method will need an account with gmail, but for the audible size of the reception is 25MB, that is, it is somewhat small, but you can also divide it into several parts. You will not need to download the backup copy from your site, but we will send it via the BackWPup add-on

Using FTP to store backups

icon 346724641 - WordPress Magazine

As for the use of an external FTP server, it can also help you, but you will increase yourself expenses, and if you do not want to spend money, you only need to use free hosting and there are nice hosts that give you large areas such as and and the way to send backup copies here we will use the BackWPup add-onThe way to use free hosting is also nice, but it is not 100% guaranteed. I mean, you must be carefulBy the way, the site gives 10GB of space, but it must be visits to the site that you will do for them. You can put a popup on your site for a certain period until it is visited and type anything in it

Using DropBox

dropbox - WordPress Magazine

As for using Dropbox, this method is distinct, of course, and one of its advantages is that you can upload a file with a size of 300MB, and you can send the backup copy by using the BackWPup extension. As for the space, it is 2GB in the first, and whenever you invite people, the space increases by 250MB, I think. Each one you call, you take 250MB, which is Also, 250MB is added to his account, and the maximum is 8GB

SugarSync 5GB usage

logo ss.v2 - WordPress Magazine

Service SugarSync also featured where they give you a free space 5Gb will also use it to store the backup and there is also bringing the system subscribers to get the extra space as the number of subscribers increased by you the greater your space to 500Mb each participant and if subscribers have the use of a paid service , you get 10GB The important thing is that we found free space and we will also use the BackWPup extension to store backups

Use of other services

There are many services for storing files on the Internet, you can search in the Google search engine and you will find a huge amount of storage services

logo aws - WordPress Magazine

Service Amazon Simple Storage services that foreigners have suspended turnout, but driven and you can get in for free and after the piece Stztr to pay certain amounts will not be expensive ( you can see the prices on their site)

rackspace cloud files.png.scaled500 - WordPress Magazine

rackspace service This site contains various services, including content distribution and file storage that are of interest to us in our topic, but their service is all paid

Automatically send backup copies to storage locations

Here we will use one of the features of the BackWPup add-on, which contains several ways to send backup copies after the completion of processing, and among these methods:

  1. Send a backup copy to the mail
  2. Send a backup copy to FTP any external space
  3. Send a backup to DropBox
  4. Send a backup to SugarSync

Send a copy by mail

BackWPup email setting - WordPress Magazine

In this way, it is enough to put the mail and the copy will be sent directly to your mail

Send a backup to FTP

BackWPup ftp settings - WordPress Magazine

Here we will need the user name and password, as well as the FTP link, and specify the folder in which we will put the backup copies. Do not forget to make a few empty Index.html file in the folder and you can also put the hteccess file

htaccess, put the following code:

Order allow,deny
deny from all

Send a backup to DropBox

BackWPup dropbox settings - WordPress Magazine

For DropBox, you will need to log in and simply click on the authenticate and you will be directed to their site in order to verify the login. This step you do once, then create a folder in your Dropbox account, for example, mybackup, you will need it in the settings of the extension and do not make it public

Send a backup to SugarSync

BackWPup SugarSync settings - WordPress Magazine

You will also need to register on SugarSync to include the email and password you used during registration in the add-on settingsYou must add these settings when you make backup copies at the beginning of the add-on and you can use all these settings at the same time and the backup copy will be sent to all storage centers

If you want to delete old backups from storage centers and keep only the new copy. Then put 1 in the box below the settings so that only one copy is saved, as in the following image:

backWPup max files - WordPress Magazine

Storage centers test results

I tried the storage centers we talked about and used a 64MB backup, and the results were as follows:

storage centerstest result
Via Gmail, Yahoo.The test failed because the file size is larger than the size allowed to be received in the mail
Via FTPThe test passed without problems
by DropBoxThe test passed without problems
by SugarSyncThe test was successful even though it took 10 minutes

I noticed when sending copies to all storage centers at the same time, the site stopped working for a minute, and I think the reason was sugarsync


In the end, I would like to point out that after a period of time has passed on your site, the size of the backup copy will increase and you will have to use paid services, and in this case it is recommended to use Amazon S3 because it is the premium service at all

As for the backWPup extension, at the beginning of the explanation, I used an old version. You will find some pictures of the previous version, but there is no difference in the way it works

If there is any question or comment on the explanation, all you have to do is comment while I am present

And do not forget to subscribe to our mailing list. Thank you very much. I hope that I have succeeded in explaining how backups work and store them.

Peace, mercy and blessings of God

Leave a Comment