This topic is under construction for the 19.1 release of LabKey Server. For current documentation of this feature, click here.

You can export a folder to an archive format and later re-import it into a different project/context.

A few common usage scenarios:
  • Create a folder template for standardizing structure.
  • Transfer a folder from a staging / testing environment to a production platform.
  • Export a selected subset of a folder, such as excluding columns tagged as containing protected health information to enable sharing of results without compromising PHI.
You can choose to include the datasets, views, and reports, as well as much of the original folder's configuration. See the screen shot below for items that can be included in the folder archive.

Export

  • To export a folder, go to (Admin) > Folder > Management and click the Export tab.
  • Select the objects to export.
  • Choose the options required.
  • Select where to export the archive file.
  • Click Export.

There are additional options available when the folder is a study. For more about exporting and importing a study, see Import, Export, and Reload a Study.

Folder objects to export

When each of the following options is checked, the specified content will be included in the archive. Some options will only be shown when relevant content is present.

  • Folder type and active modules: The options set on the "Folder Type" tab.
  • Full-text search settings: The settings on the "Search" tab.
  • Webpart properties and layout: Page layouts and settings.
  • Container specific module properties: Settings on the "Module Properties" tab.
  • Project-level groups and members (Only available for project exports)
  • Role assignments for users and groups: See Export and Import Permission Settings.
  • Queries: Shared queries. Note that private queries are not included in the archive.
  • Grid Views: Shared grid views. Note that private grid views are not included in the archive.
  • Reports and Charts: Shared reports and charts. Private ones are not included in the archive.
  • External schema definitions: External schemas defined via the Schema Browser.
  • Experiments and runs: Check to include assay data. Note that exported assay data uses the originally uploaded data file. Any deleted or edited data rows in the assay will not be reflected in the exported data. In cases where there is no original data file, such as when the assay runs were created via a client API call, no assay data will be included in the export.
  • ETL Definitions (Premium feature): Extract-transform-load definitions.
  • Lists: Both definition and content of lists.
  • Wikis and their attachments
  • Notification settings: The settings on the "Notifications" tab.
  • Files: The contents of the file repository.
  • Missing value indicators: The settings on the "Missing Values" tab.
  • Study (Only present in study folders): For more information about study export, see Export a Study.

Select Export Options

Whether to Include Subfolders in your archive is optional; this option is only presented when subfolders exist.

You can also choose to exclude protected health information (PHI) at different levels. This exclusion applies to all dataset and list columns, study properties, and specimen data columns that have been tagged at a specific PHI level. By default, all data is included in the exported folder.

  • Include PHI Columns:
    • Uncheck to exclude all columns marked as containing any level of PHI.
    • Check to include some or all PHI, then select the level of PHI to include:
      • Restricted, Full, and Limited PHI: Include all data.
      • Full and Limited PHI: Exclude any columns marked Restricted.
      • Limited PHI: Exclude only Restricted columns.
Similar PHI functionality is available when publishing a study. For more details see Publish a Study: Protected Health Information / PHI.
To tag a field at a specific PHI level, see Field Properties Reference.

Select an Export Destination

Under Export to:, select one the export destination:

    • Pipeline root export directory, as individual files.
    • Pipeline root export directory, as a zip file.
    • Browser as a zip file.
You can place more than one folder archive in a directory if you give them different names.

Character Encoding

Study, list, and folder archives are all written using UTF-8 character encoding for text files. Imported archives are parsed as UTF-8.

Items Not Included in Archives

The following items are not included when exporting to a folder archive:

  • Query Metadata XML: Metadata XML applied to queries in the Schema Browser is not exported to the folder archive. Metadata applied to fields is exported to the folder archive.
  • Sample Sets
  • ETL Definitions: In LabKey Server release 18.3 and prior versions, ETL Definitions are not included in folder export. Beginning with release 19.1, these definitions will be included in folder archives when the dataintegration premium module is included in your server.
When importing the archive into another container, the items above must be migrated manually.

Import

When you import a folder archive, a new subfolder is not created. Instead the configuration and contents are imported into the current folder, so be sure not to import into the parent folder of your intended location. To create the imported folder as a subfolder, first create a new empty folder, navigate to it, then import the archive there.

  • To import a folder archive, go to (Admin) > Folder > Management and click the Import tab.
  • You can import from your local machine or from a server accessible location.

Import Folder From Local Source

  • Local zip archive: check this option, then Browse or Choose an exported folder archive to import.
  • Existing folder: select this option to bypass the step of exporting to an archive and directly import selected objects from an existing folder on the server. Note that this option does not support the import of specimen or dataset data from a study folder.

Both import options offer two further selections:

  • Validate All Queries After Import: When selected, and by default, queries will be validated upon import and any failure to validate will cause the import job to raise an error. If you are using the check-for-reload action in the custom API, there is a suppress query validation parameter that can be used to achieve the same effect as unchecking this box in the check for reload action. During import, any error messages generated are noted in the import log file for easy analysis of potential issues.
  • Show Advanced Import Options: When this option is checked, after clicking Import Folder, you will have the further opportunity to:
    • Select specific objects to import
    • Apply the import to multiple folders

If the folder contains a study, you will have an additional option:

    • Fail import for undefined visits: when you import a study archive, you can elect to cancel the import if any imported dataset or specimen data belongs to a visit not already defined in the destination study or the visit map included in the imported archive. Otherwise, new visits would be automatically created.

Select Specific Objects to Import

By default, all objects and settings from an import archive will be included. For import from a template folder, all except dataset data and specimen data will be included. If you would like to import a subset instead, check the box to Select specific objects to import. You will see the full list of folder archive objects (similar to those you saw in the export options above) and use checkboxes to elect which objects to import. Objects not available in the archive or template folder will be disabled and shown in gray for clarity.

This option is particularly helpful if you want to use an existing archive or folder as a structural or procedural template when you create a new empty container for new research.

Apply to Multiple Folders

[ Video Overview: Applying Study Templates Across Multiple Folders - Version 16.3 ]

By default, the imported archive is applied only to the current folder. If you would like to apply this imported archive to multiple folders, check Apply to multiple folders and you will see the list of all folders in the project. Use checkboxes to select all the folders to which you want the imported archive applied.

Note that if your archive includes subfolders, they will not be applied when multiple folders are selected for the import.

This option is useful when you want to generate a large number of folders with the same objects, and in conjunction with the selection of a subset of folder options above, you can control which objects are applied. For instance, if a change in one study needs to be propagated to a large number of other active studies, this mechanism can allow you to propagate that change. The option "Selecting parent folders selects all children" can make it easier to use a template archive for a large number of child folders.

When you import into multiple folders, a separate pipeline job is started for each selected container.

Import Folder from Server-Accessible Archive

Click Use Pipeline to select the server-accessible archive to import.

Related Topics

Discussion

Was this content helpful?

Log in or register an account to provide feedback


previousnext
 
expand all collapse all