eventman/docker-tools/mongodump/run.sh

6 lines
147 B
Bash
Executable file

#!/bin/sh
mongodump --host eventman-mongo --out /tmp/ --db eventman
cd /tmp
tar cfz /data/eventman-dump-`date +'%Y-%m-%dT%H.%M.%S'`.tgz eventman