-2

I'm struggling to use gsutil cp command to copy some files from cloud storage to a Windows Server machine.

I cannot execute the command inside the Windows machine because this copy process is part of a dag in Airflow, and the Airflow machine should be able to run the cp command pointing to the Windows Server.

Any ideas on how to do this copy remotely?

Giorge Caique
  • 199
  • 1
  • 1
  • 16
  • Windows systems do not support the `cp` command. `gsutil` does not support remote file copies to Windows systems. You will need to use a different solution. I install Windows OpenSSH on my Windows systems so I can use `ssh/scp` to copy files. – John Hanley Aug 27 '20 at 16:58
  • @Giorge Caique, did you try installing OpenSSH as mentioned by John? – Joss Baron Aug 28 '20 at 15:54

1 Answers1

0

As mentioned by @John Hanley, Windows Systems do not support cp command. Here you can see a similar question about it. cp is a Linux command.

Given the aforementioned, you will need to use a different solution. You migh want to install Windows OpenSSH on your Windows system and then use ssh/scp to copy the files.

Joss Baron
  • 1,441
  • 10
  • 13