This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Default working directory to current directory, but allow override via WORKDIR environment variable. | |
WORKDIR=${WORKDIR:-$PWD} | |
NOW="$(date +%s)" | |
INFLUXDIR="$WORKDIR/influxdb-$NOW" | |
BACKUPDIR="$WORKDIR/backup-$NOW" |