The mysqlhotcopyis a perlscript written to provide a consistent backup of MyISAMand ARCHIVE
tables, it does some limitations one of which when run it uses the lock tables command to create
read locks on the tables being backed up, this allows for a consistent backup.
mysqlhotcopy
## backup a database
mysqlhotcopy<database_name> /backups
## backup multiple databases
mysqlhotcopy<database_name> accounts /backups
## backup a database to toanother server
mysqlhotcopy--method=scp<database_name> \
[email protected]:/backup
## use pattern match to backup databases and tables
mysqlhotcopy<database_name>./^employees/ /backup