Previously shared
Automatically backup WordPress websites using plugins, but if you use your own VPS and have Baota Panel installed, you can also directly use Baota Panel to back up websites and databases and upload them to FTP space, saving the need to install another WP plugin.
Difference between backing up to the server and FTP
When backing up websites and databases on Baota Panel, there is an option to back up to the server disk or to FTP storage space. Their differences are as follows:
- Backing up to the server disk saves data on the server; if your server fails, the data is lost.
- Backing up to FTP storage space saves data on a third-party server; if your server fails, the data remains.
Therefore, we
recommend prioritizing backup to FTP storage space for both website data and database backups.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 VPS, 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 space. Here, we still use Upyun. Refer to the previously written
Upyun acceleration for WordPress articlefor 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 leaks.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. Optionally, add an IP whitelist/blacklist rule and add your server's IP. This prevents others from accessing 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 can be troublesome.

Therefore, we use this
Token anti-leechsetting,
enable the Token anti-leech function. As long as others don"t know this secret key, even if they know the direct link address of the file on your cloud storage, they won"t be able to download it 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: For ftp, select „No encryption“ mode; for ftps, select „Explicit FTP over TLS“ mode. Username:
操作员名/服务名, such as
operator/mybucketPassword: The operator's password. Port: 21. For details, refer to the Upyun documentation:
https://help.upyun.com/knowledge-base/developer_tools/Automatically back up website data and database with Baota Panel
After having the FTP space, next we set up how to let
Baota Panel automatically back up website data and database files. ① After logging into 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. For hosts, fill in v0.ftp.upyun.com. For 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/backupFill in your operator's password. For the storage location, you can optionally add any combination of English letters and numbers after the /, or leave it blank.

③、Click on the scheduled tasks in 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 Youpaiyun cloud storage space to check if there is backup data. If not, please verify that the account information is filled in correctly. All the above content is about how to
Automatically back up website data and database to FTP space using Baota Panel. 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 to prevent 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 arise. Please refer to our separate tutorial on restoring backup data in Baota.
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.