在脚本中的Linux上使用azcopy时,如何避免出现提示? [英] How do I avoid the prompts while using azcopy on Linux in a script?
问题描述
我有一个运行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屋!