From 037105970668d3e8953399c1d9df979af039426f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 28 Nov 2025 15:05:35 -0700 Subject: [PATCH] Match tag exactly for deletion by only checking what's between the periods. --- bin/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/backup.sh b/bin/backup.sh index af39b4a..8bc3314 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -60,7 +60,7 @@ chown -Rv root:root "$BACKUP_DIR" # Remove the last backup. echo "`date` - Removing existing files." cd "$BACKUP_DIR" -mv -v "$BASENAME"*"$TAG"* TRASH/ +mv -v "$BASENAME."*".$TAG."* TRASH/ rm -v TRASH/* if [[ "$down" == "TRUE" ]]; then