public void export(String toDirectory) throws IOException {
        if (!schema.isDocumentsOnly()) {
            summaries.export(toDirectory);
            juniperrc.export(toDirectory);
            attributeFields.export(toDirectory);
            streamingFields.export(toDirectory);
            streamingSummary.export(toDirectory);
            indexSchema.export(toDirectory);
            rankProfileList.export(toDirectory);
            indexingScript.export(toDirectory);
            indexInfo.export(toDirectory);
            importedFields.export(toDirectory);
            schemaInfo.export(toDirectory);
        }
    }
Exports a complete set of configuration-server format config files.

@param toDirectory  the directory to export to, current dir if null
@throws IOException if exporting fails, some files may still be created
config-model/src/main/java/com/yahoo/schema/derived/DerivedConfiguration.java