mongodb-restore 404 B

12345678910111213141516
  1. #!/bin/bash
  2. # get wekan/mongo settings
  3. source $SNAP/bin/wekan-read-settings
  4. # make sure we have set minimum env variables for locale
  5. if [ -z "$LANG" ]; then
  6. export LANG=en_US.UTF-8
  7. fi
  8. export LC_ALL=C
  9. # start mongodb backup
  10. [ "x" == "x${MONGODB_BIND_IP}" ] && MONGODB_BIND_IP="127.0.0.1"
  11. echo "using bind ip"
  12. mongorestore --host $MONGODB_BIND_IP --port $MONGODB_PORT -d wekan --gzip --archive=$1