简体   繁体   English

用于Linux机器上传/下载Azure存储数据的天蓝色命令行工具

[英]azure command line tool for linux machine to upload/download data to/from Azure Storage

I am looking for azure command line tool in linux. 我正在寻找linux中的azure命令行工具。 I found azure-cli, but its not supporting upload and download feature in azure storage (As per my knowledge). 我找到了azure-cli,但它不支持azure存储中的上传和下载功能(据我所知)。

I found some CLI tools but those are running only on windows. 我找到了一些CLI工具,但这些工具只在Windows上运行。 those are 那些是

  • AzCopy AzCopy
  • cloudcopy cloudcopy

So can anybody suggest one best azure CLI tool, which can run on linux machine and able to perform upload and download operations?? 那么有人可以建议一个最好的天蓝色CLI工具,它可以在linux机器上运行并且能够执行上传和下载操作吗?

It would be great if that supports partial read and partial write. 如果它支持部分读取和部分写入,那将是很好的。

There's support for upload and download : 支持上传和下载:

azure storage blob upload [options] [file] [container] [blob]
azure storage blob download [options] [container] [blob] [destination]

If not seeing them try to update your cli tools first: 如果没有看到他们,请先尝试更新您的cli工具:

npm install azure-cli -g

(Node.js must be installed in your system) (Node.js必须安装在您的系统中)

Hope this helps 希望这可以帮助

A little late to this question, but hopefully this will help anyone looking for an answer. 这个问题有点晚了,但希望这会帮助任何寻找答案的人。 The Azure Batch and HPC team has released a code sample with some AzCopy-like functionality on Python called blobxfer . Azure Batch和HPC团队发布了一个代码示例,其中包含一些名为blobxfer的类似AzCopy的功能 [full disclosure: I'm a contributor for this code] [完全披露:我是此代码的撰稿人]

如果以上没有帮助,您也可以通过提升权限安装最新版本,例如sudo npm instal azure-cli -g

Azure CLI 2.0 which is python based release supporting ARM based deployment can be used to download the blob storage contents one by one. Azure CLI 2.0是基于python的发行版,支持基于ARM的部署,可用于逐个下载blob存储内容。 Here is the step by step guide for the same - http://sanganakauthority.blogspot.in/2017/03/how-to-download-azure-blob-storage.html 以下是相同的分步指南 - http://sanganakauthority.blogspot.in/2017/03/how-to-download-azure-blob-storage.html

However you can't download the all the blob from a container in one go. 但是,您无法一次性从容器中下载所有blob。 Cli does not support it as of today. Cli今天不支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用适用于Linux的Azure命令行工具创建虚拟机 - Creating a Virtual machine using Azure command line tool for linux 如何从 azure 云连接到 linux 服务器并上传到 BLOB 存储? - how to connect to linux server from azure cloud and upload to BLOB storage? 从Linux上的Azure Blob存储中上载多个文件 - Upload multiple files in Azure Blob Storage from Linux Azure批处理-在Linux VM上从命令行运行多个命令 - Azure batch - run multiple commands from command line on linux VM 如何用linux命令行下载批量数据? - how to download batch of data with linux command line? 如何从命令行(不使用浏览器)下载Azure .publishsettings文件? - How can I download the Azure .publishsettings file from the command line (by not using a browser)? RTMP:有没有这样的Linux命令行工具? - RTMP: Is there such a linux command line tool? 如何从 Linux 命令行在 Azure Synapse 托管 SQL 池中执行 SQL 语句? - How can I execute SQL Statements in a Azure Synapse managed SQL-Pool from Linux command line? 如何使用位于 azure webapp 中的 .sh 文件将多个文件从本地存储上传到 azure blob 存储 - How to upload multiple files from local storage to the azure blob storage using .sh file that located in azure webapp 如何使用blobxfer从azure blob存储下载子目录 - how to download a sub directory from azure blob storage using blobxfer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM