mysqldump - mySQL database folder backup script -


we're backing our windows based mysql databases on night copying entire mysql database directory:

c$\documents , settings\all users\application data\mysql\mysql server 5.5 

this has caused issues mysql, corrupting table , crashing mysql. not idea active directory. looking turn mysql off overnight , run script then. looked @ running mysqldump. 2 questions:

what drawbacks of taking folder backup? seems fastest recovery method

will running mysqldump on live server make unresponsive until dump has finished?

backing real folder holds database comes, have noticed, problems. files can change while you're copying folder, may result in corrupt backup or (if lock everything), making impossible mysql write (or maybe read from) database, extremely not (tm).

one method circument doing folder backup via file system snapshot. don't know if ntfs supports this, quick google search turned called shadow copy. might want that.

then, pilsetnieks pointed out, can run mysqldump on innodb tables using --single-transaction option.

if on linux, i'd recommend try percona xtrabackup, has wish for. they've released alpha version windows. might worth look.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -