59 scheduler = Scheduler() |
59 scheduler = Scheduler() |
60 scheduler.start() |
60 scheduler.start() |
61 |
61 |
62 repoconfigs=config.settings['repositories'] |
62 repoconfigs=config.settings['repositories'] |
63 |
63 |
|
64 logger.info('Initialising repositories') |
64 for i in range(len(repoconfigs)): |
65 for i in range(len(repoconfigs)): |
65 logger.info('Setting up repository %d' % i) |
|
66 r=Repository(i, repoconfigs[i]) |
66 r=Repository(i, repoconfigs[i]) |
67 repos.append(r) |
67 repos.append(r) |
68 |
68 |
69 backupconfigs=config.settings['backups'] |
69 backupconfigs=config.settings['backups'] |
70 |
70 |
|
71 logger.info('Initialising backups') |
71 for i in range(len(backupconfigs)): |
72 for i in range(len(backupconfigs)): |
72 logger.info('Setting up backup set %d' % i) |
|
73 b=Backup(i, backupconfigs[i], scheduler) |
73 b=Backup(i, backupconfigs[i], scheduler) |
74 backups.append(b) |
74 backups.append(b) |
75 |
75 |
76 if args.notray or platform.system()!='Darwin': |
76 if args.notray or platform.system()!='Darwin': |
77 # Wait for scheduler to finish |
77 # Wait for scheduler to finish |