Command Line ftp switch for overwrite option

Hi Experts.

I am running an automated ftp upload out of hours on a scheduled task from a Win2k server to my home server.
I am using this text file run from a batch file:

open myftp.server.com
my_username
my_password
bin
prompt
mput *.zip
bye

Is there a switch that I can add to only upload if the files are newer (like in xcopy).

Thanks

Nick
LVL 13
Nick DennyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
The obvious way I can think of doing its to use xcopy...

xcopy source to a second local dest dir with /d and the capture the list of files it copies then use that to produce the ftp script with individual entries.

Can't write it right now but maybe that will givw you a clue to one way...
0
 
Nick DennyAuthor Commented:
Thanks dragon-it.

Good call.
If the plain answer to the question is no - then I will have to go with something like that or I have other options.
At present one of the files is about 80MB and growing (but it doesnt change over the weekend and neither do the others). So I was thinking rather than tinkering with the sheduler, there may be a simple switch.
The no-brainer answer is to schedule just Mon-Fri.
Also, I could move files on my home server Mon - Fri, then deny permissions to overwrite.
If the answer is indeed "no" - could you confirm this please and you have the points.

Bottom line is - I couldnt find a switch and just wondered if there was one.

Cheers

Nick
0
 
SteveGTRConnect With a Mentor Commented:
There is no FTP switch that I know. dragon-it is correct.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Steve KnightIT ConsultancyCommented:
Is it worth me putting a script like that together for you - I.e. a second holding area on the source server or is that impratical / not wanted.

Steve
0
 
Nick DennyAuthor Commented:
Thanks for the offer but I would only be asking you to do something I could work around easily.
Really appreciate the offer though.
Thanks again
Nick.
0
 
Steve KnightIT ConsultancyCommented:
Ok, thanks for the answer / points

Steve
0
All Courses

From novice to tech pro — start learning today.