Updated pathing

This commit is contained in:
2025-12-19 17:42:47 +02:00
parent ea9e592dd1
commit f573723c06
2 changed files with 9 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ PYTHON_BIN=/usr/bin/python3
# Absolute path where the repo is installed
# (directory that contains run_backup.py)
BACKUP_INSTALL_DIR=/usr/local/kvm-backup
BACKUP_INSTALL_DIR=/home/ubuntu/Documents/kvm-backup
# Name of the python entrypoint file
BACKUP_RUNNER=run_backup.py

View File

@@ -7,13 +7,15 @@ import os
# ================= CONFIG =================
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
SCRIPTS = [
"backup_configs.sh",
"backup_home.sh",
"backup_vms.sh",
SCRIPT_DIR / "backup_configs.sh",
SCRIPT_DIR / "backup_home.sh",
SCRIPT_DIR / "backup_vms.sh",
]
LOG_DIR = "job-runner"
LOG_DIR = SCRIPT_DIR / "job-runner"
# ==========================================
@@ -34,7 +36,7 @@ def run_script(script_path, run_ts):
with open(out_file, "wb") as out, open(err_file, "wb") as err:
proc = subprocess.Popen(
["/bin/bash", script_path],
["/bin/bash", str(script_path)],
stdout=out,
stderr=err,
env={