From 3ede0c7d385d92bebee424ddbe3ed6afa9d93886 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 9 Oct 2024 00:47:06 -0400 Subject: [PATCH] Name mirror snapshots like autobackup snapshots --- daemon-common/vm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index 958d1d28..2ae14835 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -3711,7 +3711,8 @@ def vm_worker_create_mirror( destination_storage_pool, ): now = datetime.now() - snapshot_name = now.strftime("%Y%m%d%H%M%S") + datestring = now.strftime("%Y%m%d%H%M%S") + snapshot_name = f"mr{datestring}" current_stage = 0 total_stages = 1 @@ -4310,7 +4311,8 @@ def vm_worker_promote_mirror( remove_on_source=False, ): now = datetime.now() - snapshot_name = now.strftime("%Y%m%d%H%M%S") + datestring = now.strftime("%Y%m%d%H%M%S") + snapshot_name = f"mr{datestring}" current_stage = 0 total_stages = 1