Coder Social home page Coder Social logo

azcp's Introduction

Why use AzCp instead of AzCopy or Azure Storage Explorer?

Unlike Azure Storage Explorer and AzCopy I want to be able to resume partially uploaded files to Azure BLOB storage.

Both Azure Storage Explorer and AzCopy have significantly more options that this tool! They're great tools, I'm sure this gap will eventually be filled, but until then there's AzCp.

NOTE: Both resume the file set (aka Job) but do not resume a partially uploaded file - hence AzCp. So if you have successfully uploaded 90% of your multi-Terrabyte file and AzCopy is closed, re-starting AzCopy with the interrupted Job will skip files that have been uploaded already but it will start the incomplete file from the start!.

Overview

  1. AzCp monitors a specified folder for additional files (Uploads)
  2. AzCp copies these files into Azure BLOB Storage or Azure Files using a pre-provided SAS Token
  3. AzCp archives the files once uploaded - moves them to another folder (Archive)
  4. AzCp resumes the upload if the tool is interrupted and restarted

Installing AzCp

  1. Copy the AzCp.exe and appSettings.json files to a folder of your choice
  2. Create an appSettings.secrets.json file in the same folder as the .exe with contents of the form:
{
  "Repository": {
    // The 'BlobContainerUri' OR 'FileContainerUri' entries contain a Shared Access Signature URI that you got from Azure Storage Explorer (for example)
    // It is of the form:
    //   "BlobContainerUri": "https://{storage account name}.blob.core.windows.net/{container name}?{SAS query string}"
    // or:
    //   "FileContainerUri": "https://{storage account name}.file.core.windows.net/{folder name}?{SAS query string}"
  }
}

Running AzCp

The following assumes you are using the defaults in appSettings.json. Hopefully the comments in this file indicates what you are able to change and why.

  • Run the AzCp console application
  • Copy or move files into the Uploads sub-folder
  • AzCp will copy all of these files - respecting any sub-folder structure - into the storage container specified in appSettings.secrets.json
  • Once copied, the file is archived to the Archive sub-folder

Build status

build

azcp's People

Contributors

andyrace avatar

Watchers

James Cloos avatar  avatar

azcp's Issues

Working with write-only SAS token

Is it possible to use a write-only token?
Use case: Give users write access to a secure area without ability to list or read existing data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.