use config value instead of hardcoded value
This commit is contained in:
parent
849471b510
commit
3a43b3383b
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ class BackupManager:
|
||||||
backup_user = self._config["BACKUP_USER"]
|
backup_user = self._config["BACKUP_USER"]
|
||||||
hostname = os.uname().nodename
|
hostname = os.uname().nodename
|
||||||
borg_env = os.environ.copy()
|
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"]
|
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}}}"
|
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}"
|
cmd = f"borg create -v --stats {repo} {backup_dirs} --exclude {exclude_dirs}"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class BackupManager:
|
||||||
backup_user = self._config["BACKUP_USER"]
|
backup_user = self._config["BACKUP_USER"]
|
||||||
hostname = os.uname().nodename
|
hostname = os.uname().nodename
|
||||||
borg_env = os.environ.copy()
|
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"]
|
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}}}"
|
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}"
|
cmd = f"borg create -v --stats {repo} {backup_dirs} --exclude {exclude_dirs}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue