mirror of
https://github.com/ChrisSewell/MySQL-backup-to-Amazon-S3.git
synced 2025-07-01 18:47:26 -04:00
Single transactions makes it faster? Weird, but it's good to have it not to lock up everything.
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
# Under a MIT license
|
# Under a MIT license
|
||||||
|
|
||||||
# dump all databases
|
# dump all databases
|
||||||
mysqldump --quick --user=youruser --password=yourpassword --all-databases > ~/all-databases.sql
|
mysqldump --quick --user=youruser --password=yourpassword --single-transaction --all-databases > ~/all-databases.sql
|
||||||
|
|
||||||
if [ $1 != month ]
|
if [ $1 != month ]
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user