Data backup is important in a company that is self-related. How to implement automated backups on Linux. I'll keep a record of my own experiments.
1. Download the Bpcs_uploader online and unzip it to the root directory
#wget Https://github.com/oott123/bpcs_uploader/zipball/master
#unzip Master
2. The file is downloaded to the root directory, and a directory starting with oott123 will be generated after decompression. Directory name is too long, it is recommended to change to Baidu_yun.
# MV Oott123-bpcs_uploader-ecb07c3 Baidu_yun
3. Then enter the Baidu_yun directory to give permission
#cd Baidu_yun
#chmod a+x bpcs_uploader.php
4. Then execute the bpcs_uploader.php, which requires PHP environment to execute. JSON functions are also required.
./bpcs_uploader.php Quickinit
Then enter Y to continue
Then enter Http://openapi.baidu.com/devce in the browser and enter the authorization code tc73mc7k.
So this machine and Baidu Cloud established a connection
5. Combine your own backup steps to achieve regular backup data to Baidu Cloud.
Then, take this data backup step into the Crond and let it execute automatically
Use Baidu Cloud disk to create backup weapon