From d9e502d22c073593cc37fedfe32a0884d7cde2ae Mon Sep 17 00:00:00 2001 From: jgaunt Date: Wed, 4 Dec 2019 19:43:12 -0500 Subject: [PATCH] Delete 'GauntRouter Backup.sh' --- GauntRouter Backup.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 GauntRouter Backup.sh diff --git a/GauntRouter Backup.sh b/GauntRouter Backup.sh deleted file mode 100644 index 948ef53..0000000 --- a/GauntRouter Backup.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# https://stackoverflow.com/a/185473/1388019 - -lockfile="/tmp/duplicacy.lock" -LOGFILE="/var/log/duplicacy/GauntRouterConfigBackup_$(/bin/date +%Y%m%d-%H%M%S).log" - - -if [ -e ${lockfile} ] && kill -0 `cat ${lockfile}`; then - echo "duplicacy backup already running" >> ${LOGFILE} - exit -fi - -# make sure the lockfile is removed when we exit and then claim it -trap "rm -f ${lockfile}; exit" INT TERM EXIT -echo $$ > ${lockfile} - -# run the backup -cd /cf -/usr/bin/duplicacy -verbose -log backup -stats >> ${LOGFILE} 2>&1 - -# compress the logs -/usr/bin/gzip $(/usr/bin/dirname ${LOGFILE})/*.log - -# clean up lockfile -rm -f ${lockfile} \ No newline at end of file