Successfully reported this slideshow.
Your SlideShare is downloading. ×

MyDUMPER : Faster logical backups and restores

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 19 Ad
Advertisement

More Related Content

Slideshows for you (20)

Similar to MyDUMPER : Faster logical backups and restores (20)

Advertisement

More from Mydbops (20)

Recently uploaded (20)

Advertisement

MyDUMPER : Faster logical backups and restores

  1. 1. Faster Logical Backup and Restores Using mydumper By MySQL Consulting Team
  2. 2. About MyDBOPS • MySQL Consulting. • MySQL Support. • Remote DBA Service. • Expert MySQL Solutions • MariaDB, Percona, Galera, TokuDB are supported too.
  3. 3. Agenda • Logical Backups • Backup Tools available • Drawbacks • Mydumper • Myloader
  4. 4. Logical backups • Plain text files - SQL Statements • Can be remote • Can be restored on different versions • Sometimes is the only option • Partial backup and restores • Feed ETL processes
  5. 5. Backup Tools mysqldump • Native MySQL Client Program • Can be piped to mysql client • One Big Output File • Lack of features for modern day problems
  6. 6. Drawbacks • Single Threaded • Lack of native compression • Not possible to chunk the output file • Consistent Online backup
  7. 7. mydumper Maintained by Percona Currently Launchpad Project https://launchpad.net/mydumper Release Notes http://tinyurl.com/mydumper-091
  8. 8. mydumper - features • Faster as is multithread • Different files per table • One row per line • Can able to chunk based on rows, size • Support to MariDB multi source replication • TokuDB transactional support
  9. 9. mydumper - important options • --threads • --outputdir • --rows, --chunk-filesize • --compress • --less-locking • --kill-long-queries
  10. 10. mydumper - selective backups • -B, --database • -T, --tables-list • -B db1 • -B db1 -T t1,t2 • -T db1.t1,db2.t1 • --regex=‘^((db1.|db2.))’
  11. 11. mydumper - improving times --rows • Chunk tables by rows • Only works with INT fields indexes --file-size-chunks • Chunk tables by data size • 1 dump thread but different files allowing parallel restore • works with any table
  12. 12. mydumper - improving times
  13. 13. mydumper - improving times
  14. 14. Myloader • Helps in restoring the backup for mydumper. Restore myloader -h x.x.x.x -d /backup/dir -o
  15. 15. Examples • Full backup mydumper -h x.x.x.x -–less-locking –-compress -o /backup/dir • Restore myloader -h x.x.x.x -d /backup/dir -o
  16. 16. Examples • Partial restore (version >= 0.9) myloader -h x.x.x.x -d /backup/dir/restore/ -o -B db • Partial restore diff DB name (version >= 0.9) myloader -h x.x.x.x -d /backup/dir/restore/ -o -B db_new -s db
  17. 17. DEMO
  18. 18. How MyDBOPS can Help You ? • MySQL Consulting • MySQL Support • Remote DBA services • 24*7 MySQL Monitoring Contact : mysqlsupport@mydbops.com
  19. 19. Thank You

×