mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
404 B
17 lines
404 B
|
9 years ago
|
#!/bin/bash
|
||
|
|
|
||
|
|
# get wekan/mongo settings
|
||
|
|
source $SNAP/bin/wekan-read-settings
|
||
|
|
|
||
|
|
# make sure we have set minimum env variables for locale
|
||
|
|
if [ -z "$LANG" ]; then
|
||
|
|
export LANG=en_US.UTF-8
|
||
|
|
fi
|
||
|
|
|
||
|
|
export LC_ALL=C
|
||
|
|
|
||
|
|
# start mongodb backup
|
||
|
|
[ "x" == "x${MONGODB_BIND_IP}" ] && MONGODB_BIND_IP="127.0.0.1"
|
||
|
|
echo "using bind ip"
|
||
|
|
mongorestore --host $MONGODB_BIND_IP --port $MONGODB_PORT -d wekan --gzip --archive=$1
|