borgend.py

Fri, 19 Jan 2018 14:42:27 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 19 Jan 2018 14:42:27 +0000
changeset 3
4cad934aa9ce
parent 2
e343594c0014
child 4
d72c4844e791
permissions
-rwxr-xr-x

Can launch borg now; output not yet processed

#!/usr/local/bin/python3

from backup import Backup
from config import settings
from queue import Queue
import ui
#import scheduler

if __name__ == "__main__":
    #print(settings)
    #BorgendTray("Borgend").run()
    pass

backupconfigs=settings['backups']
backups=[None]*len(backupconfigs);

for i in range(len(backupconfigs)):
    backups[i]=Backup(i, backupconfigs[i])

queue=Queue()
backups[0].create(queue)

backups[0].join()

mercurial