parent
19078abedf
commit
d42dd07a14
|
@ -1,5 +1,5 @@
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
server: 10.7.89.108
|
#server:
|
||||||
user: borg
|
#user:
|
||||||
repository_path: /home/borg/backup/gwyn
|
repository_path: /home/andreas/test
|
||||||
password: 7EMvQ9G4ay7woHXSS5Dt27eZDsnDZu
|
password: foo
|
||||||
|
|
|
@ -44,7 +44,6 @@ def configuration():
|
||||||
# read config file
|
# read config file
|
||||||
config.read('borg_interface.cfg')
|
config.read('borg_interface.cfg')
|
||||||
# assign the repository variable
|
# assign the repository variable
|
||||||
print(config['DEFAULT']['server'])
|
|
||||||
if 'server' in config['DEFAULT']:
|
if 'server' in config['DEFAULT']:
|
||||||
repository = (config['DEFAULT']['user']
|
repository = (config['DEFAULT']['user']
|
||||||
+ "@"
|
+ "@"
|
||||||
|
|
Reference in New Issue