How to back up your WordPress website (3 methods)

If you have experienced a damaged website, then you will know The copy of the copy, so how destructive is trying to restore or rebuild. It may spend a few hours, days, or even a few months of stop time; leading to the income loss, cost and emotional distress of you and any person on your website. If any problems occur, you can restore your files and databases to prevent this pain. This is why using tools such as Jetpack Backup is absolutely vital to backup the WordPress website.

In this article, we will guide you to complete:

    What is WordPress backup?

  • Why do we need to back up the website?

  • The method of creating wordpress backup

    • Automatically backup from your network host

    • Manual backup

    • Use plug -in backup

  • Which manual backup method is the best?

  • How long should I back up my WordPress website?

  • Where should I store my WordPress backup?

  • How do I know that there is no document when I manually back up the WordPress website?

  • What makes WordPress backup with plug -in is better than manual backup?

  • How much backup should I keep?

What is WordPress backup?

WordPress backup is a complete copy of all the contents of your website. If the website is damaged or damaged, it can be used to restore your website to the previous state and migrate from one host to another. Your backup should include:

WordPress core file.

    These are all files you contain when installing WordPress on the server. The main folders include

  • WP-Admin , WP-CONTENT and wp-found and many files in the server root folder, such as WP-Config.php.htaccessuser.iniphp.iniindex.php .[ 123]
  • Your database.

Your database is a system composed of tables, columns, relationships, and permissions to store dynamic and search information displayed on your website. Some information stored includes user account data, pages and post content, customer orders, forms and other user inputs, and data generated by plug -in.

  • Theme file.

WordPress uses theme files to create the layout and beauty of the website. The theme may also have components that affect the function.

  • plug -in.

The plug -in as your application installed on the WordPress website to provide additional functions provided by the core or theme of WordPress. The plug -in contains specific programming functions, which can add new features to your site and extend its function without any additional code.

  • uploaded.

You or other site users upload images, videos, documents and other files of WordPress media library or WP-CONTENT folder.

  • It is important that all these elements are included in each backup you created so that you can correctly restore your website when you have a problem.

Why do you need to back up the WordPress website? The first reason you need to retain WordPress website backup is to prevent data loss. Whether you run a complex e -commerce store or maintain a simple login page, you don’t want to lose your work, and if your website encounters serious problems, you must start from scratch.

If the following situation occurs, you will hope to restore your WordPress website from the backup:

1. Your website is hacked

If your website is hacked by hackers, You need to restore the website to the version before being invaded. Don’t forget to change all passwords and make sure you have installed WordPress security plug -in to help prevent future attacks.

2. The core update of the plug -in, theme or wordpress causes your website.

When you update to the latest version of the plug -in, theme or wordpress core, you may occasionally encounter terrible fatal errors. These errors may cause terrible white screen crash, but sometimes you may encounter less obvious problems. Your site may still be loaded, but a fatal error script will be displayed on the front or back end. Or you may encounter fine function problems that may be discovered for a long time.

By recovering from backup, you can roll back to its latest working version. You can also use it to create temporary sites so that you, plug -in or theme authors, your host or other developers can solve the problem. If your custody company offers a one -click stage option, it will make the process easier. 3. You add malicious or coded plug -in to your website There are thousands of WordPress plug -in available, it is difficult to know whether the plug -in you are installing of. Plugles with well -known sources such as using WordPress.org and widely used online markets can at least prevent you from installing plugins containing malware. Why? Because the plug -in must be approved and provided to the public. However, poor encoding plug -ins can still pass the review process and install them on your website may cause severe damage.

If you cannot solve the problem by simply unloading the problem Your website. 4. Your console is wrong If your host accidentally deletes the important directory or changes other problems with your server, your site may fail or encounter encounter. To functional issues. You need to restore your site before the host causes the problem.

5. You are migrating your website from one host to another or changing your domain name

If you need to move the host or you decide to change your domain name, you need you need Back up your site. Many things may happen during migration or when changing the root URL of the website, so please make sure to backup before starting at any process.

6. You are undergoing major design changes or implementation of a new theme on the website

Although it is best to make large design changes or switching themes on temporary sites rather than your real -time site, no matter whether it is In which method, you need to keep backup. Your on -stage environment may be different from your real -time environment, so your on -stage site canIt can run well, but your real -time site may encounter problems. Being back to the previous version will reduce any stop time or problem that visitors may encounter when solving problems.

7. You made a mistake when you changed the website Assuming you want Improve the page speed of the website and decide to delete unused images occupying the server space. Whether you execute this operation or use a plug -in, there are risks of unexpectedly deleting important images in the website. Back up your site before starting to delete any content, so as not to lose potential key images and other files. 8. You delete some data regularly to save space If you have many users you run, you may find that you need to delete some data regularly to prevent slower speed. Users can submit their own posts or the media’s e -commerce stores, forums and websites to quickly become huge and cumbersome. You can delete an active user or customer, old order or other information to optimize your website performance.

However, at some point, you may need to retrieve the deleted information. Maybe customers want to order products again, but they don’t remember the size or color they buy. If you delete the order, you may need to check the backup of the database to find the information. Or, maybe a member of an active forum wants to visit their comment history, but you delete their account. Being able to retrieve this information from the backup will allow you to restore it for users.

The method of creating WordPress backup

1. Through your hosting service provider Automatic backup Many custody companies provide daily site backup plans for their customers-usually freely included in your hosting services. It sounds sweet, right? unnecessary. The following is four sufficient reasons that do not rely on hosts to back up WordPress backup:

It has a short and unable to flexible archive window.

Most network hosts retain your backup for 15-30 days and do not extend the option to extend the archive period.

If your host fails, your backup will not be accessible.

If your host service provider encounters an interrupt, your server has been closed, or -even worse -they suddenly stop business, you may not be able to access all backups.

  • Technically, backup is not their responsibility. Make sure you read your clothesDetails in the Affairs Agreement. Many hosts include a statement of exemption that they will sincerely work hard to backup your data, but these backups are for internal use only. They cannot guarantee that any given backup can be provided according to the requirements, or the recovery backup can work normally. The terms of most hosts clearly stipulate that backup of your website is your
  • responsibility.

  • If your website is invaded, your backup may also be invaded.
  • If someone invades your website, they may also get access to your server. If your backup is stored there, they may also be damaged.

  • When registering the hosting service, it means you agree with these terms. Although your network host may provide excellent backup and recovery services, others may not -and you should not rely only on the host to perform WordPress backup.

2. Manual WordPress Backup

WordPress website uses databases, wordpress core files , Theme, plug -in and any other files you choose to upload. Not only do you need to back up all these files related to WordPress, you also need to back up the database. The most commonly used methods for backup websites include:

Use CPANEL backup your website CPANEL is a widely used graphical user interface (GUI) , Simplify server management. Through CPANEL, you can set up website, manage file structure, change domain settings, create website backup, etc.

1. Log in to your host account, and then open cpanel

If you are not sure how to find CPANEL in your host account, you can contact your host or view their knowledge base for seeking to seek for your knowledge base for seeking your knowledge base for seeking to seek your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking your knowledge base for seeking to seek your knowledge base. help.

2. Create your site backup 橙色面板徽标

Under the

file

, click

Backup Manager

link.

In the backup manager, click cpanel backups

. If you want a guidance version, you can use

CPANEL backup guide . Under the

Full Backup

at the CPANEL BACKUPS screen, click \” or Generate A Full Website Backup\”. 突出显示备份管理器的 cpanel 菜单

If you want to the files and database separately, you can select these options under \”partial backup\”. If you want to the database separately, make sure to select the correct database from the \” database \” field.

cpanel 中的备份管理器选项

Once you choose your favorite option, you will be taken to a screen, letting you know that your backup is in progress. You can continue and click to return to the link to Your available .

cpanel 中的完整备份按钮

Your backup will be listed on the \” available backup\” page, with a small blue check mark next to it. Click your backup to it to your computer, everything is ready!

cpanel 中的数据库备份选项

完整备份进行中通知

Not every network host provides CPANEL for its customers Access permissions, so backups in this way may not be suitable for you. For example, the WordPress host does not use CPANEL.

If you use the hosted WordPress hosting and want to access the file directory of the site for backup, you need to use a security file transmission protocol (SFTP), security case protocol (SSH), or a folder -based plug -in to visit you Files on the website. Although your hosting WordPress portal does not include a CPANEL -like file tree, it should contain a link to PHPMYADMIN for database access.

Use FTP/SFTP backup file

You can use the file transmission protocol (FTP) client to manually back up the file of the WordPress site. The FTP client is a program that connects your computer to the website server so that you can upload, and manage files. There are several different FTP clients for free, such as Filezilla, Cyber \u200b\u200bDuck and Classicftp. Quick searching \”Free FTP Client\” on Google should help you find the one that suits you.

可用备份列表

For this exercise, we will use Filezilla:

1. Find your FTP credentials in your host control panel.

The location of your FTP credentials may vary from the site, so if you cannot find them, please contact your host for help. You will need the following information:

host address.

This is usually the server IP address or may be URL. Username. This is your FTP user name. It is specific to your FTP connection, and should not be the same as your host account user name.

Password.

When trying to access your credentials, you may ask you to generate a new FTP password. If so, you need to write this password somewhere. Some hosts will not save the FTP password in your account, so if you try to retrieve it later, it will prompt you to generate a new password. If you save the FTP of the website on multiple installations on your FTP client (laptop, desktop machine, colleagues’ laptop, etc.), this may be annoying.

port number.

You need to connect to your server through SFTP (security) and FTP (unsafe). The SFTP port is usually 22 or 2222. If your account is not mentioned, you can check the host’s help document at any time to obtain this information at any time.

2. Log in to your FTP client with the above credentials, and then click to connect quickly.

3. Select a folder to save your backup

The file on the left side of the screen will display the file on the computer. Essence On the right side of the screen, the file on your network host server is displayed. Save the backup folder on the computer and click it. You will see its content in the window in the lower left corner.

Or you can right -click to create a new directory.
FileZilla 中的快速连接按钮 If you are creating a new directory, enter its name and click OK.

The new folder named Backups will be displayed in the lower left window. Double -click the folder to open it.

从桌面选择的备份文件夹

4. Navigation to the root directory on the right side of the screen

下拉菜单中的“创建目录”选项 It is usually called

html

or or

public_html

. It may have another name, depending on your host, but it is important that if it contains 弹出创建目录 WP-Admin

,

wp-concludes

wp-found [123 ] Folder, you will know that you have found the right directory.

以蓝色突出显示的备份文件夹
5. your website file from the root directory

Select all the files and folders in the root directory of the site. Right -click and select . You can also choose all files and folders, then click and drag them to the open folder window on the left side of the screen.

Your file will now be ed to your local computer. Make sure they upload them to cloud storage such as Google Drive or Dropbox and save another copy on the external hard disk drive. 以蓝色选择的 public_html 文件夹
Don’t forget! This process only back up the files of your site. It will not back up your database. You also need to backup the database, which can be completed through PHPMYADMIN or SSH.

Create a WordPress database backup using PHPMYADMIN public_html 中选择的所有项目

PHPMYADMIN is an online software used to manage MySQL and Mariadb databases (database types used by WordPress). It has a GUI that is much easier to navigation and management database than trying to complete all operations from the command line.

If you don’t know what you are doing, it will still be a bit terrible to find in the database. Fortunately, it is very simple to guide the database backup in PHPMYADMIN:

1. Log in to CPANEL or host the WordPress portal in your host account 文件列表下方的下载按钮

If you are in CPANEL In

databases

, you will see PHPMYADMIN. If you are using the hosting WordPress host, there should be a link to PHPMYADMIN in your portal. If you can’t find it, please contact your landlord or search for their documents for help.

2. Click the PHPMYADMIN icon to start the PHPMYADMIN window in the browser phpMyAdmin 徽标123]

3. Select your database

If you have not selected your database name, click the database you want to export. After selecting the database, you will see the list of all tables contained.

3. Click the export tab

Method and format
Then you can choose from cpanel 中的 phpMyAdmin 图标 or

customized

export. Quick Export will export your entire database. If you want to view the exported table and exclude some tables, select

custom

export option.

在 phpMyAdmin 中选择的数据库
I chose a quick export method.
phpMyAdmin 中突出显示的导出选项卡
has selected custom export, excluding wp_comments and wp_commentmeta tables.

By default, PHPMYADMIN should display the database output option as \”SQL\”. If you choose \”text\” or other options for some reason, switch it to \”SQL\”. 5. Click \”Start\” That’s it! PHPMYADMIN will guide the database as a ZIP or GZIP file, and prompts you to it to the computer for database backup.

表导出选项 Use SSH to perform site backup

SSH (secure shell or convergence shell) is a network protocol, which can be provided through unsafe networks to provide provided by unsafe network Safety access from one computer to another computer. Mac OS and Linux include SSH client terminal . Windows 10 contains a SSH client option, but it does not install it automatically and must be ed and enabled separately. Other Windows versions do not include SSH clients, so you need to one from a third party, such as

putty

. 已选择自定义导出选项

Most SSH clients do not have GUI, but rely on text -based commands to connect to remote hosts and execute functions such as uploading, ing, deleting, and file name changes. Unlike SFTP, you can use SSH backup site files and databases. That’s it:

1. At the hostFind or create SSH credentials in the control panel.

The location where your SSH credentials are located and if they do not exist, how you will generate them may vary from your host, so if you are not sure where you can find it, please contact you to contact you The provider or search for their common questions to seek help.

Sometimes your SSH and SFTP credentials are the same, so please check your FTP setting area to see if this is the situation.

You will need the following information:

SSH 徽标 host IP address

Username

Password

port number

You may also need to generate the SSH key, depending on your host requirements. For this example, we will only use the host, username, password and port number.

2. Find your SSH application and open it.

On Mac OS, you will be transferred to

    Applications

  • Utilities
  • terminal

  • . On Linux, you can press CTL + Alt + T. If you are using Windows, you will use any SSH client you installed.
  • 3. Enter this command: SSH
  • [email \u0026#160; propech]

  • -p 2222
  • Replace the \u0026#39; username \u0026#39; to your username, replace the \u0026#39; remotehost \u0026#39; 123] Enter

.

If this is the first time you connect to the server, the system will ask if you want to continue connection. Type \”Yes\” and press

ENTER

. You will receive a warning that the IP address of your server has been permanently added to the known host list. If you connect from the same computer, you will not see the news again. 4. Enter your password and press Enter.

在 SSH 中打开行 SeriesUnification will prompt you to enter the password. Copy and paste it at the command prompt. You will not see the displayed password or any other feedback. This is normal. Press

ENTER

.

You have connected to the remote server -it is time to back up your site.

5. Type the following under the command prompt: CD ~

SSH 中输入的服务器信息

Your site file: tar This should be the directory where the WordPress folder

wp-admin , wp-config

and

wp-config 继续连接到主机的选项 are located. If the root directory of your website is \”PUBLIC_HTML\”, then your command will be shown below:

tar Your backup has been completed, but it is still on your server. You need to it from your server so that you can store backups safely in different places.

7. the backup of the site file.

Type the following at the command prompt:

SCP -P 2222 Username @remotehost: /directory_name/backup.gz 提示输入密码 Directory_name

添加到 SSH 的命令行

]

Replace \”2222\” with your port number, \”username\” with your username, \”remotehost\” to the IP address of your server, \”Directory_name\” into the directory name of the site file, the second A \”Directory_name\” replaces it with the directory you want to to the directory on your computer. Then Press Enter .

Your file should now be ed from your server to your computer. 8. your database.

Oh, do you think you are over? No, you still need to your database. You will need the following information:

输入的行以在 SSH 中备份站点

DataLibrary user name.

This is different from your SFTP or SSH username, which is only allocated to your database.

Database name. The name of your database.

Password.

Your database password should be different from your SFTP or SSH password. You can find this information in your host account. If you can’t find it, please contact your landlord for help or browse their help documents.

If you still log in to the server through the SSH after ing the site file, you will enter the following commands at the prompt: mysqldump -U user name -P database \u0026 gt; database_backup.sql [123 123 [123 ] Replace \”Username\” with your database username and \”database\” with your database name.

进入 SSH 以下载备份

Then the system will prompt you to enter the database password. Enter your password and press

ENTER

. Your database will be exported as \”database_backup.sql\” in the current directory. To it to the local computer, enter the following command:

SCP -P 2222 Username @Remotehost: /directory_name/database_backup.sql/Directory_name

[1222 \”to your The port number, \”username\” is replaced with your username, \”remotehost\” is replaced with the IP address of your server, \”Directory_name\” is replaced with the directory name of the site file, \”/local/dir\” is replaced with your directory. The computer ed by the database. Then

Press Enter .

9. Delete the backup from your server (optional)

On your server. If you don’t want to keep them there, you can use the following command to delete them:

Website file:

RM database backup .sql

] Database:

备份数据库的初始命令

RM database backup .sql

3. WordPress backup plug -in

] There are multiple plugins for you to back up your WordPress website on need or at your scheduled time. However, some of the plug -ins will involve complex settings, or they will back up and store on your own server, which may affect your site and lead to slow loading time. Jetpack Backup is a great choice for worry -free and automatic wordpress backup, which will not cause your website to fall into trouble.

The advantages of jetpack backup include:

Easy settings.

Just install Jetpack and buy a backup plan, everything is ready. 下载数据库的命令
Real -time backup. Many backup plugins only provide daily backup. However, if you change your site or operate online stores regularly, real -time backups may be critical to prevent data loss. Whenever major changes are made, Jetpack preserves a copy of your website.

Storage in different places.

Save back on your server may reduce your website speed. To make matters worse, if your server fails, you will not be able to access your backup at all! Or, if a hacker attack occurs, they may be damaged. Jetpack stores your backup safely in different places, so you can visit them at any time whether you can enter your site.

Simple migration.

Jetpack backup is also a migration plug -in. You can easily migrate your site to any host without installing other plug -ins.

Manual . Although Jetpack stores your backup on their server, you can also them to your hard disk drive, and then upload them to Google Drive, Dropbox or Amazon S3 and other cloud storage platforms -as long as you need you With backup, a bit of redundancy is never a bad storage space.

The backup size or frequency is not limited.

Many backup plug -in will limit the size of the backup or the frequency of the storage site. Not a jet backpack! Easily backup large websites as needed.

喷气背包徽标

Excellent customer support.

The Jetpack team consists of WordPress experts. Please rest assured that your website and backup will be properly handled.

Which manual backup method is most suitable for WordPress?

WordPress backup through CPANEL is the easiest way to execute manual backup, but not all network hosts use CPANEL. ifIf you can’t access the CPANEL through the host, the next best choice for the relatively easy manual backup is to use SFTP to all site files and back up the database through Phpmyadmin.

  • Priority to backup your WordPress website No matter what method or the frequency of the plan you choose, the backup will be backed up as a priority. Do not adventure your hard work and important data by delaying the websites. If you look back back because you look like a bitter thing, Jetpack Backup can make this process easily painless. Make a shorter time to submit the work order to the landlord’s technical support team to ensure your data security. In the long run, if there is a problem, you will save money, time and document recovery.
  • WordPress Backup Common Questions Answers How long should I back up my WordPress website?
  • The brief answer is: Regular . But according to your website to update the frequency of new content, you may want to back up every month, week, daily or real -time or real -time. Static websites that do not often update new content may only need to back up daily. On the other hand, busy e -commerce websites may need to back up in real time to minimize the loss of customer or product data.
  • Where should I store my WordPress backup? Save the backup in different places and save at least two places -preferably three. If you keep back on your server, you may seriously reduce your website speed. Each backup is a complete copy of all the contents of your website. Therefore, if you keep a month’s daily backup on the server, it is 30 complete websites to occupy space. oops! In addition, if your server fails, you may lose access to all backup -it violates the purpose of initially making them, right?
  • Jetpack Backup saves your backup on WordPress.com’s own server , You can the site to local computers regularly. From there, you can copy them to the external hard disk drive and upload another copy to cloud storage services such as Google Drive, Amazon S3 or Dropbox.
  • Even if you do not have to rely on your custody company to backup, there is no harm to choose a plan that includes at least 30 days of backup. In addition to your own due diligence, this should ensure that you have the greatest possibility to restore your website. How do I know that there is no document when I manually back up the WordPress website?
  • As long as you back up your database and the entire site directory on your virtual host, you can determine that you have backup everything you need. However, by manual backup, if the resource or damage in this process, you may not receive any error messages. Therefore, your backup may always lose files or may contain damaged files.
  • When all the files of the manual backup site, you need to all the contents of the root folder.

If you are not sure which folder on the server is the root folder of your website, it is usually called

html

or

public_html

, but it may have another one name. You can ask your host or click in the file directory until you find a folder that contains

WP-ADmin

,

wp-concludes

wp-found

– – This is your root folder.

If you host any content on your website (such as images or videos) on another server, you also need to ensure that these contents are backup.

If you want to determine whether the backup is valid, you can install it on the temporary site and test it to ensure that everything is there and the site backup runs normally.

How much backup should I keep?

If your website contains a lot of dynamic content, it should be kept backup at least one year. If your website is quite static, then you only need to maintain the value of 30-90 days to be safe.

The number of backup you reserved actually depends only on how the possibility you think you need to access data from a certain date, or when do you think the content is not worth retaining. In addition, you may need to abide by the legal requirements of a certain number of days or years, or destroyed after a certain period of time.

What makes WordPress backup with plug -in is better than manual backup?

It is easier, safer to use plug -in to back up your website, and save your time. By using plug -in automation backups such as JetPack, you can focus on design, function, content or marketing. Or, maybe just relax, let’s take a step!

Author:

Leave a Reply

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