Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 348
Ryan Fernandes Avatar asked Apr 16 '18 04:04

Ryan Fernandes


People also ask

How do I run AzCopy in Linux?

Run AzCopy That way you can type azcopy from any directory on your system. If you choose not to add the AzCopy directory to your path, you'll have to change directories to the location of your AzCopy executable and type azcopy or . \azcopy in Windows PowerShell command prompts.

How do you speed up AzCopy?

You can improve performance by reducing the number of log entries that AzCopy creates as it completes an operation. By default, AzCopy logs all activity related to an operation. To achieve optimal performance, consider setting the log-level parameter of your copy, sync, or remove command to ERROR .

What is AzCopy command?

AzCopy is a command-line tool for copying blobs or files to or from a storage account.


1 Answers

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.
like image 154
Gaurav Mantri Avatar answered Sep 19 '22 22:09

Gaurav Mantri