Fix broken end-to-end test.
This commit is contained in:
parent
97af16bd86
commit
b619bde037
2 changed files with 5 additions and 4 deletions
|
@ -28,10 +28,10 @@ map:
|
|||
Paths to local or remote repositories (required). Tildes are
|
||||
expanded. Multiple repositories are backed up to in
|
||||
sequence. Borg placeholders can be used. See the output of
|
||||
"borg help placeholders" for details.
|
||||
See ssh_command for SSH options like identity file or port.
|
||||
If systemd service is used, then add local repository paths
|
||||
in the systemd service file to the ReadWritePaths list.
|
||||
"borg help placeholders" for details. See ssh_command for
|
||||
SSH options like identity file or port. If systemd service
|
||||
is used, then add local repository paths in the systemd
|
||||
service file to the ReadWritePaths list.
|
||||
example:
|
||||
- user@backupserver:sourcehostname.borg
|
||||
- "user@backupserver:{fqdn}"
|
||||
|
|
|
@ -19,6 +19,7 @@ def generate_configuration(config_path, repository_path):
|
|||
open(config_path)
|
||||
.read()
|
||||
.replace('user@backupserver:sourcehostname.borg', repository_path)
|
||||
.replace('- user@backupserver:{fqdn}', '')
|
||||
.replace('- /home', '- {}'.format(config_path))
|
||||
.replace('- /etc', '')
|
||||
.replace('- /var/log/syslog*', '')
|
||||
|
|
Loading…
Reference in a new issue