Esempio n. 1
0
 def post(self, request):
     logger.debug("backing up config...")
     with self._handle_exception(request):
         cbo = backup_config()
         return Response(ConfigBackupSerializer(cbo).data)
Esempio n. 2
0
def main():
    cbo = backup_config()
    print('config exported to: "%s"' % cbo.full_path())
Esempio n. 3
0
 def post(self, request):
     logger.debug('backing up config...')
     with self._handle_exception(request):
         cbo = backup_config()
         return Response(ConfigBackupSerializer(cbo).data)
Esempio n. 4
0
def main():
    cbo = backup_config()
    print('config exported to: "%s"' % cbo.full_path())