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