cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Copy a script from the current subscription to new subscription

Mec_Mec
New Contributor II

I would like to check if there is a process to copy a script/code or migrate the script from the current subscription of the Azure Databricks - Notebooks to new subscription of Databricks (new notebook).

1 ACCEPTED SOLUTION

Accepted Solutions

Ryan_Chynoweth
Esteemed Contributor

@Michelle Riveraโ€‹  - I would also look into version control for your notebooks. The Databricks repos are a great way to do this but you can do it in the workspace as well.

With version control you would be able to clone the repository into the new workspace.

View solution in original post

6 REPLIES 6

Prabakar
Databricks Employee
Databricks Employee

Hi Mec Mec , we have databricks migration too that will help you to migrate all the notebooks.

https://github.com/databrickslabs/migrate

If your requirement is to copy only a single notebook you can export it from the old workspace and import it to the new one.

image 

image 

To export a folder you can do the below:

image 

Please refer to the below link for more information.

https://docs.databricks.com/notebooks/notebooks-manage.html#notebook-external-formats

Mec_Mec
New Contributor II

We will need to copy the script from the notebook then transfer or migrate to a new notebook (New Subscription, new databricks)

Hubert-Dudek
Esteemed Contributor III

as @Prabakar Ammeappinโ€‹ said just use https://github.com/databrickslabs/migrate or just use export option in notebook (in File top menu) or go to workspace click arrow and choose export (possible for both directory and notebook)

Ryan_Chynoweth
Esteemed Contributor

@Michelle Riveraโ€‹  - I would also look into version control for your notebooks. The Databricks repos are a great way to do this but you can do it in the workspace as well.

With version control you would be able to clone the repository into the new workspace.

Mec_Mec
New Contributor II

how quickly move the Databricks notebooks from one account to another?

Ryan_Chynoweth
Esteemed Contributor

Moving notebooks from one workspace to another is fast if you programmatically do it. If you use the REST APIs or Repos it will take very little time. If you decide to manually export/import it could take longer.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group