borgend.py

changeset 43
8f3ac19f11b6
parent 41
e2641cb9ca6d
child 45
aa2a95dc6093
equal deleted inserted replaced
42:00accd11978b 43:8f3ac19f11b6
2 2
3 import os 3 import os
4 import logging 4 import logging
5 import logging.handlers 5 import logging.handlers
6 import argparse 6 import argparse
7 import platform
7 from fifolog import FIFOHandler 8 from fifolog import FIFOHandler
8 9
9 # 10 #
10 # Branding 11 # Branding
11 # 12 #
85 for i in range(len(backupconfigs)): 86 for i in range(len(backupconfigs)):
86 logger.info('Setting up backup set %d' % i) 87 logger.info('Setting up backup set %d' % i)
87 backups[i]=Backup(i, backupconfigs[i]) 88 backups[i]=Backup(i, backupconfigs[i])
88 backups[i].schedule() 89 backups[i].schedule()
89 90
90 if args.notray: 91 if args.notray or platform.system()!='Darwin':
91 pass 92 pass
92 else: 93 else:
93 from ui import BorgendTray 94 from ui import BorgendTray
94 tray=BorgendTray(backups); 95 tray=BorgendTray(backups);
95 tray.run() 96 tray.run()

mercurial