Browse Source

Update backup-volumes.py

master
Sean Johnson 2 years ago
parent
commit
be96be9465
  1. 5
      resource/tools/backup-volumes.py

5
resource/tools/backup-volumes.py

@ -134,10 +134,13 @@ async def perform_volume_snapshot(vol_name: str, vol_data: dict):
async def perform_snapshot_backup(volume_name: str, snapshot_name: str):
await get_proc_response(await convoy(
backup_uri = await get_proc_response(await convoy(
"backup", "create", "--dest", BACKUP_DESTINATION, snapshot_name,
), json_decode=False)
log_stdout(f"Backup created at destination: {backup_uri}")
return backup_uri
async def clean_older_backups(vol_name: dict):
if KEEP_LAST_BACKUPS == -1:

Loading…
Cancel
Save