Automatic Transfer to Azure FTP Server

Advertisement

mboensel
Joined:
Posts:
2
Location:
Germany

Automatic Transfer to Azure FTP Server

Dear Experts,

I'm using WinSCP 6.3.4 on Windows Server 2019.
I'm transferring data automated via script from my server to an FTP server inside Microsoft Azure.
Sometimes it happens, that the connection is lost. Therefore I have a reconnect, which retries the connection and continue the transfer. However I get the following error message after reconnection:
The File XXX.csv.filepart can't be overwrited.
General Issue (The Server should provide an error message).
Error Message from Server (en): BlobAlreadyExists: The specified blob already exists.
After that, the following options are available:
delete, cancel, retry, skip, skip all
In batch mode, I can only choose between Cancel or Skip. Is there an option, to choose Delete instead?

I use the following commands inside my script:
option batch continue
option confirm off
lcd "XXX"
put -resumesupport=on -nopreservetime -nopermissions *.csv
lcd "XXX"
put -resumesupport=on -nopreservetime -nopermissions *.csv
dir
exit
Thank you so far.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Automatic Transfer to Azure FTP Server

No, there's no "delete" option. But you can delete the .filepart files before the put:
rm *.filepart
Or as your server apparently does not allow the resume, turn it off in the first place:
put -resumesupport=off -nopreservetime -nopermissions *.csv

Reply with quote

mboensel
Joined:
Posts:
2
Location:
Germany

Re: Automatic Transfer to Azure FTP Server

Dear Martin,

thank you for your answer.

I'm thinking about how this would work in my scenario.

Is there an option to automically move the files on source to another location, after they are transferred successfully?

If yes, I could work with the mentioned rm command.

Reply with quote

Advertisement

You can post new topics in this forum