From eedf9ff29bd4cb9fc63affaf2d38c90f0502c815 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sun, 8 Sep 2019 16:31:23 -0400 Subject: [PATCH] bigdummy backup script --- bigdummy/backup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bigdummy/backup.sh diff --git a/bigdummy/backup.sh b/bigdummy/backup.sh new file mode 100755 index 0000000..e498985 --- /dev/null +++ b/bigdummy/backup.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# GPG key must be imported + +DATE=$(date --iso-8601) +FINGERPRINT=1807F8D422B89582ADEC4A790B1A6ED3E577B121 +ARCHIVE_PATH=/bigdata/archive +SERVICE_PATH=/home/paul/scripts/bigdummy/docker +BACKUP_PATH=/bigdata/backups + +if [ ! -f "$BACKUP_PATH"/linuxjournal.tar.gz ]; then + tar czf "$BACKUP_PATH"/linuxjournal.tar.gz -C "$ARCHIVE_PATH" ./linuxjournal +fi