Automate Sync based on remote file timestamp.

Advertisement

joebhoy
Joined:
Posts:
5
Location:
Glasgow

Automate Sync based on remote file timestamp.

Hi All,
Looking for some help on this. I have remote server I connect to where I download zip files. Each zip file has a corresponding *.ctl filename.
eg. Bigfile.zip bigfile.ctl
On the local machine, once the zip files are downloaded they are uncompressed and then removed. the *.ctl files remain
I need to be able to compare timestamp on bigfile.ctl on the local and remote machine. and if theres a difference then download bigfile.zip. thats the intention anyway.
I've no idea as scripting so appreciate any help on this.

cheers
Joe.

Reply with quote

Advertisement

joebhoy
Joined:
Posts:
5
Location:
Glasgow

I've been thinking.

Maybe I could check the timestamp on the file. If its less than 1 day old I could download it. If this script runs evey 24 hours then it should only do this once.
Is that possible ?

Reply with quote

Advertisement

You can post new topics in this forum