Why use a Servoy cronjob to schedule a database backup when you can do it all on the server itself?
I assume you use pg_dump/pg_dumpall for the backup. Depending on the OS you are using you can setup a server cronjob to trigger this.
What OS are you using ?
IT2Be:
Hi Robert, I asked almost the same question with the following reply
Because I’ve a form on Servoy where I change easily the frequency of backup.
With cronTimings I think it easy and I don’t know postgres rather well to do that with tool.
Ah!
But how do you access the form in a batchprocessor?
An option would be to make it data(base) driven but that does mean you have to let it remove the current (Servoy) cronjob and load the new one.
I think a cronjob on the server is easier to change.
An option would be to make it data(base) driven but that does mean you have to let it remove the current (Servoy) cronjob and load the new one.
Excactly what I thought of. Starting and stopping the cronjob is very easy because you already know the name.
I don’t really agree it is necessarily easier to create a cronjob on the server. that depends on rights that you want/can give to the user that is allowed to change these settings.
I do agree in general that it would be easier/more flexible/more controllable to let the appropriate db tools do the job.
Ehum… You just use a solution as batchprocessor… you can also open the same solution as a client and alter the settings for the schedule by going to the form.
As I understand it, he wants to have scheduled processes and through a GUI he created be able to edit their schedule.
pbakker:
Ehum… You just use a solution as batchprocessor… you can also open the same solution as a client and alter the settings for the schedule by going to the form.
As I understand it, he wants to have scheduled processes and through a GUI he created be able to edit their schedule.
Maybe I could join Robert in this ‘intensive’ session.
Have a WebClient solution for an Art Exhibition company that display 3 x GIFs of artists pictures on all the web pages and changes them every 10 seconds. Set the GIF rotation up as batch Processor on server and hums along beautifully.
However, we also have WebClient forms for potential exhibitors/visitors to apply for tickets etc and discovered that if they typing into a field when the GIFs are changed the field focus is lost - can get quite frustrating.
Doing an applicationSavedata() immediately before the rotation saves the field contents but would welcome ideas to avoid the Batch Processor inteferring with form filling.