Avoid Truncating download of Large files

Advertisement

thematrixman
Joined:
Posts:
1
Location:
Canada

Avoid Truncating download of Large files

Hi,

I use the following script to download to local dir.

option batch on
option confirm off
open sftpsite -timeout=999
option transfer binary
cd /home/Large_File/
get L*.csv G:\Large_File -Delete -neweronly

How would you script/code in order to avoid downloading locally a partial file ? I have huge file on sFTP (1-2 GB). It takes about 7-8minutes daily to upload the files.

I want to execute my script only when the download is completed. How would I approach this problem?

Thanks

Reply with quote

Advertisement

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

Re: Avoid Truncating download of Large files

Sorry, I do not understand the problem.

You mix upload and download. Is there any real problem you are facing? Or are you just trying to avoid some potential problem?

Reply with quote

Advertisement

You can post new topics in this forum