09-20-2022 06:30 AM
How to copy the content of a repos, in the workspace/shared, automatically, daily?
Purpose here is to bring some notebooks, in shared, available to all workspace users, without requesting users to use REPOS.
09-28-2022 05:17 AM
09-20-2022 01:08 PM
Hi,
In the Add Repo dialog, click Clone remote Git repo and enter the repository URL. Select your Git provider from the drop-down menu, optionally change the name to use for the Databricks repo, and click Create. The contents of the remote repository are cloned to the Databricks repo.
Please refer: https://docs.databricks.com/repos/work-with-notebooks-other-files.html#clone-a-remote-git-repository
Please let us know if you need further clarification on the same.
09-21-2022 06:27 AM
hi,
Thanks!
but I did that already 🙂
My question was more like if it is possible to copy the content of a repo into a folder in the shared area of the workspace.
09-28-2022 05:17 AM
finally did it with devops, was easy actually.
04-04-2023 01:09 AM
Hi, could you share a bit I am struggling with the same problem, would be much appreciated!
04-04-2023 01:52 AM
using a release pipeline in devops. there is a predefined task we can use to deploy notebooks into a workspace. I trig it on pull request.
06-22-2023 07:55 AM
Alternatively, you can schedule a notebook with the following cell:
%sh
cp -r /Workspace/Repos/username/repo_name /Workspace/Shared
Please note that you'll have to update (i.e. pull) the repo manually if you've updated it somewhere else (although you can also schedule that with the Databricks Repos API).
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now