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