This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Works in zsh-shell on Mac. | |
# Requires azcopy (https://formulae.brew.sh/formula/azcopy) and az (https://formulae.brew.sh/formula/azure-cli#default) | |
# As there is no move we copy and rm the files. (The copy is blocking so the remove will not be executed on failure) | |
export ACCOUNTNAME=xxxx | |
export ACCOUNTKEY='xxxxxxayyyyyyyyyyyyyyy==' | |
export FILESHARE=fileshare | |
export PATHFROM=path/from/* | |
export PATHTO=path |