โ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
โ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