MySQL backup and recovery-percona-xtrabackup incremental backup and recovery bitsCN.com article review
In the previous article, we talked about the use of percona-xtrabackup software. This article describes how percona-xtrabackup achieves incremental backup and recovery.
2
] full]# cp-r/backup/mysql/full/2015-05-07/2015-05-07_18-14-25/ib*/var/lib/mysql/# If the InnoDB data file is placed in a separate directory, it needs to be copied separately[[email protected] full]# chown-r Mysql:mysql/var/lib/mysql # Modify owner, owning group[[Email protected] full]# service MySQL start[[email protected] full]# mysql-u root-p123456789 # Login Database View data has been restoredMariaDB [(None)]> show databases;+--------------------
Last week, because the Dataguard system was full, it caused an emergency deletion of some of the archived logs that were not applied.
Afterwards, the following command was run through Rman extracting the ASM archive log from the main library to the local disk:
rman> copy archivelog ' +data/log/archivelog/rman2_5585_697238176.dbf ' to '/u01/rman2_5585_697238176.dbf ';
Then FTP to the Dataguard server and
restore RMAN. RMAN can be used to back up and restore database files, archive logs and control files. It can also be used to perform full or incomplete database Recovery. RMAN Backup methods include Full Backup, Incremental
Note: Rman backup (supports SPFile-based backup only and does not support Init.ora configuration-based backups)exercise: Turn on Archivelog mode1\ For archived redo logs are referred to FRA and separate archive log target SQL>Show parameter db_recovery_file_dest; SQL>AlterSystemSetDb_recovery_file_dest_size=2G; SQL>AlterSystemSetDb_recovery_file_dest='/u01/app/or
-52-43/
[Root @ local-db opt] # innobackupex -- defaults-file =/etc/my. cnf -- user = root -- password = 123456 -- copy-back/bak/mysql/2015-07-08_18-52-43/
There are two steps for recovery:
The first step is apply-log. to speed up, we recommend that you set -- use-memory. After this step is completed, the backup files under the/bak/mysql/2015-07-08_18-52-43/directory are ready.
Step 2 is copy-back, that is, copy the
For more information, see
I am here to ask for advice.
1. Under what circumstances do I need to redo the control file? For example, if I accidentally delete a data file and there is no backup, and there is no content in the time and space of the data file, When I redo the control file, will the system read the System View and record the files in the current normal state so that the database can be used for recovery.
2. When backing up a database (rela
TAG20140526T140012
1055 B 0 A DISK 26-MAY-14 1 1 YES TAG20140526T140012
1062 B 1 A DISK 26-MAY-14 1 1 YES TAG20140526T141509
1063 B 1 A DISK 26-MAY-14 1 1 YES TAG20140526T141509
1069 B 1 A DISK 26-MAY-14 1 1 YES TAG20140526T143009
1070 B 1 A DISK 26-MAY-14 1 1 YES TAG20140526T143009
1076 B 1 A DISK 26-MAY-14 1 1 YES tag20140526t142139
1077 B 1 A DISK 26-MAY-14 1 1 YES tag20140526t142139
1082 B 0 A DISK 26-MAY-14 1 1 YES TAG20140526T150011
1083 B 0 A DISK 26-MAY-14 1 1 YES TAG20140526T150011
109
RMAN is actually installed, and we don't usually need to make any adjustments to it. However, the Rman architecture also contains a number of components that, when they form a whole, must adjust the Rman settings to get the best performance from the backup process. Typically, Rman
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 related to file
In the RMAN backup script, we added the option to delete the archive log, but in some cases, we still need to deploy the script to delete the archive log. For example
In the RMAN backup script, we added the option to delete the archive log, but in some cases, we still need to deploy the script to delete the archive log
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://www.percona.com/downloads/percona-release/re
The company's Linux server uses a common desktop and lacks a disaster recovery mechanism. The company stores a large amount of data on this server. Once a fault occurs, the consequences are unimaginable. Therefore, it is necessary to effectively back up important data of this machine. After several days of data collection, I finally compiled my own Linux script to implement a complete monthly backup and daily Incr
Tags: alter POI disadvantage data RAM SSI Channel conf DeleteFirst, the terminology of backup Turn off and on (cold and hot standby consistent and non-consistent backups) open backups can only be in archive mode All and local local backups can only be in archive mode. Full and incremental backup incremental backups are
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.