Solved

Command Line ftp switch for overwrite option

Posted on 2006-11-14
6
816 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
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 25 total points
ID: 17941547
There is no FTP switch that I know. dragon-it is correct.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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