<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to copy notebooks from local to the tarrget folder via asset bundles in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113857#M44663</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102843"&gt;@kmodelew&lt;/a&gt;&amp;nbsp;, You can change your workspace : root_path to maybe /Workspace or any other common location you want so that it can be view by all and accessed only by those who have the permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default the bundle path is /Workspace/users/current_user....&lt;BR /&gt;&lt;BR /&gt;You can find more information about this here :&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings#workspace" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/settings#workspace&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 05:09:38 GMT</pubDate>
    <dc:creator>ashraf1395</dc:creator>
    <dc:date>2025-03-28T05:09:38Z</dc:date>
    <item>
      <title>How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113569#M44573</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am able to deploy Databricks assets to the target workspace. Jobs and workflows can also be created successfully.&lt;/P&gt;&lt;P&gt;But I have aspecial requirement, that I copy the note books to the target folder on databricks workspace.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;on Local I have such a structure:&lt;/P&gt;&lt;P&gt;databricks/&lt;BR /&gt;├─ fixtures/&lt;BR /&gt;├─ src/&lt;BR /&gt;│ ├─ SubFolder1/&lt;BR /&gt;│ │ ├─ Notebook1.ipynb&lt;BR /&gt;│ ├─ SubFolder2/&lt;BR /&gt;│ │ ├─ Notebook2.ipynb&lt;BR /&gt;│ ├─ Notebook3.ipnyb&lt;BR /&gt;├─ resources/&lt;BR /&gt;│ ├─ dab.job.yml.css&lt;BR /&gt;├─ .gitignore&lt;/P&gt;&lt;P&gt;On Databricks side, I would like to have this:&lt;/P&gt;&lt;P&gt;Workspace/&lt;BR /&gt;├─ Repos/&lt;BR /&gt;├─ Shared/&lt;BR /&gt;├─ Users/&lt;BR /&gt;├─ SubFolder1/&lt;BR /&gt;│ ├─ Notebook1.ipynb&lt;BR /&gt;├─ Subfolder2/&lt;BR /&gt;│ ├─ Notebook2.ipynb&lt;BR /&gt;├─ Notebook3.ipnyb&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can I set DAB that I can copy the notebooks to the desired folder on workspace and not to the root path with other files&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 19:23:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113569#M44573</guid>
      <dc:creator>BobCat62</dc:creator>
      <dc:date>2025-03-25T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113639#M44589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/66116"&gt;@BobCat62&lt;/a&gt;, we meet again &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope you are doing great.&lt;/P&gt;&lt;P&gt;You can deploy your notebooks to your workspace, which are even outside your databricks.yml (bundle root path) using the sync paths mapping. Though by default all these resources go to your specified workspace root path.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to send these files to any target root path, you can do it using the following ways&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#databricks.yml

targets:
  test:
    workspace:
      file_path: /Workspace/
    sync:
      path:
        - .src/subfolder1/*.ipynb
        - .src/subfolder2/*.ipynb
        - ./src/notebook3.ipynb

&lt;/LI-CODE&gt;&lt;P&gt;- I have placed all the sync and workspace mappings inside a target mapping you can have it at root level as well.&lt;BR /&gt;- I specified all the notebooks separately but in your case since all are in the src directory you can directly just put the ./src/* as well&lt;/P&gt;&lt;P&gt;- I have assumed that databricks.yml is in the root directory , if not you can change the path with relative to that.&lt;/P&gt;&lt;P&gt;Here are the databricks docs :&amp;nbsp;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings#file_path" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/settings#file_path&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings#paths" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/settings#paths&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 05:19:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113639#M44589</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-03-26T05:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113766#M44626</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104610"&gt;@ashraf1395&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Nice to hear you and thank you for your hints.&lt;/P&gt;&lt;P&gt;Actually with your idea, I could reach half of my aim &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you can see here the folder structure in my VS code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BobCat62_0-1743023725878.png" style="width: 185px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15650i84229756F09D0031/image-dimensions/185x316?v=v2" width="185" height="316" role="button" title="BobCat62_0-1743023725878.png" alt="BobCat62_0-1743023725878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and here is part of my `databrick.yml` file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;targets:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; dev:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # The default target uses 'mode: development' to create a development copy.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # - Deployed resources get prefixed with '[dev my_user_name]'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # - Any job schedules and triggers are paused by default.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # See also &lt;A href="https://docs.databricks.com/dev-tools/bundles/deployment-modes.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/dev-tools/bundles/deployment-modes.html&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; mode: production&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; #default: true&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; workspace:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; host: &lt;A href="https://adb-3810710857900066.6.azuredatabricks.net" target="_blank" rel="noopener"&gt;https://adb-xxxxx.x.azuredatabricks.net&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; root_path: /Workspace/Shared/.bundle/${bundle.name}/${bundle.target}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; file_path: /Workspace/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; sync:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; paths:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - .src/emob1/*.ipynb&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; exclude:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/fixtures&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/resources&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/fixtures&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/.vscode &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/src/.gitignor&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - databricks/src/README.md&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;If I deploy with this yml, I get this error:&lt;/P&gt;&lt;P&gt;Error: stat .src/emob1/*.ipynb: no such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I I remove this part:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;paths&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;.src/emob1/*.ipynb&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can deploy successfully, but the result is not I want:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BobCat62_1-1743024066327.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15651i4F8914849009C762/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BobCat62_1-1743024066327.png" alt="BobCat62_1-1743024066327.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;I would like to have emob1 and emob2 directly under Workspace, and not under Databricks/src&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any Idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 21:25:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113766#M44626</guid>
      <dc:creator>BobCat62</dc:creator>
      <dc:date>2025-03-26T21:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113781#M44630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/66116"&gt;@BobCat62&lt;/a&gt;&amp;nbsp;, I made a small typo it would be ./src/emob1/*.ipynb or you can just keep it ./src/emob1/&lt;BR /&gt;&lt;BR /&gt;If you databricks.yml file is outside the databricks folder the path will be&lt;BR /&gt;./databricks/src/emob1/&lt;BR /&gt;and with file_path: /Workspace/&amp;nbsp; set to this. Your target file will be added at the correct place only drawback databricks syncs the local path dynamically wrt databricks.yml file&lt;BR /&gt;&lt;BR /&gt;So your databricks.yml file is outside of databricks repo i.e. in parallel with it your databricks workspace structure will look like this&amp;nbsp;&lt;BR /&gt;/Workspace/databricks/src/emob1/&lt;BR /&gt;but if you want emob1 directly I don't see any way we can change the path of bundle root location.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashraf1395_0-1743054766106.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15658i88737A6274A38215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashraf1395_0-1743054766106.png" alt="ashraf1395_0-1743054766106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not mandatory to keep the emob1 and 2 files inside databricks/src you can keep them in parallel with your databricks.yml&lt;BR /&gt;Whick wont be a good practice I guess.&lt;BR /&gt;&lt;BR /&gt;If you can find a way to change the bundle root location using an environment variable etc (though I don't find something like this anywhere )you work can be done or for quick workaround you can keep your emob files in parallel with databricks.yml file&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 05:54:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113781#M44630</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-03-27T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113798#M44640</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104610"&gt;@ashraf1395&lt;/a&gt;&amp;nbsp;Thank you so much...&lt;/P&gt;&lt;P&gt;You mean, if I could put the databricks.yml file inside the databricks folder and relocate my emob folders then I can achieve my aim&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BobCat62_0-1743077178783.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15660iBE7059668F984135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BobCat62_0-1743077178783.png" alt="BobCat62_0-1743077178783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand it is not possible to reloacte the databricks.yml because it should be in the root. Is my understanding correct?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 12:07:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113798#M44640</guid>
      <dc:creator>BobCat62</dc:creator>
      <dc:date>2025-03-27T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113813#M44647</link>
      <description>&lt;P&gt;What are the permissions to this databricks directory? Can someone delete this directory or any file? On Shared workspace everyone can delete bundle files or bundle directory, even if in databricks.yml I provided permissions only to admins ('CAN MANAGE').&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;permissions&lt;/SPAN&gt;:&lt;BR /&gt;  - &lt;SPAN&gt;user_groups&lt;/SPAN&gt;: admins&lt;BR /&gt;    &lt;SPAN&gt;level&lt;/SPAN&gt;: CAN_MANAGE&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;I'm looking a safe place and&amp;nbsp; common space for all bundles.&lt;/STRONG&gt; I don't like the idea to have bundles on User Workspaces (databricks suggest this approach).&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 14:27:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113813#M44647</guid>
      <dc:creator>kmodelew</dc:creator>
      <dc:date>2025-03-27T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113830#M44653</link>
      <description>&lt;P&gt;Can you store it in a service principal's workspace? I read this somewhere in the documentation but can't find it again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:54:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113830#M44653</guid>
      <dc:creator>cmathieu</dc:creator>
      <dc:date>2025-03-27T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113856#M44662</link>
      <description>&lt;P&gt;Right,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/66116"&gt;@BobCat62&lt;/a&gt;&amp;nbsp; databricks.yml should be in the root location , if you change the place of your emob folders wrt databricks.yml then you can achieve it like maybe taking out the emob folder and keeping them in root.&lt;/P&gt;&lt;P&gt;I don't know any other solution to this&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:07:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113856#M44662</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-03-28T05:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy notebooks from local to the tarrget folder via asset bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113857#M44663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102843"&gt;@kmodelew&lt;/a&gt;&amp;nbsp;, You can change your workspace : root_path to maybe /Workspace or any other common location you want so that it can be view by all and accessed only by those who have the permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default the bundle path is /Workspace/users/current_user....&lt;BR /&gt;&lt;BR /&gt;You can find more information about this here :&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings#workspace" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/settings#workspace&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:09:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-copy-notebooks-from-local-to-the-tarrget-folder-via-asset/m-p/113857#M44663</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-03-28T05:09:38Z</dc:date>
    </item>
  </channel>
</rss>

