Please ignore this mail. I read through the manual and found the Client Run
Before Job directive.

Thanks anyways
Chandranshu

On Mon, Jun 15, 2009 at 7:29 PM, Chandranshu . <chandran...@gmail.com>wrote:

> Hi
>
> I configured the following JobDef and Job for bacula:
> JobDefs {
>   Name = "HostingFilesBackupJob"
>   Type = Backup
>   Level = Incremental
>   FileSet = "Hosting Files Set"
>   Schedule = "WeeklyCycle"
>   Storage = File
>   Messages = Standard
>   Pool = Default
>   Full Backup Pool = FreeVM-Full-Pool
>   Incremental Backup Pool = FreeVM-Inc-Pool
>   Differential Backup Pool = FreeVM-Diff-Pool
>   # This creates a snapshot and mounts it at /root/.snap
>   RunBeforeJob = "/root/backup-scripts/create-snapshot.sh"
>   # This umounts the snapshot volume and removes it from the volume group
>   RunAfterJob  = "/root/backup-scripts/remove-snapshot.sh"
>   Priority = 10
> }
>
> Job {
>   Name = "FreeVM-1 Files Backup"
>   JobDefs = "HostingFilesBackupJob"
>   Client = freevm-1-fd
>   Write Bootstrap = "/root/bacula/bin/working/freevm1.bsr"
> }
>
> In this case, the file client is on a machine different from the  on
> running the director. The scheduled job failed with the following error:
>
> 15-Jun 04:05 bacula-dir JobId 7: No prior Full backup Job record found.
> 15-Jun 04:05 bacula-dir JobId 7: No prior or suitable Full backup found in
> catalog. Doing FULL backup.
> 15-Jun 04:05 bacula-dir JobId 7: shell command: run BeforeJob
> "/root/backup-scripts/create-snapshot.sh"
> 15-Jun 04:05 bacula-dir JobId 7: Error: Runscript: BeforeJob returned
> non-zero status=208. ERR=No such file or directory
>
> Where are the before and after job scripts have to be? I assumed that they
> should be on the file client and wrote them accordingly. Are they supposed
> to be on the director machine? Any pointers will be greatly appreciated.
>
> Thanks and regards
> Chandranshu
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to