From: Kern S. <ke...@si...> - 2003-12-22 11:21:05
|
On Mon, 2003-12-22 at 11:14, Stanislav Tvrdy wrote: > Hi all, >=20 > I have problem with recycling mounted volume. First job in my backup=20 > calls shell script for mounting volume (this job is admin job). Next job=20 > is backup job and before starting it purges and recycles volume which is=20 > mounted. But after volume is recycled storage daemon wants to mount this=20 > volume again. Why? Previous versions ( 1.27 - 1.31a ) didn't want this=20 > mount after recycling volume. Now I am on 1.32d. Previous versions of Bacula didn't do the recycling correctly. The behavior you describe for 1.32d seems correct to me, unless I am missing something. The Volume use duration has been exceeded, the volume is recycled, and the Storage daemon is told to recycle the volume, which it does. The fact that it behaves differently just means that I fixed what I considered to be a bug. What do you think is incorrect? Regards, Kern >=20 >=20 > Log from 1.32d: >=20 > prgback-dir: RunBefore: Connecting to Director prgback:9101 > prgback-dir: RunBefore: 1000 OK: prgback-dir Version: 1.32d (02 Nov 2003) > prgback-dir: RunBefore: mount DLTDrive > prgback-dir: RunBefore: Using default Catalog name=3DMyCatalog DB=3Dbacul= a > prgback-dir: RunBefore: 3001 Device /dev/nst0 is mounted with Volume=20 > "Ctvrtek-1-1" > prgback-dir: RunBefore: You have messages. > prgback-dir: Start Admin JobId 4144, Job=3DFirstJob.2003-12-19_00.01.00 > prgback-dir: Bacula 1.32d (02Nov03): 19-Dec-2003 00:01 > JobId: 4144 > Job: FirstJob.2003-12-19_00.01.00 > Start time: 19-Dec-2003 00:01 > End time: 19-Dec-2003 00:01 > Termination: Admin OK >=20 > prgback-dir: Begin pruning Jobs. > prgback-dir: No Jobs found to prune. > prgback-dir: Begin pruning Files. > prgback-dir: No Files found to prune. > prgback-dir: End auto prune. >=20 > prgback-dir: Created new FileSet record "lnpha" 2003-12-19 00:01:10 > prgback-dir: Start Backup JobId 4145, Job=3Dlnpha.2003-12-19_00.01.01 > prgback-dir: Max configured use duration exceeded. Marking Volume=20 > "Streda-1-1" as Used. > prgback-dir: Pruned 4 Jobs on Volume Ctvrtek-1-1 from catalog. > prgback-dir: There are no Jobs associated with Volume Ctvrtek-1-1.=20 > Marking it purged. > prgback-dir: Recycled volume "Ctvrtek-1-1" > prgback-sd: Please mount Volume "Ctvrtek-1-1" on Storage Device "HP DLT=20 > 1" for Job lnpha.2003-12-19_00.01.01 > Use "mount" command to release Job. > prgback-sd: Recycled volume "Ctvrtek-1-1" on device /dev/nst0, all=20 > previous data lost. > prgback-dir: Bacula 1.32d (02Nov03): 19-Dec-2003 02:10 > JobId: 4145 > Job: lnpha.2003-12-19_00.01.01 > Backup Level: Full > Client: lnpha-fd > FileSet: "lnpha" 2003-12-19 00:01:10 > Start time: 19-Dec-2003 00:01 > End time: 19-Dec-2003 02:10 > FD Files Written: 3,660 > SD Files Written: 3,660 > FD Bytes Written: 19,221,179,589 > SD Bytes Written: 19,221,776,872 > Rate: 2478.6 KB/s > Software Compression: None > Volume name(s): Ctvrtek-1-1 > Volume Session Id: 1 > Volume Session Time: 1071767564 > Last Volume Bytes: 19,239,665,877 > Non-fatal FD errors: 1 > SD Errors: 0 > FD termination status: OK > SD termination status: OK > Termination: Backup OK >=20 >=20 >=20 > Log from 1.31a: >=20 > prgback-dir: RunBefore: Connecting to Director prgback:9101 > prgback-dir: RunBefore: 1000 OK: prgback-dir Version: 1.31a (02 Aug 2003) > prgback-dir: RunBefore: mount DLTDrive > prgback-dir: RunBefore: Using default Catalog name=3DMyCatalog DB=3Dbacul= a > prgback-dir: RunBefore: 3001 Mounted Volume: Ctvrtek-2 > prgback-dir: RunBefore: 3001 Device /dev/nst0 is mounted with Volume=20 > "Ctvrtek-2" > prgback-dir: RunBefore: You have messages. > prgback-dir: Start Admin JobId 3387, Job=3DFirstJob.2003-10-31_00.01.00 > prgback-dir: Bacula 1.31a (02Aug03): 31-Oct-2003 00:01 > JobId: 3387 > Job: FirstJob.2003-10-31_00.01.00 > Start time: 31-Oct-2003 00:01 > End time: 31-Oct-2003 00:01 > Termination: Admin OK >=20 > prgback-dir: Begin pruning Jobs. > prgback-dir: No Jobs found to prune. > prgback-dir: Begin pruning Files. > prgback-dir: No Files found to prune. > prgback-dir: End auto prune. >=20 > prgback-dir: Start Backup JobId 3388, Job=3Dlnpha.2003-10-31_00.01.02 > prgback-dir: Max configured use duration exceeded. Marking Volume=20 > "Streda-2" as Used. > prgback-dir: Pruned 17 Jobs on Volume Ctvrtek-2 from catalog. > prgback-dir: Recycled volume "Ctvrtek-2" > prgback-sd: Recycled volume "Ctvrtek-2" on device /dev/nst0, all=20 > previous data lost. > prgback-dir: Bacula 1.31a (02Aug03): 31-Oct-2003 01:51 > JobId: 3388 > Job: lnpha.2003-10-31_00.01.02 > Backup Level: Differential, since=3D2003-10-25 00:01:19 > Client: lnpha-fd > FileSet: "lnpha" 2003-10-14 00:01:46 > Start time: 31-Oct-2003 00:01 > End time: 31-Oct-2003 01:51 > FD Files Written: 794 > SD Files Written: 794 > FD Bytes Written: 17,411,855,048 > SD Bytes Written: 17,411,985,792 > Rate: 2625.0 KB/s > Software Compression: None > Volume name(s): Ctvrtek-2 > Volume Session Id: 35 > Volume Session Time: 1067244177 > Last Volume Bytes: 17,428,112,006 > Non-fatal FD errors: 0 > SD Errors: 0 > FD termination status: OK > SD termination status: OK > Termination: Backup OK >=20 >=20 >=20 > Stanislav Tvrdy > Elanor >=20 > ______________________________________________________________________ >=20 > # > # Default Bacula Director Configuration file > # > # The only thing that MUST be changed is to add one or more > # file or directory names in the Include directive of the > # FileSet resource. > # > # For Bacula release 1.31 (22 January 2003) -- redhat 7.3 > # > # You might also want to change the default email address > # from root to your address. See the "mail" and "operator" > # directives in the Messages resource. > # >=20 > Director { # define myself > Name =3D prgback-dir > DIRport =3D 9101 # where we listen for UA connections > QueryFile =3D "/etc/bacula/query.sql" > WorkingDirectory =3D "/var/state/bacula" > PidDirectory =3D "/var/run" > SubSysDirectory =3D "/var/lock/subsys" > Maximum Concurrent Jobs =3D 1 > Messages =3D Standard > } >=20 >=20 > ##################### > # # > # Definice jobu # > # # > ##################### >=20 >=20 >=20 > # PRVNI JOB - pro primontovani pasky >=20 > Job { > Name =3D "FirstJob" > Type =3D Admin > Client=3Dprgback-fd=20 > Schedule =3D "Tydenni" > Messages =3D Standard > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > Storage =3D DLTDrive > FileSet=3D"FirstJob" > Pool =3D Denni > } >=20 >=20 > # lnpha >=20 > Job { > Name =3D "lnpha" > Type =3D Backup > Client=3Dlnpha-fd=20 > FileSet=3D"lnpha" > Schedule =3D "lnpha" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/lnpha.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgapp3 >=20 > Job { > Name =3D "prgapp3" > Type =3D Backup > Client=3Dprgapp3-fd=20 > FileSet=3D"prgapp3" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgapp3.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgfin >=20 > Job { > Name =3D "prgfin" > Type =3D Backup > Client=3Dprgfin-fd=20 > FileSet=3D"prgfin" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgfin.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgora1 >=20 > Job { > Name =3D "prgora1" > Type =3D Backup > Client=3Dprgora1-fd=20 > FileSet=3D"prgora1" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgora1.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgora2 >=20 > Job { > Name =3D "prgora2" > Type =3D Backup > Client=3Dprgora2-fd=20 > FileSet=3D"prgora2" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgora2.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgora4 >=20 > Job { > Name =3D "prgora4" > Type =3D Backup > Client=3Dprgora4-fd=20 > FileSet=3D"prgora4" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgora4.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > # ClientRunBeforeJob =3D "c:/bacula/bin/ora_stop.cmd" > # ClientRunAfterJob =3D "c:/bacula/bin/ora_start.cmd" > } >=20 >=20 > # prgfs1 - root >=20 > Job { > Name =3D "prgfs1" > Type =3D Backup > Client=3Dprgfs1-fd=20 > FileSet=3D"prgfs1" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgfs1.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > #RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgfs1 - home >=20 > Job { > Name =3D "prgfs1-home" > Type =3D Backup > Client=3Dprgfs1-fd=20 > FileSet=3D"prgfs1-home" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgfs1-home.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgfs1 - ela >=20 > Job { > Name =3D "prgfs1-ela" > Type =3D Backup > Client=3Dprgfs1-fd=20 > FileSet=3D"prgfs1-ela" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgfs1-ela.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prghpux >=20 > Job { > Name =3D "prghpux" > Type =3D Backup > Client=3Dprgback-fd=20 > FileSet=3D"prghpux" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prghpux.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgapp1 >=20 > Job { > Name =3D "prgapp1" > Type =3D Backup > Client=3Dprgapp1-fd=20 > FileSet=3D"prgapp1" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgapp1.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prghr1 >=20 > Job { > Name =3D "prghr1" > Type =3D Backup > Client=3Dprghr1-fd=20 > FileSet=3D"prghr1" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prghr1.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgaix >=20 > Job { > Name =3D "prgaix" > Type =3D Backup > Client=3Dprgback-fd=20 > FileSet=3D"prgaix" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgaix.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prggw >=20 > Job { > Name =3D "prggw" > Type =3D Backup > Client=3Dprggw-fd=20 > FileSet=3D"prggw" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prggw.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgemzdy >=20 > Job { > Name =3D "prgemzdy" > Type =3D Backup > Client=3Dprgemzdy-fd=20 > FileSet=3D"prgemzdy" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgemzdy.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # prgback >=20 > Job { > Name =3D "prgback" > Type =3D Backup > Client=3Dprgback-fd=20 > FileSet=3D"prgback" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > Write Bootstrap =3D "/var/state/bacula/prgback.bsr" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > } >=20 >=20 > # mesicni zaloha EZM >=20 > Job { > Name =3D "EZM" > Type =3D Backup > Client=3Dprgback-fd=20 > FileSet=3D"EZM" > level =3D Differential > Storage =3D DDS-4 > Messages =3D Standard > Pool =3D EZM > RunBeforeJob =3D "/usr/bin/bac_bef_EZM" > RunAfterJob =3D "/usr/bin/bac_aft_EZM" > Write Bootstrap =3D "/var/state/bacula/EZM.bsr" > } >=20 >=20 > # Backup the catalog database (after the nightly save) >=20 > Job { > Name =3D "BackupCatalog" > Type =3D Backup > Client=3Dprgback-fd=20 > FileSet=3D"Catalog" > # Schedule =3D "WeeklyCycleAfterBackup" > Schedule =3D "Tydenni" > Storage =3D DLTDrive > Messages =3D Standard > Pool =3D Denni > # This creates an ASCII copy of the catalog > ## RunBeforeJob =3D "/etc/bacula/make_catalog_backup" > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > # This deletes the copy of the catalog > ## RunAfterJob =3D "/etc/bacula/delete_catalog_backup" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > #RunAfterJob =3D "/etc/bacula/delete_catalog_backup;/usr/bin/bac_aft_l= _job" > #RunAfterJob =3D "/usr/bin/bac_aft_l_job" > Write Bootstrap =3D "/var/state/bacula/BackupCatalog.bsr" > } >=20 >=20 > # POSLEDNI JOB - pro odmontovani pasky >=20 > Job { > Name =3D "LastJob" > Type =3D Admin > Client=3Dprgback-fd=20 > Schedule =3D "Tydenni" > Messages =3D Standard > RunBeforeJob =3D "/usr/bin/bac_bef_job %n" > RunAfterJob =3D "/usr/bin/bac_aft_job %n" > ## RunAfterJob =3D "/usr/bin/bac_aft_l_job" > Pool =3D Denni > Storage =3D DLTDrive > FileSet=3D"LastJob" > } >=20 >=20 > # Standard Restore template, to be changed by Console program >=20 > Job { > Name =3D "RestoreFiles" > Type =3D Restore > Client=3Dprgback-fd=20 > FileSet=3D"Full Set" > Storage =3D DLTDrive > # Messages =3D Standard > Messages =3D Restore > Pool =3D Default > Where =3D /opt/backup/restore > } >=20 >=20 > ########################## > # # > # Zalohovane soubory # > # # > ########################## >=20 > # prgback >=20 > FileSet { > Name =3D "prgback" > Include =3D signature=3DMD5 {=20 > /etc > /home > /root/.gnupg > /usr/local > /var/lib/rpm > /var/spool/cron > /opt/backup/informix > /opt/backup/oracle/blaora > /opt/backup/oracle/prgasp1 > /opt/backup/oracle/prghpux > /opt/backup/oracle/prgora3 > /opt/backup/ASP > /opt/backup/linux_daily > } > Exclude =3D { } > } >=20 >=20 > # prggw >=20 > FileSet { > Name =3D "prggw" > Include =3D signature=3DMD5 {=20 > /etc > /var/lib/rpm > /var/spool/cron > } > Exclude =3D { } > } >=20 >=20 > # prgemzdy >=20 > FileSet { > Name =3D "prgemzdy" > Include =3D signature=3DMD5 {=20 > /etc > /root/.gnupg > /var/lib/rpm > /var/spool/cron > /opt/backup/pmsvdos.tar.gpg > /opt/backup/prgemzdy.dmp.gpg > } > Exclude =3D { } > } >=20 >=20 > # prgapp1 >=20 > FileSet { > Name =3D "prgapp1" > Include =3D signature=3DMD5 {=20 > f:\doc\2000\Cs > f:\doc\2002\Cs > } > Exclude =3D { } > } >=20 >=20 > # prgapp3 >=20 > FileSet { > Name =3D "prgapp3" > Include =3D signature=3DMD5 {=20 > d:\harrep > d:\oradata > } > Exclude =3D { } > } >=20 >=20 > # prgfin >=20 > FileSet { > Name =3D "prgfin" > Include =3D signature=3DMD5 {=20 > e:\oradata > e:\oralog > } > Exclude =3D { } > } >=20 >=20 > # prgora1 >=20 > FileSet { > Name =3D "prgora1" > Include =3D signature=3DMD5 {=20 > e:\oradata > e:\oralog > } > Exclude =3D { } > } >=20 >=20 > # prgora2 >=20 > FileSet { > Name =3D "prgora2" > Include =3D signature=3DMD5 {=20 > e:\oradata > e:\oralog > } > Exclude =3D { } > } >=20 >=20 > # prgora4 >=20 > FileSet { > Name =3D "prgora4" > Include =3D signature=3DMD5 {=20 > e:\oradata > e:\oralog > } > Exclude =3D { } > } >=20 >=20 > # prgfs1 >=20 > FileSet { > Name =3D "prgfs1" > Include =3D signature=3DMD5 {=20 > /etc > /tftpboot > /var/lib/rpm > /var/spool/cron > /var/spool/mail > /opt/webs > /fs/sdd3/sw/EG/ElanorG > /fs/sdd3/sw/EG/pElanorG > /fs/sdd3/sw/qmark > } > Exclude =3D { } > } >=20 >=20 > # prgfs1 - home >=20 > FileSet { > Name =3D "prgfs1-home" > Include =3D signature=3DMD5 {=20 > /fs/sdc1 > } > Exclude =3D { > /fs/sdc1/mqueue > /fs/sdc1/ora > /fs/sdc1/space* > /fs/sdc1/zilina > } > } >=20 >=20 > # prgfs1 - ela >=20 > FileSet { > Name =3D "prgfs1-ela" > Include =3D signature=3DMD5 {=20 > /fs/sdb1 > } > Exclude =3D { } > } >=20 >=20 > # prghpux >=20 > FileSet { > Name =3D "prghpux" > Include =3D signature=3DMD5 {=20 > /mnt_b/prghpux/etc > /mnt_b/prghpux/fin/home > /mnt_b/prghpux/fin/pmsv > } > Exclude =3D { > /mnt_b/prghpux/fin/home/oracle > /mnt_b/prghpux/fin/home/ifx5 > /mnt_b/prghpux/fin/home/ifx6 > /mnt_b/prghpux/fin/home/ifx7 > /mnt_b/prghpux/fin/pmsv/install > } > } >=20 >=20 > # prgaix >=20 > FileSet { > Name =3D "prgaix" > Include =3D signature=3DMD5 {=20 > /mnt_b/prgaix/ora3/zalohy > } > Exclude =3D { } > } >=20 >=20 > # prghr1 >=20 > FileSet { > Name =3D "prghr1" > Include =3D signature=3DMD5 {=20 > d:\backup > } > Exclude =3D { } > } >=20 >=20 > # lnpha >=20 > FileSet { > Name =3D "lnpha" > Include =3D signature=3DMD5 {=20 > "c:/winnt/profiles/administrator/Start Menu/Programs/Lotus Applicatio= ns" > d:\notes > e:\notes\data\archiv > e:\notes\data\vis\monitor.nsf > c:\winnt\notes.ini > } > Exclude =3D { } > } >=20 >=20 > # prgterm >=20 > FileSet { > Name =3D "prgterm" > Include =3D signature=3DMD5 {=20 > "c:/Documents and Settings" > } > Exclude =3D { } > } >=20 >=20 > # mesicni zaloha EZM >=20 > FileSet { > Name =3D "EZM" > Include =3D signature=3DMD5 {=20 > /opt/backup/EZM > } > Exclude =3D { } > } >=20 >=20 > # Full Set >=20 > FileSet { > Name =3D "Full Set" > Include =3D signature=3DMD5 {=20 > / > } > Exclude =3D { } > } >=20 >=20 > # FirstJob >=20 > FileSet { > Name =3D "FirstJob" > Include =3D signature=3DMD5 {=20 > /etc/bacula/bacula-dir.conf > } > Exclude =3D { } > } >=20 >=20 > # LastJob >=20 > FileSet { > Name =3D "LastJob" > Include =3D signature=3DMD5 {=20 > /etc/bacula/bacula-dir.conf > } > Exclude =3D { } > } >=20 >=20 > # This is the backup of the catalog >=20 > FileSet { > Name =3D "Catalog" > Include =3D signature=3DMD5 { > /var/state/bacula/bacula.sql > } > } >=20 >=20 > ################## > # # > # Scheduling # > # # > ################## >=20 >=20 > # > # When to do the backups, full backup on first sunday of the month, > # differential (i.e. incremental since full) every other sunday, > # and incremental backups other days > Schedule { > Name =3D "WeeklyCycle" > Run =3D Full 1st sun at 1:05 > Run =3D Differential 2nd-5th sun at 1:05 > Run =3D Incremental mon-sat at 1:05 > } >=20 > Schedule { > Name =3D "Tydenni" > Run =3D Level=3DFull Pool=3DTydenni sat at 0:01 > Run =3D Level=3DDifferential tue-fri at 0:01 > } >=20 > Schedule { > Name =3D "lnpha" > Run =3D Level=3DFull Pool=3Dlnpha Storage=3DDDS-4 Messages=3Dlnpha sat = at 0:01 > Run =3D Level=3DFull tue-fri at 0:01 > } >=20 > # This schedule does the catalog. It starts after the WeeklyCycle > Schedule { > Name =3D "WeeklyCycleAfterBackup" > Run =3D Full sun-sat at 1:10 > } >=20 >=20 > ######################## > # # > # Definice klientu # > # # > ######################## >=20 >=20 > # prgback >=20 > Client { > Name =3D prgback-fd > Address =3D prgback > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgback - mesicni zalohy EZM >=20 > Client { > Name =3D EZM-fd > Address =3D prgback > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 5y # 5 years > Job Retention =3D 5y # 5 years > AutoPrune =3D no # Prune expired Jobs/Files > } >=20 >=20 > # prgfs1 >=20 > Client { > Name =3D prgfs1-fd > Address =3D prgfs1 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prggw >=20 > Client { > Name =3D prggw-fd > Address =3D prggw > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgemzdy >=20 > Client { > Name =3D prgemzdy-fd > Address =3D prgemzdy > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgapp1 >=20 > Client { > Name =3D prgapp1-fd > Address =3D prgapp1 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgapp3 >=20 > Client { > Name =3D prgapp3-fd > Address =3D prgapp3 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prghr1 >=20 > Client { > Name =3D prghr1-fd > Address =3D prghr1 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgfin >=20 > Client { > Name =3D prgfin-fd > Address =3D prgfin > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgora1 >=20 > Client { > Name =3D prgora1-fd > Address =3D prgora1 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgora2 >=20 > Client { > Name =3D prgora2-fd > Address =3D prgora2 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgora4 >=20 > Client { > Name =3D prgora4-fd > Address =3D prgora4 > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # lnpha >=20 > Client { > Name =3D lnpha-fd > Address =3D prgmail > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 > # prgterm >=20 > Client { > Name =3D prgterm-fd > Address =3D prgterm > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 >=20 > # prgtech >=20 > Client { > Name =3D prgtech-fd > Address =3D prgtech > FDPort =3D 9102 > Catalog =3D MyCatalog > File Retention =3D 30d # 30 days > Job Retention =3D 180d # six months > AutoPrune =3D yes # Prune expired Jobs/Files > } >=20 >=20 >=20 > ######################## > # # > # Definice storage # > # # > ######################## >=20 >=20 > # Definition of DLT tape storage device > Storage { > Name =3D DLTDrive > Address =3D prgback # N.B. Use a fully qualified name he= re > SDPort =3D 9103 > Device =3D "HP DLT 1" # must be same as Device in Storage d= aemon > Media Type =3D DLT8000 # must be same as MediaType in Storag= e daemon > } >=20 > # Definition of DDS tape storage device > Storage { > Name =3D DDS-4 =20 > Address =3D prgback # N.B. Use a fully qualified name he= re > SDPort =3D 9103 > Device =3D DDS-4 # must be same as Device in Storage d= aemon > Media Type =3D DDS-4 # must be same as MediaType in Storag= e daemon > } >=20 > # Definiton of file storage device > Storage { > Name =3D File > Address =3D prgback # N.B. Use a fully qualified name he= re > SDPort =3D 9103 > Device =3D FileStorage > Media Type =3D File > } >=20 >=20 >=20 > ############################### > # # > # Generic catalog service # > # # > ############################### >=20 > Catalog { > Name =3D MyCatalog > dbname =3D bacula; user =3D bacula; password =3D "" > } >=20 >=20 > Catalog { > Name =3D bactest > dbname =3D bactest; user =3D bacula; password =3D "" > } >=20 >=20 >=20 > ################ > # # > # Messages # > # # > ################ >=20 >=20 > # Reasonable message delivery -- send most everything to email address > # and to the console > Messages { > Name =3D Standard > mailcommand =3D "/sbin/smtp -h localhost -f \"Bacula <%r>\" -s \"Bacula= : %t %e of %c %l\" %r" > operatorcommand =3D "/sbin/smtp -h localhost -f \"Bacula <%r>\" -s \"Ba= cula: Intervention needed for %j\" %r" > mail =3D st...@if... =3D all, !skipped =20 > operator =3D bac...@if... =3D mount > console =3D all, !skipped, !saved > # > # WARNING! the following will create a file that you must cycle from > # time to time as it will grow indefinitely. However, it will > # also keep all your messages if the scroll off the console. > # > append =3D "/var/state/bacula/log" =3D all, !skipped > } > =20 >=20 > Messages { > Name =3D lnpha > mailcommand =3D "/sbin/smtp -h localhost -f \"Bacula <ad...@if...>\" -s = \"Bacula: %t %e of %c %l\" %r" > operatorcommand =3D "/sbin/smtp -h localhost -f \"Bacula <ad...@if...>\"= -s \"Bacula: Intervention needed for %j\" %r" > mail =3D "st...@if..." =3D all, !skipped =20 > operator =3D bac...@if... =3D mount > console =3D all, !skipped, !saved > # > # WARNING! the following will create a file that you must cycle from > # time to time as it will grow indefinitely. However, it will > # also keep all your messages if the scroll off the console. > # > append =3D "/var/state/bacula/log" =3D all, !skipped > } > =20 >=20 >=20 > Messages { > Name =3D Restore > mailcommand =3D "/etc/bacula/mail_mess %t %e %c %l" > operatorcommand =3D "/sbin/smtp -h localhost -f \"Bacula <%r>\" -s \"Ba= cula: Intervention needed for %j\" %r" > mail =3D st...@if... =3D all, !skipped =20 > operator =3D bac...@if... =3D mount > console =3D all, !skipped, !saved > # > # WARNING! the following will create a file that you must cycle from > # time to time as it will grow indefinitely. However, it will > # also keep all your messages if the scroll off the console. > # > append =3D "/var/state/bacula/log.lnpha" =3D all, !skipped > } > =20 >=20 >=20 > ###################### > # # > # Definice poolu # > # # > ###################### >=20 >=20 > # Default pool definition >=20 > Pool { > Name =3D Default > Pool Type =3D Backup > Recycle =3D yes # Bacula can automatically recycl= e Volumes > AutoPrune =3D yes # Prune expired volumes > Volume Retention =3D 365d # one year > Accept Any Volume =3D yes # write on any volume in the pool > } > =20 >=20 > # Pool pro denni ( diferencni ) backup >=20 > Pool { > Name =3D Denni > Pool Type =3D Backup > Recycle =3D yes # Bacula can automatically recycl= e Volumes > AutoPrune =3D yes # Prune expired volumes > Volume Retention =3D 13d # 13 dni > Volume Use Duration =3D 12h # 12 hodin > Accept Any Volume =3D yes # write on any volume in the pool > } > =20 >=20 > # Pool pro tydenni ( full ) backup >=20 > Pool { > Name =3D Tydenni > Pool Type =3D Backup > Recycle =3D yes # Bacula can automatically recycl= e Volumes > AutoPrune =3D yes # Prune expired volumes > Volume Retention =3D 26d # 26 dni > Volume Use Duration =3D 12h # 12 hodin > Accept Any Volume =3D yes # write on any volume in the pool > } > =20 >=20 > # Pool pro patecni backup lnpha >=20 > Pool { > Name =3D lnpha > Pool Type =3D Backup > Recycle =3D yes # Bacula can automatically recycl= e Volumes > AutoPrune =3D yes # Prune expired volumes > Volume Retention =3D 26d # 26 dni > Volume Use Duration =3D 12h # 12 hodin > Accept Any Volume =3D yes # write on any volume in the pool > } > =20 >=20 > # Pool pro mesicni zalohy EZM >=20 > Pool { > Name =3D EZM > Pool Type =3D Backup > Recycle =3D no # Bacula can automatically recycl= e Volumes > AutoPrune =3D no # Prune expired volumes > Accept Any Volume =3D yes # write on any volume in the pool > } |