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