I've been looking through the forums, docs, etc for a while now and I'm stumped..
What I'm trying to do basically copy files from my FTP server that are new. But knowing that my internet connection might not be as reliable as it should be, instead of setting my -filemask to 1day, I want to set it to 3 days, but not overwrite a file if it has already been downloaded. I just can't make that happen using 'get' and the time pattern options, etc. SO.. after scouring the forums, I found out that the 'synchronize' parameter would work; and it does except that while it doesn't download the files the that are already present within the -filemask time parameter, it still creates the folder structure. I end up with a bunch of empty folders that I don't want. Is there a way around this?
Ideally I would like to use the get with a file wildcard and time pattern. This is partly due to the fact that I have a number of files that I do not necessarily want to Synchronize..
Hopefully someone can shed some light on this for me.
Here's a snippet of my scripts
Barry
# Automatically abort script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
#Get Script
# Connect using a password
open ftp://user:***@host.com
# Change remote directory
cd /home/user/private/files
# Force binary mode transfer
option transfer binary
# Download file to the local directory K:\
get file1*.*>2H k:\files
get file3*.*>2H k:\files
# Disconnect
close
exit
#Synchronize script
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open ftp://user:xxxxx@host.com
# Change remote directory
cd /home/user/private/files
# Force binary mode transfer
option transfer binary
# Download file to the local directory K:\
synchronize -filemask=*.*>1D local K:\sync
# Disconnect
close