Skip to content
Snippets Groups Projects
Commit 3936e0eb authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

added --single-transaction to mysqldump backup command

please note that this flag is position dependant. You can not put it before --defaults-file
parent 5add95ef
No related branches found
No related tags found
1 merge request!557Improve mysqldump command
......@@ -9,7 +9,7 @@ DATA_DIR={{ SQL_BK_DATA_DIR }}
NAME="$DATA_DIR/mysql_dump_20${TIME}.sql"
cd $DATA_DIR
sudo mysqldump --defaults-file=$BIN_DIR/mysql.conf --host={{ SQL_IP }} slurm_acct_db > $NAME
sudo mysqldump --defaults-file=$BIN_DIR/mysql.conf --single-transaction --host={{ SQL_IP }} slurm_acct_db > $NAME
sudo chmod go-r $NAME
sudo gzip -f $NAME
#scp file to dummy user @ Destination Node and Directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment