Use Baidu Cloud disk to create backup weapon

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.