fix: add keep_last param to backup API and fix notes-template field name

This commit is contained in:
markmorado
2026-03-22 20:07:50 +01:00
parent 4ef79112be
commit 06ea2b5bd4
2 changed files with 4 additions and 2 deletions

View File

@@ -268,12 +268,14 @@ async def create_backup(
compress = data.get("compress", "zstd")
remove = int(data.get("remove", 1))
notes = data.get("notes")
keep_last = data.get("keep_last")
try:
client = _get_proxmox_client(server)
result = client.create_backup(
node=node, vmid=int(vmid), storage=storage,
mode=mode, compress=compress, remove=remove, notes=notes,
mode=mode, compress=compress, remove=remove,
keep_last=keep_last, notes=notes,
)
if result.get("success"):
LoggingService.log_proxmox_action(