CLI: Export-dir provides LatestClone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 10:06 PM
Hi everyone,
I want to download the current databricks codebase out of a workspace and tried via
databricks databricks workspace export-dir /Sandbox/foo .
Surprisingly, some of the subfolders are twice in the export target: One with the expected name (`bar`) and one with a postfix (bar_LatestClone).
When comparing with what I see in browser in databricks, bar_LatestClone is the latest version. But what's the cause of having two exported versions? My aim is to just download expactly what I see in databricks web.
Thanks
#databricks_cli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 06:18 AM
Hi @holunder ,
This could be because the backend stores both the original and cloned versions of folders, even if only one appears in the web UI. The Databricks CLI exports everything from the backend, not just what's visible in the UI.