How do I avoid the prompts while using azcopy on Linux in a script?

后端 未结 2 1618
广开言路
广开言路 2021-01-05 11:53

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.

相关标签:
2条回答
  • 2021-01-05 12:06

    Please try azcopy with the --quiet option.

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

    --quiet              Suppresses all AzCopy confirmation prompts.
    
    0 讨论(0)
  • 2021-01-05 12:12

    If using azcopy sync, you have to be crafty:

    echo N | azcopy sync ... --force=false
    
    0 讨论(0)
提交回复
热议问题