Hello, Arno Lehmann a écrit : > Hi, > > On 2/27/2006 2:32 PM, Baptiste Malguy wrote: > >> Hello, >> >> Anyone willing to advise me for my specific issue please ? For the >> moment, I hold on blocked by this problem, unfortunately, and I would >> appreciate so much some help. >> >> Thanks guys. >> >> Baptiste Malguy a écrit : >> >>> Hello, >>> >>> I have a question related to cloning jobs. >>> >>> I've just re-read my mail before pushing the "Send" button, and ... a >>> little long I'm afraid. >>> >>> I want to write my full backups on two different storages (disk + DLT4). >>> >>> To achieve this goal, I use the Run attribute of the Job resource, >>> providing the same job name: that's job cloning. >>> >>> The job is normally an incremental one, that becomes a full one once a >>> month thanks to the corresponding schedule. >>> >>> Only the monthly full backups have to go on the tapes. Not the >>> incremental ones neither the potential full ones that may occur because >>> FileSet resource has been modified. >>> >>> And that's the point: how to avoid these random full backups to go on >>> the tape, that is, how to prevent the original job (writing to disk) to >>> clone itself (to write on tape). > > > I've never actually used the python interface, but it might be possible > to do this using python events. > >>> I thought about using Run Before Job attribute, to prevent the cloned >>> job to work returning a non-zero value, but I don't know what to provide >>> to the run command to let it know to return 0 or non-zero. >>> >>> The command needs: >>> - "I'm a clone" or "I'm writing to tapes" > > > No idea if this is possible, but you mght look for a running job, > started a short time ago, with the same name in the catalog. The > destination should be easier to find. > >>> - and "I'm a full backup" > > > Thats already possible with the objects Bacula provides to its events, I > think. Yes. > >>> - and "current date" (because of random full backups) > > > Rather simple in python :-) although having access to the schedules > might be the more thorough solution. Same as above: objects provided by Bacula to its events.
> >>> I can't provide to the command, as long as I know, "I'm a clone" neither >>> "I'm writing to tapes". > > > This might not be much help, but perhaps a starting point for you. Not that much for the moment unfortunately until either I learn Python either the job move/replication/... is improved Anyway, thank you for your answer. I have to investigate deeper to check what I may have neglected. -- Baptiste MALGUY - IT Engineer SOLSOFT PGP Fingerprint: 2A90 B6D1 855F 1584 FE68 94AC CCD6 36D0 3DC7 DCB8 www.solsoft.com - phone: +33 1 47 15 04 00 - fax: +33 1 47 15 55 09 How secure networks are managed. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users