new features
This commit is contained in:
@@ -212,6 +212,8 @@ class SchedulerService:
|
||||
with SessionLocal() as db:
|
||||
routers = db.query(Router).all()
|
||||
for router in routers:
|
||||
if router.disable_all_backups or router.disable_export_backups:
|
||||
continue
|
||||
try:
|
||||
backup_service.export_router(db, type('U', (), {'id': router.owner_id})(), router.id)
|
||||
except Exception as exc:
|
||||
@@ -221,6 +223,8 @@ class SchedulerService:
|
||||
with SessionLocal() as db:
|
||||
routers = db.query(Router).all()
|
||||
for router in routers:
|
||||
if router.disable_all_backups or router.disable_binary_backups:
|
||||
continue
|
||||
try:
|
||||
backup_service.binary_backup(db, type('U', (), {'id': router.owner_id})(), router.id)
|
||||
except Exception as exc:
|
||||
|
||||
Reference in New Issue
Block a user