Added script for backing up the live MongoDB.

Assumes you have an SSH tunnel to cloudapi.blender.org with
localhost:27018 forwarded to localhost-at-other-side:27017, like:

	ssh cloudapi.blender.org -L 27018:localhost:27017
This commit is contained in:
2016-06-08 11:55:22 +02:00
parent f82000aa33
commit 79661c6a32
2 changed files with 4 additions and 0 deletions

3
backup-db.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
mongodump -h localhost:27018 -d eve --out dump/$(date +'%Y-%m-%d-%H%M') --excludeCollection tokens