I would like to create a batch processor to backup my database everyday at 22:00.
I use the Scheduler plugin with this code:
- Code: Select all
plugins.scheduler.addCronJob(jobname, "* 00 22 * * ?", globals.Backup_DB,startDate,endDate,args)
When I strat this method from client, it's work well but when I shutdown the client, this process is remove automatically.
How can I make a batch process which call a global method every day at 22:00 when all clients are close.
Thanks