init commit

This commit is contained in:
Vassiliy Yegorov
2020-02-17 13:12:09 +07:00
commit 5a5edbfd43
15 changed files with 512 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
db_backup() {
cd /tmp
mkdir 1/
mongodump -v --host="${DBHOST}" --port=27017 --out=/tmp/1
cd /tmp/1
tar zcfv ../mongo_backup.tgz .
cd ..
mv mongo_backup.tgz ${ARCHIVE}
rm -rf /tmp/1
}