azure - Shell script to check if the azcopy command to upload the files from linux to azure storage is successful or not
问题描述
I have tried to upload the db backup files from Linux platform to azure storage using the azcopy command. Sometimes it is failing as the storage is full. can you please tell me how can I write a shell script to check if the upload is successful or not (status code). if upload failed then send an email to respective email ids. I have tried below command to upload the files from Linux to Azure Storage:
azcopy --source <sourcepath> --include "*.zip" --destination <destination> \
--dest-sas "?sv=2019-02-02&ss=bfqt&srt=sco&sp=rwdlacup&se=2021-01-27T13:31:23Z&st=2020-01-27T05:31:23Z&spr=https&sig=5eQClAaajnLNcw3bUtZvWSumSj0FkWalApGm8Y90IgY%3D"
解决方案
推荐阅读
- java - 单元测试基于 Spring Boot 的 REST 端点,它返回按给定方向排序的对象集合
- java - java.lang.NoClassDefFoundError: org/springframework/core/ErrorCoded
- flutter - 鼠标悬停时如何删除 ElevatedButton 周围的突出显示?
- numpy - 为什么numpy的vectorize函数对第一个元素执行两次
- javascript - 在我的加载状态上设置一个 setTimeout 以防止登录页面在用户完成身份验证之前闪烁是不好的做法吗?
- installation - 在一篇文章中进行环境配置时出现关于安装 pytorch-mpi 的错误
- kubernetes - 根据要求获取示例 k8 yaml 进行编辑的最佳方法是什么?
- graph - 在贝尔曼福特算法中将距离数组初始化为 0
- c++ - 使用 c++11
在 Windows 上使用 COM 线程单元 - 提示、技巧、陷阱? - discord.py - 让机器人通过 id 编辑旧消息