diff --git a/stream8_backups/backup.sh b/stream8_backups/backup.sh index b225b716332c2693267370f9ef34f47f57edbceb..aca6761fa468b7177b090dbe510811dd0c18b276 100755 --- a/stream8_backups/backup.sh +++ b/stream8_backups/backup.sh @@ -8,11 +8,8 @@ source common.sh EXCLUDE_LIST=`mktemp` RESTIC_LOGFILE=`mktemp` -$RESTIC snapshots > /dev/null -if [[ $? -ne 0 ]]; then - echo "Lock detected, attempting to unlock" | tee -a $RESTIC_LOGFILE - $RESTIC unlock 2>&1 | tee -a $RESTIC_LOGFILE -fi +echo "Unlocking, just in case" | tee -a $RESTIC_LOGFILE +$RESTIC unlock 2>&1 | tee -a $RESTIC_LOGFILE find $SOURCE -mindepth 1 -maxdepth 1 \( -type l -o -type d \) ! -path "*$TODAY" > $EXCLUDE_LIST echo "Performing backup..."