pillar/backup-db.sh

4 lines
118 B
Bash
Executable File

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