Very nice hack indeed. I'm not going to use it since i like doing everything myself, but i suggest adding an option to replace
mysqldump --opt
with
mysqldump --add-drop-table --all
since some servers might have restrictions on locking tables.
EDIT: By the way, it is guaranteed not going to work on a windows server, since the sytaxes for mysqldump and mysql are different.
|