From fb2e1df2338e1aa58b8cc20244f941837bc5f68b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 26 Dec 2023 19:21:01 +0100 Subject: [PATCH] Solved parameter bug --- backup-docker-to-local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup-docker-to-local.py b/backup-docker-to-local.py index 83d4ef3..e340c46 100644 --- a/backup-docker-to-local.py +++ b/backup-docker-to-local.py @@ -25,9 +25,9 @@ def get_machine_id(): """Get the machine identifier.""" return execute_shell_command("sha256sum /etc/machine-id")[0][0:64] -def create_version_directory(base_dir, machine_id, repository_name, backup_time): +def create_version_directory(versions_dir, backup_time): """Create necessary directories for backup.""" - version_dir = os.path.join(base_dir, machine_id, repository_name, backup_time) + version_dir = os.path.join(versions_dir, backup_time) pathlib.Path(version_dir).mkdir(parents=True, exist_ok=True) return version_dir