The following articles mainly introduce one of the frequently used backup methods in MySQL Databases: MySQLdump and description of related matters that should be paid attention to during the actual operation of MySQLdump, the following is a description of the specific solution. I hope it will help you in your future study.
MySQLdump
Basic Syntax:
Shell> MySQLdump [OPTIONS] database [tables]> data_backup. SQL does not specify the MySQL database name to indicate all
Svnserver scheduled backup summary in Linux:This article is mainly combined with the previous about the "Linux build svnserver Summary", to explain how to backup Svnserver under Linux, to prevent the individual situation caused by the serious consequences of data loss.The implementation process is basically: we need to create a new backup SH script and then run the previous script using Contab. And the success of the simulation verification, it is still relatively simple.Ps:As for the specific i
SQL Server 2008 database replication is a publish/subscribe mechanism for data synchronization between multiple servers, which we use for synchronous backups of the database. Synchronous backup here refers to the backup server and the primary server for real-time data synchronization, normally only use the primary database server, the backup server only in the primary server failure to put into use. It is a database backup solution that is superior to
Steps to manually implement differential backups
Character type:
1. Restore the current libraryALTER DATABASE Current library set RECOVERY full--
2, the construction table cmd; Create table cmd (a image)--
3, back up the current library to D:\CMD1; Backup log current library to disk = ' D:\cmd1 ' with init--
4, insert a sentence code to create the table cmd; insert into cmd (a) VALUES ('
5, backup one sentence code to the site root directory; B
backups must be done in the case of a database shutdown and that performing a database file system backup is not valid when the database is open. And after the restoration must be the database file of the group and owners to MySQL.
hot Backup (on, fast)
Hot backup is the SQL statement that backs up database operations when the database is running, and you can rerun the SQL statements that are backed up when a database problem occurs.
Benefits o
Install client cwrsync_4.0.5 on the backup server, create a folder called Sync, and create two folders named "File" and "Data" below to synchronize the folders on the domain server.
2 Create a file Password.txt in C disk and write to the domain server Administrator's login password.3 Create a batch file named Work_rsync.bat in the following section:
--These two processes are incremental backups.
Rsync-avz--progress Administrator@192.168.1.87::t_fi
Backup | timing | data | database
About database automatic scheduled backups, but each backup with a different nameThis method may be realized a long time ago, I hope which masters do not mind, =:)
Again, the database is scheduled to be backed up automatically, but each backup is implemented with a different name as follows:1: Create a job on SQL Server that will allow it to run automatically and regularly;2: Create a step with the following code:dec
Import data exported from an Oracle database into a MySQL database1. Import to the MySQL database using the default closing symbol:LOAD DATA LOCAL INFILE ' d:/oracle.txt ' IGNORE into TABLE alarmlogThe Terminator in fields now defaults to the '/t ' tab instead of the '/t ' string.2. When the set fields terminator is imported into the MySQL database:LOAD DATA LOCAL INFILE ' d:/oraclea.txt ' IGNORE into TABLE alarmlog fields TERMINATED by ' ~ 'The data files used in both cases oracle.txt and oracl
Tags: backup his timer task dev Delete pass absolute path gzip dumpbackup.sh Script # Name:backup.sh # this isa shellscript for Auto DB backup and Delete old Backup #备份地址 backupdir=/data/Backup #备份文件后缀时间time=_ ' Date +%y_%m_%d_%h_%m_%S ' #需要备份的数据库名称 db_name=#mysql user name #db_user=#mysql Password #db_pass=#mysqldump命令使用绝对路径/usr/local/mysql/bin/mysqldump $db _name | gzip > $backupdir/$db _name$time.sql.gz #删除7天之前的备份文件 Find $backupdir-name $db _name"*.sql.gz"-type F-mtime +7-exec RM-RF {} \; >/d
30分 to perform ordatabak.sh backup files with Oracle users : wq! #保存退出 Service Crond Restart #重启crond Every day 2:30 A.M., the database is automatically backed up into the/backup/oracledata/osyunwei directory, saved as a. tar.gz compressed file, and a backup of 7 days ago is deleted, leaving only the last 7 days of data. Note: All of the above codes are entered in the English half-width state. At this point, Linux automatically backs up the Oracle database and deletes the backup tutorial complet
Yum command crontabInstall the scheduled task program from the CentOS system disk using the RPM command crontabAdd a Scheduled taskExecute command:-e
1
1
You can edit the scheduled tasks just as you would with the VI editor.Enter the following and save:*/1 * * * * /home/backup/bkDatabaseName.sh
1
1
What does it mean exactly?This means that the shell script "/home/backup/bkdatabasename.sh" executes once every minute.6. Test whether the ta
rebuild if you want to change it.32. Description:Creating views: Create VIEW viewname AS SELECT statementDelete view: Drop View ViewName33. Description: A few simple basic SQL statementsSelect: SELECT * FROM table1 where rangeInsert: INSERT INTO table1 (field1,field2) VALUES (value1,value2)Delete: Delete from table1 where rangeUpdated: Update table1 set field1=value1 where rangeFind: SELECT * FROM table1 where field1 like '%value1% '---the syntax of like is very subtle, check the information!So
1 #!/usr/bin/python2 #-*-coding=utf-8-*-3 Import Time4 ImportOS5 Importdatetime6 ImportThreading7 fromTimeImportCtime,sleep8 9Date=time.strftime ('%y-%m-%d', Time.localtime (Time.time ()))TenDbname= ('Test','test2')#The definition tuple must have more than one, or the character inside the loop. OneDbname2= ('test3','test4') ABkdir="/backup/mysqlbk/" - - #Delete backup files for more than 3 days theNow_time =Datetime.datetime.now () -Yes_time = Now_time + Datetime.timedelta (days=-3) -Out_time
backup.3. Full hot standby (hot Standby)Full hot provisioning is the highest level of database backup. Full hot standby requires a backup database system that is as active as the production database. and the production database is in full sync with the backup database system, and all modifications to the production database are also implemented on the backup database. A fully hot-standby implementation typically requires complex hardware and software technology, so its recovery requires a highe
whether the task is performedQuite simply, we execute the "ls" command several times to see if the file has been created in a minute. If the task execution fails, you can view the task log with the following command: # tail -f /var/log/cron The output looks like this: Sep - -: on: onBogon Run-parts (/etc/cron. Hourly)[2503]: Starting0Anacron Sep - -: on: onBogon Run-parts (/etc/cron. Hourly)[2512]: Finished0Anacron Sep - the: on: onBogon crond[3092]: (Root) CMD (Run-parts/etc/cron. Hourly) S
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.