Whether you run a website or maintain an independent blog, backups are one of the things you really cannot ignore. Many site owners have had the painful experience of losing years of work because of one careless mistake.
Fortunately, there are plenty of backup options now. You can keep copies locally, or store them in cloud services such as Tencent COS or Alibaba Cloud. Cloud storage itself is not especially expensive; in some cases, a few dozen yuan, or even just over ten yuan, can cover a year of use. The catch is that these services usually charge for outbound traffic. In other words, when you actually need to retrieve your data and download it back to your local machine, there may still be extra costs involved.
While trying out Synology, I found that the Active Backup for Business package can automatically synchronize files from a server. It is quite convenient, and it works well as a simple way to back up website files.
Install Active Backup for Business
Open the Synology Package Center, search for Active Backup for Business, and install it. There is not much else to explain here.
Back up website files with Active Backup for Business
After installation, open Active Backup for Business and go to File Server.
Click Add Server. For this setup, choose rsync server, then continue to the next step.
Fill in the server information and finish the setup.
When choosing the backup mode, you can use incremental backup, which only backs up changes after the initial backup. You can also choose multi-version backup if you want Synology to keep several versions automatically according to your settings.
Finally, select the folder where your website files are stored, set the backup schedule, and the task is ready to run.
A common issue
When adding the server, you may see a message saying that rsync is not installed on the server. In that case, just install the rsync service on the server first.
#Debian或者Ubuntu
apt install rsync
CentOs
yum install rsync