From 79bf6bdcd8eab9af6bf010e5c7d9a535001ddb5e Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Fri, 5 Aug 2022 08:11:30 +0200 Subject: [PATCH] feat: Use timestamp in snapshot name --- container/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/backup.sh b/container/backup.sh index e560cc1..8e46ab0 100644 --- a/container/backup.sh +++ b/container/backup.sh @@ -83,7 +83,7 @@ then for DISK in ${MANAGED_DISKS} do DISKNAME=$(echo "${DISK}" | cut -d ":" -f 1) - NAME=${DISKNAME//disk/snap} + NAME="${DISKNAME//disk/snap}-$(date +%F-%T)" DISKURI=$(echo "${DISK}" | cut -d ":" -f 2) RESOURCEGROUP=$(echo "${DISK}" | cut -d ":" -f 3) echo "Creating snapshot ${NAME}"