Merge branch 'dj18' into postdj18
commit
9138835be7
|
@ -1,2 +1,21 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
mysqldump -h production.cboagmr25pjs.us-east-1.rds.amazonaws.com -u root --password=unglue1t --ignore-table=unglueit.core_key unglueit
|
PASSWORD=unglue1t
|
||||||
|
HOST=production.cboagmr25pjs.us-east-1.rds.amazonaws.com
|
||||||
|
USER=root
|
||||||
|
DATABASE=unglueit
|
||||||
|
DB_FILE=unglue.it.sql
|
||||||
|
EXCLUDED_TABLES=(
|
||||||
|
core_key
|
||||||
|
)
|
||||||
|
|
||||||
|
IGNORED_TABLES_STRING=''
|
||||||
|
for TABLE in "${EXCLUDED_TABLES[@]}"
|
||||||
|
do :
|
||||||
|
IGNORED_TABLES_STRING+=" --ignore-table=${DATABASE}.${TABLE}"
|
||||||
|
done
|
||||||
|
|
||||||
|
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}
|
|
@ -37,7 +37,7 @@ def get_dump():
|
||||||
"""Dump the current db on remote server and scp it over to local machine.
|
"""Dump the current db on remote server and scp it over to local machine.
|
||||||
Note: web1 has been hardcoded here to represent the name of the unglue.it server
|
Note: web1 has been hardcoded here to represent the name of the unglue.it server
|
||||||
"""
|
"""
|
||||||
run("./dump.sh > unglue.it.sql ")
|
run("./dump.sh")
|
||||||
run("gzip -f unglue.it.sql")
|
run("gzip -f unglue.it.sql")
|
||||||
local("scp web1:/home/ubuntu/unglue.it.sql.gz .")
|
local("scp web1:/home/ubuntu/unglue.it.sql.gz .")
|
||||||
local("gunzip -f unglue.it.sql.gz")
|
local("gunzip -f unglue.it.sql.gz")
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{% block news %}
|
{% block news %}
|
||||||
<div class="launch_top">
|
<div class="launch_top">
|
||||||
We estimate that we will be back online at 2:00 pm EDT on Saturday, March 30, 2013.
|
We estimate that we will be back online at 7:00 pm PDT on Saturday, Sept 3, 2016.
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ DATABASES = {
|
||||||
'NAME': 'unglueit',
|
'NAME': 'unglueit',
|
||||||
'USER': 'root',
|
'USER': 'root',
|
||||||
'PASSWORD': 'forgetn0t',
|
'PASSWORD': 'forgetn0t',
|
||||||
'HOST': 'justdb.cboagmr25pjs.us-east-1.rds.amazonaws.com',
|
'HOST': 'justdb1.cboagmr25pjs.us-east-1.rds.amazonaws.com',
|
||||||
'PORT': '',
|
'PORT': '',
|
||||||
'TEST_CHARSET': 'utf8'
|
'TEST_CHARSET': 'utf8'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue