Skip to content

Instantly share code, notes, and snippets.

@yooakim
Last active February 4, 2020 12:19
Show Gist options
  • Save yooakim/22d40359c22fcaa834b0ef7274839d86 to your computer and use it in GitHub Desktop.
Save yooakim/22d40359c22fcaa834b0ef7274839d86 to your computer and use it in GitHub Desktop.
Update AzCopy to latest version
#!/bin/bash
#
# Simple bash script for downloading and updating AzCopy to the latest available version.
#
# Go home
cd $HOME
# Download AzCopy
wget https://aka.ms/downloadazcopy-v10-linux --no-verbose
# Expand Archive
tar -xvf downloadazcopy-v10-linux
#(Optional) Remove existing AzCopy version
if test -f /usr/bin/azcopy; then
sudo rm /usr/bin/azcopy
fi
#Move AzCopy to the destination and make it executable
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
sudo chmod +x /usr/bin/azcopy
# Cleanup
rm downloadazcopy-v10-linux*
rm -r azcopy_linux_amd64_*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment