Forum OpenACS Q&A: Re: Backup script doesn't get sourced

Posted by Jarkko Laine on

True, it didn't have anything to do with the problem, but now I at least can check all the scheduled procs in a simple way.

I think the problem lies in this last scheduling part of the script:

if { ! [nsv_exists acs_pgbackup scheduled_p] } {                               
    ad_schedule_proc -schedule_proc ns_schedule_daily 0 0 acs_pgbackup
    nsv_set acs_pgbackup scheduled_p 1
    ns_log Notice "Backup has been scheduled."
I didn't find those nsv_* functions from aolserver api, are they possibly obsolete?

However, commenting out the if brackets didn't help the situation. I also changed the procedure definition of acs_pgbackup to ad_proc (instead of just proc), but it didn't help either.

As far as I know, the ad_schedule_proc row should be ok, and shouldn't that be the only thing that really matters?

If someone wants to check the latest version of the script as its whole, it would be totally magnificent.

The baseline still is, that not even the ns_log notice (on the last line of the script) nor any error message gets to the server log during the startup.