borgend.py

changeset 4
d72c4844e791
parent 3
4cad934aa9ce
child 8
7b2d2eac6a48
equal deleted inserted replaced
3:4cad934aa9ce 4:d72c4844e791
1 #!/usr/local/bin/python3 1 #!/usr/local/bin/python3
2
3 import logging
4
5 logging.basicConfig(#filename='example.log',
6 format='%(levelname)s:%(message)s',
7 level=logging.DEBUG)
2 8
3 from backup import Backup 9 from backup import Backup
4 from config import settings 10 from config import settings
5 from queue import Queue 11 from queue import Queue
6 import ui 12 import ui
7 #import scheduler
8 13
9 if __name__ == "__main__": 14 if __name__ == "__main__":
10 #print(settings) 15 #print(settings)
11 #BorgendTray("Borgend").run() 16 #BorgendTray("Borgend").run()
12 pass 17 pass
13 18
14 backupconfigs=settings['backups'] 19 backupconfigs=settings['backups']
15 backups=[None]*len(backupconfigs); 20 backups=[None]*len(backupconfigs);
16 21
17 for i in range(len(backupconfigs)): 22 for i in range(len(backupconfigs)):
23 logging.info('Setting up backup set %d' % i)
18 backups[i]=Backup(i, backupconfigs[i]) 24 backups[i]=Backup(i, backupconfigs[i])
19 25
20 queue=Queue() 26 queue=Queue()
21 backups[0].create(queue) 27 backups[0].create(queue)
22 28

mercurial