• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

FTP Script? Mget with options to skip duplicates?

I've been unable to find useful help from google searches. I want a script that will login to an ftp and get multiple files, but skip duplicates. It will be logging into a server, and the server will be adding backup files daily, but I don't want to keep copying the same files.

open ftp.ftpsite.com
username
password
binary
mget *.* (OPTIONS to copy all but skip duplicates?)
quit


What would a batch file look like that does this? Thanks!! 😀
 
I dont think you can do that, the best way is to try it out.
I had this same setup when copying DAT files for mcafee ages ago, it just got the same files and wrote over the existing ones.
 
use a scripting language, get the ls listing and parse through it and the local directory to find what files you need to get.

other option would be mget *.*, then mv *.* archive (move stuff to archive folder) then you would just get what is in one directory.

Perl or nscftp could probably do this pretty easy.
 
yea, I doubt you'll be able to do it easily with just FTP + command line. Use perl/php or something with a built in FTP client, and use the languages scripting ability to drive its ftp client directly.
 
Not sure about command line in windows FTP, but you can write an ftp script, and call it with ftp -s:scriptpath (or something like that)

then you MIGHT be able to do an if exists goto next statement to skip over it. Does vbscript have ftp abilities?
 
Back
Top