On Wednesday 09 November 2005 19:43, Yann Cézard wrote: > Kern Sibbald a écrit : > >On Wednesday 09 November 2005 18:27, Yann Cézard wrote: > >>Hi list, > > > >Yes, in 1.38 if you use overrides, they will be applied after the job is > >started. There is currently no way to override the overrides from the > >command line. > > Ok, but the problem is that my restore job isn't configured to use the > "catalog-storage", but the "etud-drbd-storage" : > > The Job definition in the config file : > ------------ > Job { > Name = "Restauration ETUD dans .tmp.bacula-restores" > Type = Restore > Client="ETUD" > FileSet="DRBD" > Storage = etud-drbd-storage > Pool = Default > Messages = Standard > Where = /tmp/bacula-restores > } > ------------ > > If I do a show jobs in bconsole : > > Job: name=Restauration ETUD dans .tmp.bacula-restores JobType=82 level= > Priority=10 MaxJobs=1 > Resched=0 Times=0 Interval=1,800 Spool=0 WritePartAfterJob=0 > --> Client: name=ETUD address=ifrcir219 FDport=9102 MaxJobs=1 > JobRetention=13 days FileRetention=13 days AutoPrune=1 > --> Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula > db_user=bacula MutliDBConn=0 > --> FileSet: name=DRBD > O MZ6 > N > I /mnt/drbd > N > --> Where=/tmp/bacula-restores > --> Storage: name=etud-drbd-storage address=sauvegarde SDport=9103 > MaxJobs=1 > DeviceName=SAVE-ETUD-drbd MediaType=File StorageId=5 > --> Pool: name=Default PoolType=Backup > use_cat=1 use_once=1 acpt_any=1 cat_files=1 > max_vols=14 auto_prune=1 VolRetention=13 days > VolUse=0 secs recycle=1 LabelFormat=${JobName}-${Level} > CleaningPrefix=*None* LabelType=0 > RecyleOldest=0 PurgeOldest=0 MaxVolJobs=0 MaxVolFiles=0 > --> Messages: name=Standard > mailcmd=/usr/sbin/bsmtp -h localhost -f '(Bacula) %r' -s 'Bacula: > %t %e of %c %l' %r > opcmd=/usr/sbin/bsmtp -h localhost -f '(Bacula) %r' -s 'Bacula: > Intervention needed for %j' %r > > So why does bconsole not care about the job definition in config file > when doing > the restore ? : > ---------- > Run Restore job > JobName: Restauration ETUD dans .tmp.bacula-restores > Bootstrap: > /var/bacula/sauvegarde-dir.restore.*Console*.2005-11-09_19.34.10.bsr > Where: /tmp/bacula-restores > Replace: always > FileSet: DRBD > Client: ETUD > Storage: catalog-storage > When: 2005-11-09 19:39:19 > Catalog: MyCatalog > Priority: 10 > OK to run? (yes/mod/no): no > Job not run. > -------------- >
Restores are done by client, so the restore command doesn't know what Job did the backup, and so it probably because it takes the first storage device that matches the Media Type. If you assign a different Media Type to each of your Devices, this will not happen. This comment applies to the problem reported by Michael Galloway too. Have you tried specifing the correct Storage device by using the "mod" feature? -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users