capabilities.work

Back Up a Notebook by Export and Re-import

A 3-step recipe with Azure Databricks. We can help you get access.

Recipe · 3 steps

Back Up a Notebook by Export and Re-import

Export a notebook and re-import it to a backup path.

  1. Confirm the source object exists and is a NOTEBOOK before exporting it.
  2. Export the source notebook in SOURCE format and capture the base64-encoded content.
  3. Import the exported content to the backup path, overwriting any existing backup.
What you'll need to have ready
  • token: Databricks personal access token for the Authorization header.
  • sourcePath: Absolute path of the source notebook to back up.
  • backupPath: Absolute path to write the backup copy to.
  • language: Notebook language, one of SCALA, PYTHON, SQL, or R.
For your developer

Arazzo workflow microsoft-azure-databricks:backup-notebook, 3 operations: getWorkspaceObjectStatus → exportWorkspaceObject → importWorkspaceObject. Specs on APIs.io.