pillar/backup-db.sh
Sybren A. Stüvel 79661c6a32 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
2016-06-08 11:55:22 +02:00

4 lines
112 B
Bash
Executable File

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