Skip to content

Commit dcdc29a

Browse files
committed
prefix snapshot name with 'Backup', remove colons in timestamp
1 parent 100e9ad commit dcdc29a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libqmpbackup/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,9 @@ def snapshot_rebase(argv):
372372
timestamp = int(os.path.getctime(image))
373373

374374
snapshot_name = datetime.datetime.fromtimestamp(timestamp).strftime(
375-
"%Y-%m-%d-%H:%M:%S"
375+
"%Y-%m-%d-%H%M%S"
376376
)
377+
snapshot_name = f"Backup {snapshot_name}"
377378

378379
try:
379380
snapshot_cmd = f'qemu-img snapshot -c "{snapshot_name}" "{images[0]}"'

0 commit comments

Comments
 (0)