Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Command Line ftp switch for overwrite option

Posted on 2006-11-14
6
Medium Priority
?
830 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:Nick Denny
  • 3
  • 2
6 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 400 total points
ID: 17941196
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
 
LVL 13

Author Comment

by:Nick Denny
ID: 17941341
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
 
LVL 30

Assisted Solution

by:SteveGTR
SteveGTR earned 100 total points
ID: 17941547
There is no FTP switch that I know. dragon-it is correct.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 43

Expert Comment

by:Steve Knight
ID: 17941667
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
 
LVL 13

Author Comment

by:Nick Denny
ID: 17945567
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
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17945580
Ok, thanks for the answer / points

Steve
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question