gzip file in dump.sh
parent
5572608b39
commit
f27ebac6d7
|
@ -18,4 +18,7 @@ echo "Dump structure"
|
|||
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --single-transaction --no-data ${DATABASE} > ${DB_FILE}
|
||||
|
||||
echo "Dump content"
|
||||
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --no-create-info ${DATABASE} ${IGNORED_TABLES_STRING} >> ${DB_FILE}
|
||||
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --no-create-info ${DATABASE} ${IGNORED_TABLES_STRING} >> ${DB_FILE}
|
||||
|
||||
echo "gzip the file"
|
||||
gzip -f ${DB_FILE}
|
|
@ -38,7 +38,6 @@ def get_dump():
|
|||
Note: web1 has been hardcoded here to represent the name of the unglue.it server
|
||||
"""
|
||||
run("./dump.sh")
|
||||
run("gzip -f unglue.it.sql")
|
||||
local("scp web1:/home/ubuntu/unglue.it.sql.gz .")
|
||||
local("gunzip -f unglue.it.sql.gz")
|
||||
|
||||
|
|
Loading…
Reference in New Issue