gzip file in dump.sh

pull/1/head
Raymond Yee 2016-11-14 07:52:50 -08:00
parent 5572608b39
commit f27ebac6d7
2 changed files with 4 additions and 2 deletions

View File

@ -19,3 +19,6 @@ mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --single-transact
echo "Dump content"
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --no-create-info ${DATABASE} ${IGNORED_TABLES_STRING} >> ${DB_FILE}
echo "gzip the file"
gzip -f ${DB_FILE}

1
fabfile.py vendored
View 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")