**IT question alert**
Author
Discussion

agent006

Original Poster:

12,058 posts

295 months

Sunday 20th April 2003
quotequote all
My website only holds its logs for 5 days, being a boring geeky type person i'd like to save these to my pc so i don't lose them after 5 days. So is there any way to automate something that will FTP to the directory and copy any new files every x days? Confusingly technical answers welcome.

chris.mapey

4,778 posts

298 months

Sunday 20th April 2003
quotequote all
lil'missleadfoot speaks

"What OS are you using? What FTP?"

Is this English? Means nothing to me....

Chris

agent006

Original Poster:

12,058 posts

295 months

Sunday 20th April 2003
quotequote all
I'm on Windows 2000, my website is on IIS5 i think. i'm using any combination of any FTP programs i can find (ironically the best is the built in windows explorer ftp).

_DJ_

5,057 posts

285 months

Sunday 20th April 2003
quotequote all
you should be able to create a scheduled task (or an AT job) which uses FTP to transfer, then delete the files...

alunr

1,676 posts

295 months

Tuesday 22nd April 2003
quotequote all
Get yourself a copy of CuteFTP - create a macro and then schedule it using AT or windows Scheduler.

ErnestM

11,621 posts

298 months

Tuesday 22nd April 2003
quotequote all
Why not just write a simple command line batch job and automate the process using the scheduler in Win2K. Alternatively, you could just have the webserver start a new log file every day?

ErnestM

agent006

Original Poster:

12,058 posts

295 months

Tuesday 22nd April 2003
quotequote all

ErnestM said: Why not just write a simple command line batch job and automate the process using the scheduler in Win2K. Alternatively, you could just have the webserver start a new log file every day?

ErnestM



If i knew how to write command line batch jobs, i'd do it. Can't alter the way it logs, it's a hosted virtual site type thing. It does a new log every day, but each new one erases the oldest one.

ErnestM

11,621 posts

298 months

Tuesday 22nd April 2003
quotequote all
Ask your host not to erase the old one until he emails it to you or places it in a file that you have access to. Sorry about the other suggestions, thought you had the server in house...

ErnestM

agent006

Original Poster:

12,058 posts

295 months

Tuesday 22nd April 2003
quotequote all
I'll try all the suggestions. My hosting company has just upgraded its packages so it migh change the logging.