Every day, a series of data files are generated on the server, some of which are of great importance, but if we simply move the files, it will not be very good backup, here, we use Python to implement the cloud backup of the file.
This program I use Python to write, borrowed the Sevencow library file, the use of the program is very simple.
First we can download this code file from GitHub, and we can take advantage of the git clone command.
https://github.com/icorer/vpssync.git Source Download
Then we need to configure the necessary parameter information in the Backup.config file, the parameter list is as follows:
AK Seven bull supplied AK key SK Seven kn supplied sk key Cloud Bucket backup directory name Source floder Server directory path
Finally, we use the Python command to execute the script, and if the server data file is large, it is recommended to use the Screen-s command to open a background window for backup operations.
If you need to complete the email alert feature, modify the last comment section of the Python code to modify the appropriate parameters for SMTP.
Tool: Seven Cow Cloud Backup VPS Server file