< Back

Export-DatabricksFolder

Sat Jan 11, 2020 9:53 am

NAME Export-DatabricksFolder



SYNOPSIS

Pulls the contents of a Databricks folder (and subfolders) locally so that they can be committed to a repo





SYNTAX

Export-DatabricksFolder [[-BearerToken] <String>] [[-Region] <String>] [-ExportPath] <String> [[-LocalOutputPath]

<String>] [[-Format] <String>] [<CommonParameters>]





DESCRIPTION

Pulls the contents of a Databricks folder (and subfolders) locally so that they can be committed to a repo





PARAMETERS

-BearerToken <String>

Your Databricks Bearer token to authenticate to your workspace (see User Settings in Datatbricks WebUI)



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <String>

Azure Region - must match the URL of your Databricks workspace, example northeurope



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportPath <String>

The Databricks folder to export, for example /Shared or /Users/simon@datathirst.net/myfolder - must start with

/



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LocalOutputPath <String>

Path to your repo/local you would like to export the scripts to



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Format <String>

Defaults to SOURCE. Options DBC, HTML, JUPYTER



Required? false

Position? 5

Default value SOURCE

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Simon D'Morias / Data Thirst Ltd



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Export-DatabricksFolder -ExportPath $ExportPath -BearerToken $BearerToken -Region $Region -LocalOutputPath

$LocalOutputPath -Verbose















RELATED LINKS