Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991

Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8
Comments on: Question 69: Pick 2 ways of making “non-locking” backups for Innodb http://mysql-qotd.casperia.net/archives/477 mysql 5.0/5.1 questions for learning purposes Fri, 06 Aug 2010 16:56:36 +0000 http://wordpress.org/?v=abc hourly 1 By: plogi http://mysql-qotd.casperia.net/archives/477/comment-page-1#comment-78 plogi Wed, 16 Jun 2010 17:52:04 +0000 http://mysql-qotd.casperia.net/?p=477#comment-78 <b> c d   For Innodb tables you can quite easily take a backup, which does not place a read lock on the tables: You can make a text backup with mysqldump and a binary backup with ibbackup - all without readlocking the tables! Mysqlhotcopy works only for Myisam and Archive tables. BCP is the bulk-copy-program of mssql server. Filesystem snapshots are also very handy and allow to take consistent backups (of all table engines) with minimal locking: - "flush tables with read lock;" - commit a transaction on an innodb table - take a fs snapshot - "unlock tables;" - copy files from snapshot to tape/nfs - release snapshot Filesystem snapshots can for example be taken with the linux lvm, or with fssnap on solaris. Storage systems (like netapp to name only one) also offer snapshot capabilities. </b>
c d
 
For Innodb tables you can quite easily take a backup, which does not place a read lock on the tables:
You can make a text backup with mysqldump and a binary backup with ibbackup – all without readlocking the tables!
Mysqlhotcopy works only for Myisam and Archive tables. BCP is the bulk-copy-program of mssql server.

Filesystem snapshots are also very handy and allow to take consistent backups (of all table engines) with minimal locking:
- “flush tables with read lock;”
- commit a transaction on an innodb table
- take a fs snapshot
- “unlock tables;”
- copy files from snapshot to tape/nfs
- release snapshot

Filesystem snapshots can for example be taken with the linux lvm, or with fssnap on solaris.
Storage systems (like netapp to name only one) also offer snapshot capabilities.

]]>