Solved array bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-09 13:18:17 +01:00
parent 2b716e5d90
commit d537393da8

View File

@ -142,7 +142,7 @@ def get_last_backup_dir(volume_name, current_backup_dir):
return None return None
def getStoragePath(volume_name): def getStoragePath(volume_name):
return execute_shell_command(f"docker volume inspect --format '{{{{ .Mountpoint }}}}' {volume_name}") return execute_shell_command(f"docker volume inspect --format '{{{{ .Mountpoint }}}}' {volume_name}")[0]
def backup_volume(volume_name, volume_dir): def backup_volume(volume_name, volume_dir):
"""Backup files of a volume with incremental backups.""" """Backup files of a volume with incremental backups."""