BACKUP TABLE table_name[,table_name...] TO '/backup/directory'

Description: Copies files containing the information required for rebuilding a table or tables to the backup directory whose path is given by /backup/directory. Copies the minimum .frm and .MYD files, not the index file. Returns a table resultset with the status after running the command.

Limitations: MyISAM tables

See also: RESTORE TABLE

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.