Hey Guys -
I have a remote FTP server which I connect to 1 - 5 times a day , download all files & folders, then delete them. The contents randomly range between a few kilobytes to up to 30gb in size each and may be located in the root of the folder or nested in 1 or more folders.
What I'm trying to do is find a way to automate this process for me. The best option I've found so far is WS_FTP's Scripting Utility. I tried using WS_FTP's Synchronization, but when testing it failed to match (and therefore not mark to download) files I already had locally.
I'm not dedicated to using WS_FTP, it's just the best option I've found so far. I'll use any application / script that provides the most features I am wanting - even if I have to purchase it.
- As mentioned, I manually do the above task as needed. If I get a script working the way I want and schedule it as a task to run every X hours, what happens if it starts to download a 20gb file at 3:00pm then re-runs per schedule again at 4:00pm? Would there not be confliction? Perhaps I can add a clause to only run if the file/script isn't currently active. If so, how?
#2 Delete Folders Post Transfer
- I've almost got the script where I want it. It logs into the FTP site, downloads all files and folders, runs a command to delete transferred files, then closes. When testing different scenarios, it worked great - except for one thing: when it deletes post transfer, it only deletes files - not folders. It deletes the files from within transferred folders, but leaves them on the server empty. Perhaps even a way to set variables in script for folders appearing in DIR and a command after transfer to delete them?
#3 Transfer Control
- During the day, I frequently connect to this server via RDP from a remote site. It would be nice to be able to view the progress of the transfer is any type of GUI - even if in a terminal - just something better than the log file if possible. Any way I could Pause it? If I stop the script (therefore stopping the download) and started it again a few minutes later, would it resume transfers or overwrite?
#4 Speed Control
- I can't find a way to limit the download speed in WS_FTP not only in scripting, but even when using the full application / GUI
. It's the #1 thing I don't like about the app and have looked everywhere locally and on Goggle. Is it possible? My connection isn't great, but am hoping to get QOS on the router level working well to help with this, too.
My Current Script
Here's the script I am currently testing which has the results mentioned above:
; FTP Sync to C:\- Complete - / Revised 11/1/14
ONERROR GOTO END
LCD "C:\- Complete -\Test2"
ONERROR GOTO ENDCLOSE
Well, there's all of the details. The system this will run on is a Windows 8.1 Update 1 x64 system. If I can get this working, it would be a HUGE help!