code: public void exportAllResources(String exportFile, boolean isReducedExportMode) throws Exception {
  
          List<String> exportPaths = new ArrayList<String>(1);
          exportPaths.add("/");
  
          CmsVfsImportExportHandler vfsExportHandler = new CmsVfsImportExportHandler();
          CmsExportParameters params = new CmsExportParameters(
              exportFile,
              null,
              true,
              false,
              false,
              exportPaths,
              true,
              true,
              0,
              true,
              false,
              isReducedExportMode ? ExportMode.REDUCED : ExportMode.DEFAULT);
          vfsExportHandler.setExportParams(params);
  
          OpenCms.getImportExportManager().exportData(
              m_cms,
              vfsExportHandler,
              new CmsShellReport(m_cms.getRequestContext().getLocale()));
      }
docs: Exports all resources from the current site root to a ZIP file.<p>
  
  @param exportFile the name (absolute path) of the ZIP file to export to
  @param isReducedExportMode flag, indicating if the reduced export mode should be used
  @throws Exception if something goes wrong