Alibabacloud.com offers a wide variety of articles about mysql backup shell script, easily find your mysql backup shell script information here online.
. -type D-mtime + -|xargs RM-RF Echo"The MySQL backup successfully"second, the Nginx case mode installation script: The following script for Nginx automatic installation script, only for reference, can be modified according to the actual situation, here the use of scenario,
statement in the exported file to specify the Binlog location of the current backup, which can be done if you want to restore the file to slave. 1.2 RestoreThe file backed up with Mysqldump is a SQL script that can be poured directly into it, and there are two ways to import the data.Directly with the MySQL clientFor example:/usr/local/
MySQL Incremental backup script (innobackupex)
1. in the online environment, I sometimes write a simple script for Incremental backup of the MySQL database.
2. Add an automatic task and execute it every hour or shorter.
#! /Bin/sh
Preface:
Preface:An error occurred while submitting the business alarm order. The page was not responded. After troubleshooting, the transaction was not committed or rolled back. I thought that if the operation status of the transaction was monitored in time, in this way, you can troubleshoot the problem in time to facilitate operation and processing. Therefore, you have created a shell script for nagios to
First step: Define your backup directory on your Linux server:
The code is as follows
Copy Code
Mkdir/var/lib/mysqlbackupCd/var/lib/mysqlbackup
The second step: The following is the most important step, is to write a scheduled backup script.
The code is as follows
Copy Code
VI dbbackup.sh
@echo offREM *********************mysql backup Script ***********************REM ***1, backup MySQL, generate jyz-2015-03-09_14.sql format File * * * *REM * * * The file name: Date _ When. DMP, customizable format * * * *REM * * * ensures that the number of DMP files in this
I. Prepare shell scripts
Vi/home/zhangy/database_bak.sh
#! /Bin/sh# File:/home/zhangy/database_bak.sh# Database info bakupmysql TANK 2009/11/04DB_USER = "root" # User NameDB_PASS = "*********" # PasswordDB_NAME = "myblog" # Name of the data to be backed up
DATE = 'date + % Y _ % m _ % d' # date to be backed upYESTERDAY = 'date-d yesterday + % Y _ % m _ % d' # Delete the backup from YESTERDAY
BIN_DIR = "/usr
Use MySQL mysqlhotcopy to implement automatic database backup. the sh script source code can be added to the cortab at every day. Back up and package the MYSQL database. Set the source code of the file # crontab-e 0 1 ***/usr/local/src/backmysql. sh running www.2cto.com backmysql. sh for the scheduled task. You can con
Tags: mysql backup script send mail zip packageRequired to back up all the libraries, required to compress the package, the name of the package will take months and days.source files, or source directories, are required to be deleted after the compressed package has been completed.Tar with bzip2 compression. The scheduled task is 1:30 execution. After the success
Directory
1.MySQL Hot-Backup script
2. Synchronize server with FTP
3.Keepalived Monitoring and switching scripts
4.SVN batch backup of the version library
5. Automatically monitor ADSL and dial number
6.Linux Batch Build Generation account (updated October 11)
7. Test whether the host in the LAN Alive (October 1
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.