[英]Copy folder in Azure Storage Account to another folder in the same storage account
I have a Github Worfklow in which I am trying to copy all blobs in a folder to another folder in the same Azure storage account using the "az storage" command.我有一个 Github Worfklow,我正在尝试使用“az storage”命令将文件夹中的所有 blob 复制到同一 Azure 存储帐户中的另一个文件夹。 Ideally it should be synchronous so that Github Action must be able to track the progress.理想情况下,它应该是同步的,以便 Github Action 必须能够跟踪进度。
I am not sure if "az storage" is even the correct command to use, perhaps AZCopy will be better?我不确定“az storage”是否是正确使用的命令,也许 AZCopy 会更好? But I am not sure how to use AZCopy within Github actions (what should the value for "uses" be?)但我不确定如何在 Github 操作中使用 AZCopy(“使用”的值应该是什么?)
弄清楚了
az storage copy --source-account-name name_here --source-container 'mycontainer' --source-blob 'test/*' --account-name name_here --destination-container 'mycontainer' --destination-blob test2 --recursive
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.