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:
parent
f82000aa33
commit
79661c6a32
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@
|
||||
/pillar/pillar.egg-info/
|
||||
/pillar/google_app.json
|
||||
profile.stats
|
||||
/dump/
|
||||
|
3
backup-db.sh
Executable file
3
backup-db.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
mongodump -h localhost:27018 -d eve --out dump/$(date +'%Y-%m-%d-%H%M') --excludeCollection tokens
|
Loading…
x
Reference in New Issue
Block a user