From 654bc34204dfe9e802490e57db8c5f3224760657 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Fri, 2 Aug 2024 15:55:36 -0400 Subject: [PATCH] Update backup script to start a new backup, but replace the old-typofix --- gentoo-backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gentoo-backup.sh b/gentoo-backup.sh index 98df377..f090ec6 100755 --- a/gentoo-backup.sh +++ b/gentoo-backup.sh @@ -23,10 +23,10 @@ if [[ "$?" -ne 0 ]]; then echo "ERROR: Backup failure" exit 1 else - if [[ -f "/var/backup/$bhost-stage4.zst" ]]; then - rm -f "/var/backup/$bhost-stage4.zst" + if [[ -f "/var/backup/$bhost-stage4.tar.zst" ]]; then + rm -f "/var/backup/$bhost-stage4.tar.zst" fi - mv "/var/backup/$bhost-stage4-$bdate.zst" "/var/backup/$bhost-stage4.zst" + mv "/var/backup/$bhost-stage4-$bdate.tar.zst" "/var/backup/$bhost-stage4.tar.zst" fi popd &>/dev/null || exit 2