13

So I'm using an AzCopy which is run manually at the moment but I was to run it through Task Scheduler on one of our servers. This copies files from one container to another and runs perfectly if I manually execute the batch file. However, it asks me:

Overwrite https://.file.core.windows.net// with https://.file.core.windows.net//? (Yes/No/All)

Now this is all great and if I click Yes or All is proceeds with no problems. But if it is scheduled, I loose the ability to click Yes/All and then it hits timeout?

Is there a way or something I'm missing to allow it to continue through this please?

Thanks in advance!

Josh Reynolds
  • 155
  • 1
  • 1
  • 10

2 Answers2

19

Please try it with /Y option. From AzCopy Parameters:

/Y

Suppresses all AzCopy confirmation prompts.

Community
  • 1
  • 1
Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
5

For version 10, the default behavior is to overwrite without prompt and this can be controlled by the --overwrite flag (default 'true').

Overwrite the conflicting files and blobs at the destination if this flag is set to true. (default 'true') Possible values include 'true', 'false', 'prompt', and 'ifSourceNewer'. For destinations that support folders, conflicting folder-level properties will be overwritten this flag is 'true' or if a positive response is provided to the prompt. (default "true")

See also the azcopy copy page for reference.

Jay Cummins
  • 1,039
  • 2
  • 14
  • 31