code: public void exportResources(String exportFile, String pathList, boolean isReducedExportMode) throws Exception {
  
          StringTokenizer tok = new StringTokenizer(pathList, ";");
          List<String> exportPaths = new ArrayList<String>();
          while (tok.hasMoreTokens()) {
              exportPaths.add(tok.nextToken());
          }
          boolean includeSystem = false;
          if (pathList.startsWith(CmsWorkplace.VFS_PATH_SYSTEM)
              || (pathList.indexOf(";" + CmsWorkplace.VFS_PATH_SYSTEM) > -1)) {
              includeSystem = true;
          }
  
          CmsVfsImportExportHandler vfsExportHandler = new CmsVfsImportExportHandler();
          CmsExportParameters params = new CmsExportParameters(
              exportFile,
              null,
              true,
              false,
              false,
              exportPaths,
              includeSystem,
              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 a list of resources from the current site root to a ZIP file.<p>
  
  The resource names in the list must be separated with a ";".<p>
  
  @param exportFile the name (absolute path) of the ZIP file to export to
  @param pathList the list of resource to export, separated with a ";"
  @param isReducedExportMode flag, indicating if the reduced export mode should be used
  @throws Exception if something goes wrong