Skip to content

Commit

Permalink
feat: Use timestamp in snapshot name
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Aug 5, 2022
1 parent f20e094 commit 79bf6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 79bf6bd

Please sign in to comment.