🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Tutorial on Automatically Backing Up Websites and Databases to FTP Storage Space with Baota Panel

Previously sharedAutomatically 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:
  1. Backing up to the server disk saves data on the server; if your server fails, the data is lost.
  2. Backing up to FTP storage space saves data on a third-party server; if your server fails, the data remains.
Therefore, werecommend 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 writtenUpyun 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.又拍云FTP空间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.又拍云FTP空间Therefore, we use thisToken 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空间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 letBaota 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.宝塔面板自动备份到FTP② 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 herenaiba/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.宝塔面板自动备份到FTP③、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.宝塔面板自动备份到FTP④、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 toAutomatically 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.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

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.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: