Variable to use to copy yesterday's logfile to archive folder - VisualCron - Forum

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


nprinslo
15 years ago
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
15 years ago
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
15 years ago
ok, that is what I thought, but where do I add the -1?

log_server{DATENOWADD(yyyy-MM-dd).txt ?
nprinslo
15 years ago
ah, got it - log_server{DATENOWADD(Days|-1|yyyyMMdd)}.txt
Scroll to Top