|
@@ -19,9 +19,8 @@ def generate_configuration(config_path, repository_path):
|
|
open(config_path)
|
|
open(config_path)
|
|
.read()
|
|
.read()
|
|
.replace('ssh://user@backupserver/./sourcehostname.borg', repository_path)
|
|
.replace('ssh://user@backupserver/./sourcehostname.borg', repository_path)
|
|
- .replace('- ssh://user@backupserver/./{fqdn}', '')
|
|
|
|
- .replace('- /var/local/backups/local.borg', '')
|
|
|
|
- .replace('- /home/user/path with spaces', '')
|
|
|
|
|
|
+ .replace('- path: /mnt/backup', '')
|
|
|
|
+ .replace('label: local', '')
|
|
.replace('- /home', '- {}'.format(config_path))
|
|
.replace('- /home', '- {}'.format(config_path))
|
|
.replace('- /etc', '')
|
|
.replace('- /etc', '')
|
|
.replace('- /var/log/syslog*', '')
|
|
.replace('- /var/log/syslog*', '')
|