15 lines
259 B
Plaintext
15 lines
259 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
BINDIR=$(dirname "$0")
|
||
|
cd "$BINDIR"
|
||
|
|
||
|
DUMP_DIR="/var/backups/dumps/"
|
||
|
|
||
|
if [ $(find "$DUMP_DIR" -cmin -120 -type d | wc -l) -eq 0 ]; then
|
||
|
./dump-psql
|
||
|
./dump-msql
|
||
|
./dump-influx
|
||
|
else
|
||
|
echo "Very recent dump detected, dumps skipped."
|
||
|
fi
|