Fix issues with backups, tweak vim settings

This commit is contained in:
Andrew Miner
2017-07-24 21:23:29 -07:00
parent dc81e990f1
commit 0484aec9cc
5 changed files with 104 additions and 6 deletions
+2 -3
View File
@@ -10,8 +10,7 @@ STARTED_DATE=$(date)
[[ -x "$BACKUP_COMMANDS" ]] || die "Could not find $BACKUP_COMMANDS"
echo "Starting backup at $STARTED_DATE..."
echo "Mounting backup volume..."
./backup-unmount.sh || die
./backup-mount.sh || die
[[ -d "$LOCAL_MOUNT" ]] || die "Could find $LOCAL_MOUNT"
@@ -29,6 +28,6 @@ if [[ "$?" != 0 ]]; then
tail -n10 "$LOCAL_MOUNT/backup.log"
fi
./backup-unmount.sh || echo "WARNING: Could not unmount $LOCAL_MOUNT! Please check into this!"
#./backup-unmount.sh || echo "WARNING: Could not unmount $LOCAL_MOUNT! Please check into this!"
echo "Finished backing up at $(date)."
+1
View File
@@ -10,3 +10,4 @@ if mount | grep -q "$LOCAL_MOUNT"; then
fi
[[ -e "$LOCAL_MOUNT" ]] && rm -r "$LOCAL_MOUNT"
exit 0