Automating Synchronization
Ok, First I am new to WinSCP but I am not new to Scripting or FTP/SFTP.
I have been reading on the synchronization options in WinSCP and so far I like what I see, however, I have additional criteria in my Synchronization routine.
First I have my local drive which I want to keep updated with the data from my remote host. No problem thus far. The problem lies in the storage space I have available locally. I need to keep it carefully monitored. To that end I need to keep only about 3 days worth of data in the folder.
Remotely, I have upwards of 10 days worth of data (or more) and need to keep that there. My problem is Synching the data, will bring ALL the older data that has been removed locally (or more correctly archived as opposed to removed) during the Sync process. All the files have embeded in the file names a formatted date. (i.e. the file could be named MyData-2010-02-16-2200-2300-09355787.gz). Is there a way to automate the getting/synchronizing of files that are less than 3 days old? I also need this to be automated (or run by a scheduled task in Windows)
Any assistance is greatly appreciated.
I have been reading on the synchronization options in WinSCP and so far I like what I see, however, I have additional criteria in my Synchronization routine.
First I have my local drive which I want to keep updated with the data from my remote host. No problem thus far. The problem lies in the storage space I have available locally. I need to keep it carefully monitored. To that end I need to keep only about 3 days worth of data in the folder.
Remotely, I have upwards of 10 days worth of data (or more) and need to keep that there. My problem is Synching the data, will bring ALL the older data that has been removed locally (or more correctly archived as opposed to removed) during the Sync process. All the files have embeded in the file names a formatted date. (i.e. the file could be named MyData-2010-02-16-2200-2300-09355787.gz). Is there a way to automate the getting/synchronizing of files that are less than 3 days old? I also need this to be automated (or run by a scheduled task in Windows)
Any assistance is greatly appreciated.
_________________
peg110
peg110