Previously shared
Automatically backup WordPress websites using plugins, but if you are using your own VPS and have installed Baota Panel, you can also directly use Baota Panel to back up your website and database, upload it to FTP storage, and save installing one more WP Plugin.
Difference between backing up to server and FTP
When backing up websites and databases on Baota Panel, there is an option: back up to server disk or back up to FTP storage space. Their differences are as follows:
- Back up to server disk: data is saved on the server; if your server fails, the data is lost.
- Back up to FTP storage space: data is saved on a third-party server; if your server fails, the data remains.
Therefore, we
recommend prioritizing backing up to FTP storage space when backing up website data and databases. If you back up to the server disk, remember to periodically download the latest backup files from the server to your computer for safekeeping.
Apply for a free FTP service space
If you have multiple VPSs, you can set up an FTP service on another server and create an FTP account. If you only have one VPS, we can apply for a free FTP storage space. Here, we still use Upyun. Refer to the previously written
article on Upyun accelerating WordPressfor the registration tutorial; it won't be rewritten here.
How to register for Upyun.
Create cloud storage space and account
After registering with Upyun,please be sure to follow the operations belowto avoid data leakage.First, create a new cloud storage service in Upyun, as shown in the figure below.

Then, click on the access control interface of the created cloud storage service. You can optionally add an IP whitelist/blacklist and add your server's IP. This way, others cannot access this space, making it more secure. However, there is an issue: your own computer will also be unable to access it. In most cases, home computer IPs change periodically, so adding rules is cumbersome.

Therefore, we use this
Token anti-leechsetting,
enable the Token anti-leech function. As long as others do not know this secret key, even if they know the direct link address of the files on your cloud storage, they cannot download successfully. It will prompt {"code":"40310002","msg":"region is forbidden"}.
FTP login account for cloud storage space
For this created Upyun cloud storage space, if we need to log in using FTP software, fill in the corresponding information as follows: Address (Host):
- Intelligent routing (recommended): v0.ftp.upyun.com
- Telecom line: v1.ftp.upyun.com
- Unicom line: v2.ftp.upyun.com
- Mobile line: v3.ftp.upyun.com
Encryption: ftp select „No encryption“ mode, ftps select „Explicit FTP over TLS“ mode Username:
操作员名/服务名, such as
operator/mybucketPassword: Operator's password Port: 21 For details, please refer to the Upyun documentation:
https://help.upyun.com/knowledge-base/developer_tools/Baota Panel automatically backs up website data and databases
After obtaining the FTP space, next we will set up how to enable
Baota Panel to automatically back up website data and database files. ① After logging into the Baota Panel, search for FTP in the Software Store and install the FTP Storage Space.

② Click the settings button of the FTP Storage Space and add the FTP account for the Upyun Cloud Storage space we created in the previous step. Hosts: fill in v0.ftp.upyun.com Username: fill in
操作员名/服务名, for example, if the operator you created for the cloud storage space is 'naiba' and the cloud storage space name is 'backup', then fill in here
naiba/backupPassword: fill in your operator's password. Storage location: you can optionally add a combination of English letters and numbers after /, or leave it blank.

③ Click on the Scheduled Tasks in the Baota Panel, when adding a task, select Backup Website, then choose the website to back up, the backup cycle, and select FTP Storage Space as the backup location.

④ After adding one scheduled task, use the same method to add another scheduled task for backing up the website database. ⑤ After the scheduled tasks are executed, log in to the Upyun Cloud Storage space to check if there is backup data. If not, please verify if the account information is filled in correctly. All the above content explains how to
use Baota Panel to automatically back up website data and database to FTP space. If you find it troublesome, you can also back up to the website server's disk, but you need to regularly download the backup files from the server to your local machine for safekeeping to avoid data loss in case of server hardware failure.
How to restore backup data?
Having backups is not enough; you also need to learn how to restore from backups when website issues occur. Please refer to our separate tutorial on Baota backup data restoration.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.