在脚本中的Linux上使用azcopy时,如何避免出现提示? [英] How do I avoid the prompts while using azcopy on Linux in a script?

查看:107
本文介绍了在脚本中的Linux上使用azcopy时,如何避免出现提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行AzCopy命令的Python脚本来备份我的存储帐户.但是,它会不断提示以下消息.

I've got a Python script that runs the AzCopy command to backup my storage accounts. However, it keeps throwing a prompt with the following message.

在日记目录"/home/azureuser/Microsoft/Azure/AzCopy"中检测到不同命令行的不完整操作. 是否要覆盖日志以开始新操作?选择是覆盖,选择否取消当前操作. (是/否)y

Incomplete operation with different command line detected at the journal directory "/home/azureuser/Microsoft/Azure/AzCopy". Do you want to overwrite the journal to start a new operation? Choose Yes to overwrite, choose No to cancel current operation. (Yes/No) y

在Windows版本的AzCopy上,我可以添加/Y参数.但是我在Linux机器上.

On the Windows version of AzCopy I could add the /Y parameter. But I'm on a Linux machine.

Linux是否有等效的参数?

Is there an equivalent parameter for Linux?

推荐答案

请尝试将azcopy--quiet选项一起使用.

Please try azcopy with the --quiet option.

如果键入azcopy --help,将看到带有以下说明的该选项:

If you type azcopy --help, you will see this option with the following description:

--quiet              Suppresses all AzCopy confirmation prompts.

这篇关于在脚本中的Linux上使用azcopy时,如何避免出现提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆