Skip to content

Instantly share code, notes, and snippets.

@DiracSpace
Forked from aessing/install-AzCopy.sh
Created June 23, 2023 18:26
Show Gist options
  • Save DiracSpace/3054fc609b52b9574ab5fdd93a8100ca to your computer and use it in GitHub Desktop.
Save DiracSpace/3054fc609b52b9574ab5fdd93a8100ca to your computer and use it in GitHub Desktop.

Revisions

  1. DiracSpace revised this gist Jun 23, 2023. 1 changed file with 2 additions and 26 deletions.
    28 changes: 2 additions & 26 deletions install-AzCopy.sh
    Original file line number Diff line number Diff line change
    @@ -1,28 +1,4 @@
    #!/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_*/
    # Download, extract and make executable
    sudo bash -c 'cd /usr/local/bin; curl -sSL https://aka.ms/downloadazcopy-v10-linux | tar --strip-components=1 --exclude=*.txt -xzvf -; chmod +x azcopy'
  2. @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_*/