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

2

7

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.

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

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

Is there an equivalent parameter for Linux?

Rumilly answered 16/4, 2018 at 4:13 Comment(1)
Could you post some code describing what you've done so far.Crewelwork
I
11

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.
Irritability answered 16/4, 2018 at 4:56 Comment(0)
C
0

If using azcopy sync, you have to be crafty:

echo N | azcopy sync ... --force=false
Corniculate answered 21/11, 2018 at 16:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.