Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


nprinslo
2010-01-11T10:26:18Z
Hi,

Is there a variable, or addition to a current variable I can use to archive old log files.
I am currently using log_server{DATA(LastWorkday|yyyyMMdd)}.txt, but clearly this only working for Mon-Fri files.

Looking through the variables there only seems to be options to Add days to current date (DATENOWADD)?

Many thanks
Neville
Sponsor
Forum information
Support
2010-01-11T10:32:48Z
Yes, you can use DATENOWADD and use minus (-) values - on Day for example.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
nprinslo
2010-01-11T10:38:17Z
ok, that is what I thought, but where do I add the -1?

log_server{DATENOWADD(yyyy-MM-dd).txt ?
nprinslo
2010-01-11T10:42:27Z
ah, got it - log_server{DATENOWADD(Days|-1|yyyyMMdd)}.txt
Scroll to Top