【shell】使用azcopy在两个blob storage之间拷贝文件
首先Linux服务器上先要安装azcopy工具,能够快速地在blob storage上进行文件传输安装可以参考官网
yum install -y libunwind icu
wget -O azcopy.tar.gz https://aka.ms/downloadazcopylinuxrhel6
tar -xf azcopy.tar.gz
sudo ./install.sh
传输脚本
#!/bin/bash
DT=`date "+%Y-%m-%d"`
echo "yes"| azcopy--sourcehttps://xxxxstorage01.blob.core.chinacloudapi.cn/xxx/xxx${DT}_xxx.csv \
--destination https://xxxxstorage02.blob.core.chinacloudapi.cn/xxxx/xxx/xxx_${DT}_xxx.csv\
--source-key key1== \
--dest-key key2== \
#--recursive
页:
[1]