17 backups=[None]*len(backupconfigs); |
17 backups=[None]*len(backupconfigs); |
18 |
18 |
19 for i in range(len(backupconfigs)): |
19 for i in range(len(backupconfigs)): |
20 logging.info('Setting up backup set %d' % i) |
20 logging.info('Setting up backup set %d' % i) |
21 backups[i]=Backup(i, backupconfigs[i]) |
21 backups[i]=Backup(i, backupconfigs[i]) |
22 |
22 backups[i].schedule() |
23 queue=Queue() |
|
24 #print(backups[0].create(queue)) |
|
25 backups[0].schedule() |
|
26 |
|
27 #backups[0].join() |
|
28 |
23 |
29 if __name__ == "__main__": |
24 if __name__ == "__main__": |
30 #print(settings) |
25 #print(settings) |
31 tray=BorgendTray("Borgend", backups); |
26 tray=BorgendTray("Borgend", backups); |
32 tray.run() |
27 tray.run() |
|
28 pass |
33 |
29 |
34 # |
30 # |
35 # This shit is fucked, disables ^C etc., and threading doesn't seem to help |
31 # This shit is fucked, disables ^C etc., and threading doesn't seem to help |
36 # |
32 # |
37 |
33 |