Tags: des blog http io ar os using SP forA sample that can jump directly to the last face to view Really did not think, has been the user of PostgreSQL, suddenly need a library transplant has become the first trick! Originally it was quite different from the MySQL command line operation.Don't be afraid, but be careful, because database operation is the core of the site, once there is damage or loss, the consequences are very serious.I wrote the steps
backup–incremental-dir=directory directory path for incremental backup storage–redo-only is used to prepare the incremental backup content to merge the data into the full backup directory, in conjunction with the –incremental-dir incremental backup directory.–force-non-empt
Label:1. Backup With the database engine connected, I have 2 instances locally, SQL Server, Sqltest, and (1-1). (Fig. 1-1) To back up SQL Server, for example, right-click a task--backup, (1-2). (Fig. 1-2) The (1-3) interface appears: "Source"-the database, which defaults to the selected DB instance in figure (1-2). The "target" default
is a specific library backup restore, do not need to delete the entire MySQL directory, only the specific library and related files can be restored with this parameter will not be error.Other specific parameters can be consulted: http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/innobackupex_option_reference.htmlFull
When we forget to make a full backup, and did not enable binlog, and executed deletefromsbtest; all data is lost, it is very difficult to restore. Today, PerconaDataRecoveryToolforInnoDB is used
When we forget to make a full backup, and did not enable binlog, and executed deletefromsbtest; all data is lost, it is very difficult to
restore is complete, you will see that the restored database name is rendered "DBName (restoring ...)"To restore the database again, select the differential backup file, the direct point is OK.Steps:1, first, such as a full backup of the database and then do the differential backup2, for differential
/[email protected] Catalog Rman/rmanrman> Register database;If you want to re-register, query the data dictionary db to get Db_key and db_id execute dbms_rcvat. The Unregisterdatabase command cancels the registration. Re-enroll.Sql> Conn Rman/rmanSql> select * from DB;sql> exec dbms_rcvcat.unregisterdatabase (db_key,db_id);rman> Resync Catalog;Make a full backup
Xtrabackup is a backup software for MySQLXtrabackup is a innodb to do data backup tools, Support Online hot backup (backup without affecting the data read and write), is a commercial backup tool InnoDB hotbackup a good alternative. Xtrabackup has two main tools: Xtrabackup,
" 12500)----(can be no, if the restore error is added)DB2 Restore DB JMAM_DQ continue4. Copying log filesAfter the last command succeeds, view the directory path, d:\db2\node0000\sql0000*\sqlogdir\, copy the log file in jmam_dq.0 toIn the destination folder. (If the path is not correct, you can view the "Newlogpath" entry by executing the DB2 get
Mysqldump Backup common usage1. Export the entire database (including data in the database)Mysqldump-u username-p dbname > Dbname.sql2. Export database structure (without data)Mysqldump-u username-p-D dbname > Dbname.sql3. Export a data table in the database (contains data)Mysqldump-u username-p dbname tablename > tablename.sqMysqldump-uroot-p-B dbname --table TableName > Tablename.sql4. Export the table structure of a data table in the database (with
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
From the above recovery process, we can see that all logs are applied, including online logs, archived logs to sequence9, but sequence is restored to 10. 10 as the current log. 8,
1. Full database backupRMAN> run {Allocate channel c1 type disk maxpiecesize = 500 m;Backup
based on the incremental backup that has been created for the first time (the--incremental-basedir points to the backup, which is a differential backup)[Email protected] ~]# Innobackupex--defaults-file=/etc/my.cnf--user=backup--password=backuppassword--incremental /data/incremental/--incremental-basedir=/data/incremen
value has 1|2 two value, if 1 will add a change master to statement in the backed up file, if 2 will add a change master to statement in the backed up file and comment, This option is recommended for backup and the value is set to 2 because it carries the name and location of the Binlog log at the current moment when the parameter is backed up, facilitating later use Binlog recoveryNote that: mysqldump if you do not back up the data structure by defa
Recently, we want to restore the data of multiple MySQLServer instances backed up using xtrabackup to another MySQL server and start multiple instances using different ports as the review environment.
Recently, we want to restore the data of multiple MySQL servers backed up by xtrabackup to another
| +---------------------+-----------+ 3 rows in set (0.00 sec)3. Save the current backup location of the binary log file to a file and use it to restore the view later#1,创建存放备份数据,以及日志的目录 [[emailprotected] data]#mkdir /backup/binlog [[emailprotected] data]#mkdir /backup/data#2,二进制日志文件当前备份位置存放至/
master to, default comment
--flush-logs: Refresh log
--all-databases: backing up all libraries
--databases db_name1,db_name2: backing up multiple libraries
These are also common parameters
For the InnoDB storage engineUse the --single-transaction parameter for hot spares without using-lock-all-tables locking
Example: warm backup + Full backup + incremental
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.