|
Logical backups save information represented as logical database structure (CREATE DATABASE, CREATE TABLE statements) and content (INSERT statements or delimited-text files). Physical backups consist of raw copies of the directories and files that store database contents.
Logical backup methods have following features.
The backup is done by going through the MySQL server to obtain database structure and content information.
SELECT ... INTO OUTFILE statement. These work for any storage engine, even MEMORY.
For restore, SQL-format dump files can be processed using the mysql client. To load delimited-text files, use the LOAD DATA INFILE statement or the mysqlimport client.
Physical backup methods have following features
MEMORY tables cannot be backed up this way because their contents are not stored on disk.MyISAM table corresponds uniquely to a set of files, but an InnoDB table shares file storage with other InnoDB tables.)MyISAM tables, ibbackup for InnoDB tables, or START BACKUP for NDB tables.
For restore, files copied at the filesystem level or with mysqlhotcopy can be copied back to their original locations with filesystem commands; ibback restores InnoDB tables, and ndb_restore restores NDB tables.
Related posts:
Related posts brought to you by Yet Another Related Posts Plugin.