Skip to content

Export and import

You can export the content of a notebook as a file, and use an exported file to restore pages or create a new notebook. Exported files can be used as backups or with the Codatum CLI.

Export

From the notebook screen menu > Export, you can export in the following formats.

MenuFormatDescription
Export.ymlExports the notebook as a file.
Export as markdown.cnb.mdA notebook file format usable with the Codatum CLI (available in workspaces where the Codatum CLI is enabled).
Export as SQL files.zipExports SQL blocks as .sql files. See the README.md in the output for details.
Export as dbt project.zipExports SQL blocks as a dbt project. See the README.md in the output for details.

Import

You can import an exported .yml file in either of the following ways.

  1. From the folder tree in the left sidebar of the notebook list, select Add notebook or folder > Import from file (imports as a new notebook).
  2. From the notebook screen menu > Import pages (adds pages to an existing notebook; requires edit permission on the notebook).

TIP

If a notebook has become uneditable because it exceeds the size limit, you can export it and import only the pages you need into a new notebook to keep editing.