Skip to content

Instantly share code, notes, and snippets.

@briskgopesh
Forked from aessing/install-AzCopy.sh
Created November 10, 2023 09:39
Show Gist options
  • Save briskgopesh/c95d84ea91355122c193020d05f17837 to your computer and use it in GitHub Desktop.
Save briskgopesh/c95d84ea91355122c193020d05f17837 to your computer and use it in GitHub Desktop.

Revisions

  1. @aessing aessing created this gist Oct 1, 2020.
    28 changes: 28 additions & 0 deletions install-AzCopy.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #!/bin/bash
    # =============================================================================
    # Install AzCopy on Linux
    # https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
    # https://github.com/Azure/azure-storage-azcopy
    # -----------------------------------------------------------------------------
    # Developer.......: Andre Essing (https://www.andre-essing.de/)
    # (https://github.com/aessing)
    # (https://twitter.com/aessing)
    # (https://www.linkedin.com/in/aessing/)
    # -----------------------------------------------------------------------------
    # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
    # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
    # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
    # =============================================================================

    # Download and extract
    wget https://aka.ms/downloadazcopy-v10-linux
    tar -xvf downloadazcopy-v10-linux

    # Move AzCopy
    sudo rm -f /usr/bin/azcopy
    sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
    sudo chmod 755 /usr/bin/azcopy

    # Clean the kitchen
    rm -f downloadazcopy-v10-linux
    rm -rf ./azcopy_linux_amd64_*/