use config value instead of hardcoded value

This commit is contained in:
Thies Lennart Alff 2025-01-02 23:14:02 +01:00
parent 849471b510
commit 3a43b3383b
Signed by: lennartalff
GPG key ID: 4EC67D34D594104D
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ class BackupManager:
backup_user = self._config["BACKUP_USER"]
hostname = os.uname().nodename
borg_env = os.environ.copy()
borg_env["BORG_RSH"] = "ssh -i /home/lennartalff/.ssh/borg.ed25519"
borg_env["BORG_RSH"] = self._config["BORG_RSH"]
borg_env["BORG_PASSPHRASE"] = self._config["BORG_PASSPHRASE"]
repo = f"ssh://{backup_user}@{backup_user}.your-storagebox.de:23/./backups/{hostname}/{repo_subdir}::{{{time_format}}}"
cmd = f"borg create -v --stats {repo} {backup_dirs} --exclude {exclude_dirs}"

View file

@ -40,7 +40,7 @@ class BackupManager:
backup_user = self._config["BACKUP_USER"]
hostname = os.uname().nodename
borg_env = os.environ.copy()
borg_env["BORG_RSH"] = "ssh -i /home/lennartalff/.ssh/borg.ed25519"
borg_env["BORG_RSH"] = self._config["BORG_RSH"]
borg_env["BORG_PASSPHRASE"] = self._config["BORG_PASSPHRASE"]
repo = f"ssh://{backup_user}@{backup_user}.your-storagebox.de:23/./backups/{hostname}/{repo_subdir}::{{{time_format}}}"
cmd = f"borg create -v --stats {repo} {backup_dirs} --exclude {exclude_dirs}"