Josip DeanovicOn Tuesday 2017-10-31 03:20:55 wrote: > On Tuesday 2017-10-31 15:00:44 Thing wrote: > > I think I have something wrong :( > > Hi Thing, > > I don't see RunBeforeJob line in the messages. > Maybe you forgot to reload the bacula configuration. > > Also, make sure that scripts you use for RunBeforeJob and for > RunAfterJob work as expected when you execute them manually. > > > The idea around backing up databases in their consistent state > goes like this (while there are other different approaches to > the problem which depend on the type of the database at hand, > this is the simplest example): > 1. dump the database into some directory (be careful about permissions) > 2. backup dumped files > 3. remove dumped files > > Disable the step 3. while you are debugging to see what was actually > dumped from the database. Also, make sure that only root can access > the directory where you intend to perform database dumps.
Also, notice the line with the error in your messages output: Could not stat "/var/lib/bacula/XXX_DBNAME_XXX.sql": ERR=No such file or directory That's why I said that you need to execute the scripts manually to check if they are running as expected. -- Josip Deanovic ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users