VPS automatic backup Shell script, used to back up and manage MySQL database and Web data on Linux system with one click, and automatically upload to the remote backup server. 1. Features and functions 1. Pure shell script, easy to use, low technical threshold, easy to modify, and can be uninstalled by deleting. 2. Download and Use2.1. Download the script
2.2. Set up cron daemonThe frequency of automatic execution can be set at will, usually once an hour is sufficient.
2.3. Install additional softwareIf you need to perform remote FTP or SCP backup, you need to install lftp and expect.
Configuration Options# Backup data storage directory
MySQL backup options# Whether to enable MySQL backup, 0 means disable, 1 means enable.
# Database backup interval, 1 hour = 3600 seconds.
# The number of database backups to save. By default, the latest 4 backups are saved.
# Database host, username, password.
# The name of the database to be backed up. Multiple databases should be separated by spaces. "all" means all databases.
# The name of the database that needs to be excluded from the backup. Multiple databases should be separated by "|".
Web backup options# Whether to enable local backup of Web data. 0 means disable and 1 means enable.
# Data backup interval, 1 hour = 3600 seconds.
# The number of data backups to be saved. By default, the most recent two backups are saved.
# The data source directory that needs to be backed up. Multiple directories should be separated by spaces.
# The depth of the data source directory to be backed up, folder=0, folder+subfolder=1
FTP backup options# Whether to enable remote FTP backup. 0 means disable and 1 means enable.
# FTP backup interval, 0 means disabled, 1 hour = 3600 seconds
# FTP backup mode, full backup = 0, incremental backup = 1
# The remote FTP storage backup folder. If it does not exist, the script will automatically create it.
# Remote FTP host, username, and password.
SCP backup options # Whether to enable remote scp backup, 0 means disable, 1 means enable.
# SCP backup interval, 0 means disabled, 1 hour = 3600 seconds
# Remote host, username, password.
# The remote host stores the backup folder.
Amazon S3 backup options# Whether to enable Amazon s3 backup, 0 is disabled, 1 is enabled.
# Amazon s3 backup interval, 0 means disabled, 1 hour = 3600 seconds
# Amazon s3 backup mode, full backup = 0, incremental backup = 1
# Amazon s3 BUCKET name. If it does not exist, the script will automatically create it.
# Amazon access key
# Amazon secret access key
4. Suggestions and FeedbackIf you find errors in the script or have better suggestions, you can leave a message or send an email to:
Reprinted from: http://wangyan.org/blog/vps-backup-shell-script.html |
<<: Cheap and stable foreign VPS
>>: Canadian Hosting Provider - MyHosting Hosting Introduction
1. The free SSL certificate is an Alpha SSL certi...
SeedHost, a Dutch business, was founded in 2008. ...
1. GoIndex function <br /> A small program ...
bandwagonhost, an American hosting provider, has ...
vps.yun.pm, a Chinese host, is stable. Now zhujiw...
Configuration is Intel Xeon D-1521 – 4c/8t – 2,4G...
Details : OVH: €49.99/month/i7-6700K/32GB memory/...
Yoctobox, which was probably established before A...
Evolution Host is an old business established in ...
nat.bz, a Chinese merchant, should have been esta...
Hulu Host, a Chinese merchant, mainly provides KV...
GreenCloudVPS launched a Black Friday discount, a...
According to official information, Umbra Hosting ...
Shumai Technology’s Hong Kong CR number is 283062...
Delimiter, a low-cost dedicated server provider, ...