当前位置:网站首页>How to back up a WordPress database
How to back up a WordPress database
2022-06-28 17:13:00 【Hua Weiyun】
WordPress It is a complete warehouse , We use forms 、 Database and other variables to maintain and organize our website information . therefore , In the process of website management , It is strongly recommended that you back up your files and databases regularly or before any upgrade .
WordPress Is the most reliable based on Web And database driven content management system , The act of backing up the database is important to protect your hard work 、 Time 、 Money and effort are extremely important .
This habit can protect website data , And help recover from problems or accidents , This is true even in highly secure settings .
In short , because WordPress Vulnerable to vulnerabilities and damage , Therefore, website security and maintenance need a high sense of responsibility of regular backup .
Why backup
Let's see how WordPress Some important reasons for database backup :
- In adverse circumstances , Such as website hackers 、 Server crash 、 System error or sudden deletion .
- When the hosting company suspends the user account , Backup makes it easy to access and restore data for personal use .
- When hackers inject unwanted data into the database , Backup is very helpful . Backups help clean up unwanted data or tables .
- Due to server hacking or using incompatible plug-ins , The website owner may lose some data or the website may be damaged . If we know how to restore the website to its original state with the help of backup , Then the situation will be handled in a safe way .
- In e-commerce sites , All important data should not be lost during transaction tracking .
- Backup to avoid external threats 、 Unforeseen developer errors 、 Corrupt database 、 Website interruption or any other failure attack .
- During site migration, the process of exporting and importing the site database may lose some data that can be restored through backup .
Why not rely on a hosting company to back up
The reasons why we can't rely on hosting company backup are as follows :
- Most hosting companies' backups are not specifically for WordPress The design of the . This may lead to some incompatibilities .
- The company's backup plan may not be able to meet all recovery requirements for sudden disasters .
- If you do not restore all sites of the user account , Restoring a single website can be a tedious task .
- Users may not receive any notification of backup failure .
Be careful : For better security , Users should use anything specifically for WordPress Design tools to maintain your own backup solutions .
Factors to consider
Factors to consider before deciding on any backup solution :
- Automation : It should be able to automate WordPress Backup .
- Backup frequency : Users should check the frequency of backups , If it is sufficient to meet the recovery requirements .
- Storage location : If the solution supports Google Drive or Dropbox Equicloud storage , That's enough .
- Resilience : Users should look for the convenience of restoring files and databases to our system .
- Partial or full backup : Some backup solutions save only the database , Although the complete website data is stored . It's always better to look for full backups .
- Website migration : Should be able to provide wordpress Migration Services .
Be careful : During site migration , Users may face unsupported network hosts 、 Incomplete migration 、 Problems such as downtime of large websites .
WordPress Full backup of the site
For any WordPress Full backup of the site , You need the following :
- WordPress Blog content
- WordPress file
- All configuration files in the root directory
- Include site topics 、 Home directory of plug-ins and uploaded content .
- MySQL database , By post 、 draft 、 The tag information and comments of the post are composed of .
- Forwarded email 、 Email filter and its configuration .
- Your website settings .
- Details of registered users on the website .
Use WordPress Different methods of backup
It can be backed up manually or programmatically using any ready-made plug-in whatever WordPress Site or database .
1. Use cPanel
cPanel Just a simple interface , For securely managing and backing up your WordPress Website . Here you can schedule automatic backups .
Log in to the appropriate Web The main control panel , And then choose “ file ” Part of the “ backup wizard ” Options .

1. stay cPanel in , Log in to the hosting account backend and naively enter the file manager section . Inside , We offer full or partial backup options as needed .
Be careful : Partial backups are more reliable , Because if the user is on the same host , It allows the user to restore his database .
2. Using the command line :
mysqldump -u [username] -p[password] [DBname] > backupFile.sqlamong username yes MySQL user name ,password yes MySQL password ,DBname Is the database you need to back up ,backupFile.sql Is to save the backup script SQL The name of the document . By default ,backupFile.sql Stored in the same folder where the command was run .
Be careful : In command line syntax , Please be there. [username] Leave some space before , But don't in [password] Leave a space before the parameter . When the user wants to restore the database , Put... In the command line syntax > Replace with <, as follows :
mysqldump -u [username] -p[password] [DBname] backupFile.sql3. Use phpMyAdmin**
If WAMP or XAMPP The server is based on Linux Running on the operating system of , Pre install phpMyAdmin. In other cases , You have to install phpMyAdmin And configure it to manage database dumps . After successful installation , Log in to by entering login credentials phpMyAdmin Tools .

After logging in , We have all the tables in the left column of the dashboard screen .

Next , The user must be... From the left WordPress Database selection WP Prefix database options .
After selecting the database , choice “ export ” tab .

single click WordPress Database or any database name , You can expand to list all the tables that exist in that particular database .
There are two ways to export backup files . They are as follows :
- Fast - Show only the smallest options :
The user can choose SQL The default option for format or select any other format , Such as CSV、PDF To save your WordPress database .
single click “ Start ” Button , Complete the last step to store the backup file .
- Customize - Show all possible options : Users can choose format specific options and many other options from this custom option .
Be careful : If the main purpose is backup , that SQL、CSV、XML Is the preferred format for backup files .
4. Use WordPress plug-in unit
In order to WordPress Site database backup , Using the backup plug-in is a safe and fast choice . This is the easiest way to ensure that the site database is fully restored . Most of the plug-ins available on the market are easy to use 、 Lightweight and well documented .
Some of them are as follows :
- All-in-One WP Migration
- BlogVault
- WP Database Backup
- WP Remote
- Import Export WordPress Users
4. Manual backup from time to time
Create a destination folder , Used to make WordPress Database backup to download the required files . It is better to create a new folder for each backup . When a user wants to recover from a backup , It can make users more organized and efficient .
5. Use file transfer protocol
You can FTP Create and select a new folder in the client's dashboard . Download the... Located on the server WordPress Data or files required . This can be done using methods such as FileZilla Of FTP Client to complete .
FileZilla It's a free one 、 Open source 、 A reliable and powerful tool for file transfer to the server . stay FileZilla in , Navigate to the right quadrant , Then choose... For all the content of the website public_html Folder .public_html Folders are also called www, The root folder is named after your website . To log in FTP client , User needs host name 、 user name 、 Passwords and ports . Click the quick connect button to connect to the server .

Once the connection is established , It will only give a message “ Directory list succeeded …”. Users should be able to “ Remote sites : ” On the right side of the panel, find his website folder . Select files and folders from the server , Users can drag and drop to the local system on the left side of the panel . The left side of the panel actually shows the local system files and folders .

According to the size of the website , export WordPress The database takes some time .
Conduct WordPress Other methods of database backup
- Use automatic plug-ins to recover on any cloud service WordPress database .
- Use something like BackupBuddy Such plug-ins , It will be automatically stored in Google Drive And many other cloud services .
- Automatic backup system installed on the user's website .
- Use self-developed manual scripts .
- Use the website to host the company's own backup system .
- Send a copy of the user's backup file to a remote location .
- Schedule regular backups based on daily or weekly full backups .
Conclusion : Website is a huge asset for site managers and users , So it's worth protecting and has a good enough backup solution . therefore , The decision to restore the entire system to its original location is critical . This can be done by running regularly WordPress Database backup , It should not be ignored at all costs . It should be done in a way that eventually completely restores your website WordPress Backup .
边栏推荐
- R programming language - Introduction
- 使用Karmada实现Helm应用的跨集群部署
- 2019 CSP J2 entry group csp-s2 improvement group round 2 video and question solution
- 清华大佬耗时3天总结出的'常见网络协议汇总'
- np tips: random 创建随机矩阵 sample = np.random.random([19, 64 , 64, 3])
- 这个简单的小功能,半年为我们产研团队省下213个小时
- In rhel6.4, cacti+spine monitoring host is used to send email alarm
- 10.hystrix circuit breaker
- Lucky draw animation - Carp jumps over the dragon's gate
- 如何备份 WordPress 数据库
猜你喜欢

NoSQL之Redis配置与优化(你不在南京的日子我替你吹了秦淮河的晚风)

此虚拟机的处理器所支持的功能不同于保存虚拟机状态的虚拟机的处理器所支持的功能

"Jay bear" plummeted by 96.6%. Why is NFT with star goods cold?

This simple little function saves 213 hours for our production research team in half a year

Potplayer play Baidu Cloud disk video

10.hystrix circuit breaker

MySQL high availability MHA (accidentally passed my youth)

rsync 远程同步(日落尤其温柔的人间皆是浪漫)

ICML 2022 | transferable imitation learning method based on decoupling gradient optimization

How to do a good job of gateway high availability protection in the big promotion scenario
随机推荐
软件快速交付真的需要以安全为代价吗?
In rhel6.4, cacti+spine monitoring host is used to send email alarm
[tcapulusdb knowledge base] how webclient users read and modify data
LTspice 电路仿真入门
Practice of curve replacing CEPH in Netease cloud music
关于接口测试自动化的总结与思考
Langqing and Langchao, an ecological model from OEM to value symbiosis
[tcapulusdb knowledge base] view the business password
What is the reason why easycvr can't watch the device video when it is connected to the home protocol?
PotPlayer播放百度云盘视频
rsync 远程同步(日落尤其温柔的人间皆是浪漫)
区间乘积的因子数之和
R 编程语言 - 简介
Introduction to LTSpice circuit simulation
Tianyi cloud web application firewall (edge cloud version) passed the first batch of trusted authentication
Discrete mathematics single shot, full shot and double shot
[question skimming diary] and a subarray of K
Flex布局
VirtualBox中克隆了一个虚拟系统出现IP问题
This simple little function saves 213 hours for our production research team in half a year