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!.
- AzCp monitors a specified folder for additional files (Uploads)
- AzCp copies these files into Azure BLOB Storage or Azure Files using a pre-provided SAS Token
- AzCp archives the files once uploaded - moves them to another folder (Archive)
- AzCp resumes the upload if the tool is interrupted and restarted
- Copy the AzCp.exe and appSettings.json files to a folder of your choice
- 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}"
}
}
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