< Back

Backup-AzureDatabricksWorkspaceFolder

Sun Jan 19, 2020 6:06 pm

NAME Backup-AzureDatabricksWorkspaceFolder



SYNOPSIS

Backs up the contents of an Azure Databricks workspace folder and copies it to a different path within a same (or

different)

Azure Databricks workspace.





SYNTAX

Backup-AzureDatabricksWorkspaceFolder [-SourceConnection] <Object> [-SourcePath] <String> [-DestinationConnection]

<Object> [-DestinationPath] <String> [<CommonParameters>]





DESCRIPTION

This function is a great way to connect to your workspace and copy the contents to a different place. This

function can take the same connection object

for source and destination, or two different connections (which you can use for a simple deployment method from a

non-production to production instance).





PARAMETERS

-SourceConnection <Object>

An object that represents an Azure Databricks API connection where you want to backup your files from.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SourcePath <String>

The base path you want to copy your files from. Note: this will recurseively copy everything in the given path.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationConnection <Object>

An object that represents an Azure Databricks API connection where you want to copy your files to.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationPath <String>

The base path you want to copy your to. Note: this will recurseively copy everything in the given path.



Required? true

Position? 4

Default value

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: Drew Furgiuele (@pittfurg), http://www.port1433.com

Website: https://www.igs.com

Copyright: (c) 2019 by IGS, licensed under MIT

License: MIT https://opensource.org/licenses/MIT



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



PS C:\\>Backup-AzureDatabricksWorkspaceFolder -SourceConnection $AzureDatabricksConnection -SourcePath

"/SomeDirectory" -DestinationConnection $AzureDatabricksConnection -DestinationPath "/NewDirectory"



Copies the contents of your "/SomeDirectory" folder in Azure Databricks to the folder "/NewDirectory" within the

same Azure Databricks instance (note the same connection object)











RELATED LINKS