Solved

Command Line ftp switch for overwrite option

Posted on 2006-11-14
6
813 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 100 total points
Comment Utility
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
Comment Utility
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 25 total points
Comment Utility
There is no FTP switch that I know. dragon-it is correct.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 43

Expert Comment

by:Steve Knight
Comment Utility
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
Comment Utility
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
Comment Utility
Ok, thanks for the answer / points

Steve
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now