<?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 DATABRICKS CLI SYNC SPECIFIC FILES in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-cli-sync-specific-files/m-p/123350#M46989</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am struggling with this problem I need to update databricks repo, to only sync some files according to documentation is possible:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/sync-commands#only-sync-specific-files" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/sync-commands#only-sync-specific-files&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_tasayco_0-1751310427720.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17867i189E9AFCA257E09D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_tasayco_0-1751310427720.png" alt="carlos_tasayco_0-1751310427720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my workflow I am updating creating my&amp;nbsp;.gitignore file but is syncing all the files not the specific files this ismy code:&lt;/P&gt;&lt;P&gt;- name: Generate .gitignore inside release folder&lt;BR /&gt;run: |&lt;BR /&gt;echo ".databricks" &amp;gt; "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;echo ".github/pylintrc" &amp;gt;&amp;gt; "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt; Final .gitignore content:"&lt;BR /&gt;cat "./.release/databricks-1.0.221/.gitignore"&lt;/P&gt;&lt;P&gt;- name: Perform selective sync using --include-from&lt;BR /&gt;env:&lt;BR /&gt;DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}&lt;BR /&gt;DATABRICKS_TOKEN: ${{ env.DATABRICKS_TOKEN }}&lt;BR /&gt;run: |&lt;BR /&gt;INNER_FOLDER=$(find "${RELEASE_FOLDER}" -mindepth 1 -maxdepth 1 -type d)&lt;BR /&gt;INCLUDE_FILE="$INNER_FOLDER/.gitignore"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; INNER_FOLDER = $INNER_FOLDER"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":page_facing_up:"&gt;📄&lt;/span&gt; INCLUDE_FILE = $INCLUDE_FILE"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":file_folder:"&gt;📁&lt;/span&gt; REPO_PATH = $REPO_PATH"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt; Command: databricks sync \"$INNER_FOLDER\" \"$REPO_PATH\" --include-from \"$INCLUDE_FILE\""&lt;BR /&gt;&lt;BR /&gt;databricks sync "$INNER_FOLDER" "$REPO_PATH" --include-from "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;&lt;BR /&gt;I only should be able to sync this file "github/pylintrc""&amp;nbsp; because is what I put in the gitignore&lt;BR /&gt;However is syncing all the files under that path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_tasayco_1-1751310545234.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17868i0CCCC87CD8AD7495/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_tasayco_1-1751310545234.png" alt="carlos_tasayco_1-1751310545234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is welcomed&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 19:09:26 GMT</pubDate>
    <dc:creator>carlos_tasayco</dc:creator>
    <dc:date>2025-06-30T19:09:26Z</dc:date>
    <item>
      <title>DATABRICKS CLI SYNC SPECIFIC FILES</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-sync-specific-files/m-p/123350#M46989</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am struggling with this problem I need to update databricks repo, to only sync some files according to documentation is possible:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/sync-commands#only-sync-specific-files" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/sync-commands#only-sync-specific-files&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_tasayco_0-1751310427720.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17867i189E9AFCA257E09D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_tasayco_0-1751310427720.png" alt="carlos_tasayco_0-1751310427720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my workflow I am updating creating my&amp;nbsp;.gitignore file but is syncing all the files not the specific files this ismy code:&lt;/P&gt;&lt;P&gt;- name: Generate .gitignore inside release folder&lt;BR /&gt;run: |&lt;BR /&gt;echo ".databricks" &amp;gt; "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;echo ".github/pylintrc" &amp;gt;&amp;gt; "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt; Final .gitignore content:"&lt;BR /&gt;cat "./.release/databricks-1.0.221/.gitignore"&lt;/P&gt;&lt;P&gt;- name: Perform selective sync using --include-from&lt;BR /&gt;env:&lt;BR /&gt;DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}&lt;BR /&gt;DATABRICKS_TOKEN: ${{ env.DATABRICKS_TOKEN }}&lt;BR /&gt;run: |&lt;BR /&gt;INNER_FOLDER=$(find "${RELEASE_FOLDER}" -mindepth 1 -maxdepth 1 -type d)&lt;BR /&gt;INCLUDE_FILE="$INNER_FOLDER/.gitignore"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; INNER_FOLDER = $INNER_FOLDER"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":page_facing_up:"&gt;📄&lt;/span&gt; INCLUDE_FILE = $INCLUDE_FILE"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":file_folder:"&gt;📁&lt;/span&gt; REPO_PATH = $REPO_PATH"&lt;BR /&gt;echo "&lt;span class="lia-unicode-emoji" title=":memo:"&gt;📝&lt;/span&gt; Command: databricks sync \"$INNER_FOLDER\" \"$REPO_PATH\" --include-from \"$INCLUDE_FILE\""&lt;BR /&gt;&lt;BR /&gt;databricks sync "$INNER_FOLDER" "$REPO_PATH" --include-from "./.release/databricks-1.0.221/.gitignore"&lt;BR /&gt;&lt;BR /&gt;I only should be able to sync this file "github/pylintrc""&amp;nbsp; because is what I put in the gitignore&lt;BR /&gt;However is syncing all the files under that path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_tasayco_1-1751310545234.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17868i0CCCC87CD8AD7495/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_tasayco_1-1751310545234.png" alt="carlos_tasayco_1-1751310545234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is welcomed&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 19:09:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-sync-specific-files/m-p/123350#M46989</guid>
      <dc:creator>carlos_tasayco</dc:creator>
      <dc:date>2025-06-30T19:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: DATABRICKS CLI SYNC SPECIFIC FILES</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-sync-specific-files/m-p/138215#M50885</link>
      <description>&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;You are trying to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option with your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file to only sync specific files with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;databricks sync&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command, but you are observing that all files get synced, not just the expected ones. The key issue is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;how the include/exclude functionality works, and what the file contents should be&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;according to Azure Databricks documentation and best practices.&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Why Your Current Approach Is Not Working&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file is designed for Git to exclude files, but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;for the Databricks CLI&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--exclude-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;options, these files should list path patterns for what to include or exclude from sync—these may need to be written differently than a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;/STRONG&gt;.​&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;In your code, you’re putting lines like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.databricks&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.github/pylintrc&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;into&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and passing this file to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option means "only sync files matching these patterns."​&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If you want to only sync&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;".github/pylintrc"&lt;/CODE&gt;, the include file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;should list only this specific pattern or filepath&lt;/STRONG&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;How&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Works&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;From the Databricks CLI documentation:&lt;/P&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;CODE&gt;--include-from &amp;lt;file&amp;gt;&lt;/CODE&gt;: Sync will&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;only&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;include files matching&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;patterns&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;listed in this file (one per line).​&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;STRONG&gt;The file provided to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should not behave or be named like a traditional&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;, but be a list of files to sync.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If you put patterns that exclude things, it will not work as you expect.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;What You Should Do Next&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Make an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE&gt;include.txt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(or any filename, not&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;) listing only the files (or patterns) you want to sync.&lt;/P&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;For example, your file should contain only:&lt;/P&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-light selection:text-super selection:bg-super/10 my-md relative flex flex-col rounded font-mono text-sm font-normal bg-subtler"&gt;
&lt;DIV class="translate-y-xs -translate-x-xs bottom-xl mb-xl flex h-0 items-start justify-end md:sticky md:top-[100px]"&gt;
&lt;DIV class="overflow-hidden rounded-full border-subtlest ring-subtlest divide-subtlest bg-base"&gt;
&lt;DIV class="border-subtlest ring-subtlest divide-subtlest bg-subtler"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV&gt;
&lt;DIV class="text-quiet bg-subtle py-xs px-sm inline-block rounded-br rounded-tl-[3px] font-thin" data-testid="code-language-indicator"&gt;text&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;CODE&gt;.github/pylintrc
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Update your workflow as follows:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-light selection:text-super selection:bg-super/10 my-md relative flex flex-col rounded font-mono text-sm font-normal bg-subtler"&gt;
&lt;DIV class="translate-y-xs -translate-x-xs bottom-xl mb-xl flex h-0 items-start justify-end md:sticky md:top-[100px]"&gt;
&lt;DIV class="overflow-hidden rounded-full border-subtlest ring-subtlest divide-subtlest bg-base"&gt;
&lt;DIV class="border-subtlest ring-subtlest divide-subtlest bg-subtler"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV&gt;
&lt;DIV class="text-quiet bg-subtle py-xs px-sm inline-block rounded-br rounded-tl-[3px] font-thin" data-testid="code-language-indicator"&gt;bash&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;echo&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;".github/pylintrc"&lt;/SPAN&gt; &lt;SPAN class="token token operator"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;"./.release/databricks-1.0.221/include.txt"&lt;/SPAN&gt;
&lt;SPAN class="token token"&gt;cat&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;"./.release/databricks-1.0.221/include.txt"&lt;/SPAN&gt;

databricks &lt;SPAN class="token token"&gt;sync&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;"&lt;/SPAN&gt;&lt;SPAN class="token token"&gt;$INNER_FOLDER&lt;/SPAN&gt;&lt;SPAN class="token token"&gt;"&lt;/SPAN&gt; &lt;SPAN class="token token"&gt;"&lt;/SPAN&gt;&lt;SPAN class="token token"&gt;$REPO_PATH&lt;/SPAN&gt;&lt;SPAN class="token token"&gt;"&lt;/SPAN&gt; --include-from &lt;SPAN class="token token"&gt;"./.release/databricks-1.0.221/include.txt"&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;You&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;should not use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for this purpose&lt;/STRONG&gt;. The CLI expects a simple text file with inclusion patterns, not a Git ignore file or a mix of exclusion/inclusion lines.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Additional Troubleshooting Tips&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Paths in your include file should be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;relative to the sync root&lt;/STRONG&gt;, so adjust as needed depending on where you launch the command.​&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Double-check the pattern matches to make sure they point to actual files you want sync’d.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If you want to exclude instead, use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--exclude-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with a file listing patterns to omit.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Key Points&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;The pattern file for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;--include-from&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;must list files to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;include&lt;/EM&gt;, one per line.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;CODE&gt;.gitignore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;files are not suitable for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;inclusion&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pattern lists—instead, use a separate include-pattern file.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Only the files/patterns listed in the include file will be synced; all other files will be ignored.​&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If you follow the above approach, you should see only the files specifically listed in your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;include.txt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;being synced to your Databricks workspace.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 13:04:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-sync-specific-files/m-p/138215#M50885</guid>
      <dc:creator>mark_ott</dc:creator>
      <dc:date>2025-11-08T13:04:58Z</dc:date>
    </item>
  </channel>
</rss>

