Bacula-users

Re: [Bacula-users] Chained copy job

2012-04-05 06:33:32
Subject: Re: [Bacula-users] Chained copy job
From: Dennis Hoppe <dennis.hoppe AT debian-solutions DOT de>
To: Uwe Schuerkamp <uwe.schuerkamp AT nionex DOT net>, bacula-users AT lists.sourceforge DOT net
Date: Thu, 05 Apr 2012 12:30:43 +0200
Hello Uwe,

Am 05.04.2012 10:47, schrieb Uwe Schuerkamp:
> I see your definition below is lacking the "SQLQuery" for the
> "Selection Type", might this be part of the problem? 

the "Selection Type" is defined at the following "JobDefs". I read
somwhere that i have to use a "Selection Type" instead of
"PoolUncopiedJobs", because it does not set a "priorjobid".

JobDefs {
  Name = "DefaultCopy"
  Type = Copy
  Selection Type = SQL Query
  Level = Incremental
  Client = backup-fd
  FileSet = "backup-all"
  Schedule = "DailyCopy"
  Storage = backup-usb
  Messages = Standard
  Pool = backup-daily
  Allow Duplicate Jobs = yes
  Allow Higher Duplicates = no
  Cancel Queued Duplicates = no
  Priority = 20
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

Maybe i should give you a more verbose example.

The last backup of my Job "backup-all" looks like:
 jobid |    name    | type | level | priorjobid
-------+------------+------+-------+------------
  1123 | backup-all | B    | F     |          0

The last copy of my Job "backup-copy-month-usb" looks like:
 jobid |          name           | type | level | priorjobid
-------+-------------------------+------+-------+------------
  1139 | backup-copy-monthly-usb | c    | F     |          0

The current values of my Job "backup-copy-monthly-nas" would look like:
JobName:       backup-copy-monthly-nas
Bootstrap:     *None*
Client:        backup-fd
FileSet:       backup-all
Pool:          backup-monthly (From Job resource)
Read Storage:  backup (From Job resource)
Write Storage: backup-usb (From Storage from Pool's NextPool resource)
JobId:         *None*
When:          2012-04-05 11:54:16
Catalog:       MyCatalog
Priority:      20

At this point the "Pool" and "Read Storage" should be used from the
"JobId" "1139" and point via "NextPool" to "backup-monthly-nas". But in
this case the correct "JobId" is selected by bacula, but the wrong Pools
/ Storages are used.

05-Apr 12:02 backup-dir JobId 1324: The following 1 JobId was chosen to
be copied: 1139
05-Apr 12:02 backup-dir JobId 1324: Copying using JobId=1139
Job=backup-copy-monthly-usb.2012-04-01_06.05.00_51
05-Apr 12:02 backup-dir JobId 1324: No files found to read. No bootstrap
file written.
05-Apr 12:02 backup-dir JobId 1324: Previous Job has no data to copy.
05-Apr 12:02 backup-dir JobId 1324: Bacula backup-dir 5.0.2 (28Apr10):
05-Apr-2012 12:02:44
  Build OS:               i486-pc-linux-gnu debian squeeze/sid
  Prev Backup JobId:      1139
  Prev Backup Job:        backup-copy-monthly-usb.2012-04-01_06.05.00_51
  New Backup JobId:       0
  Current JobId:          1324
  Current Job:            backup-copy-monthly-nas.2012-04-05_12.02.42_18
  Backup Level:           Full
  Client:                 backup-fd
  FileSet:                "backup-all" 2012-02-22 23:05:00
  Read Pool:              "backup-monthly" (From Job resource)
  Read Storage:           "backup" (From Job resource)
  Write Pool:             "backup-monthly-usb" (From Job Pool's NextPool
resource)
  Write Storage:          "backup-usb" (From Storage from Pool's
NextPool resource)
  Catalog:                "MyCatalog" (From Client resource)
  Start time:             05-Apr-2012 12:02:44
  End time:               05-Apr-2012 12:02:44
  Elapsed time:           0 secs
  Priority:               20
  SD Files Written:       0
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Volume name(s):
  Volume Session Id:      0
  Volume Session Time:    0
  Last Volume Bytes:      0 (0 B)
  SD Errors:              0
  SD termination status:
  Termination:            Copying -- no files to copy

I am wondering how Bacula is getting the "NextPool", because the
Database shows nothing and why Bacula thinks there is nothing to copy.

 poolid |        name        | nextpoolid
--------+--------------------+------------
      4 | backup-monthly     |          0
      5 | backup-daily       |          0
      6 | backup-weekly      |          0
     50 | backup-monthly-usb |          0
     51 | backup-daily-usb   |          0
     52 | backup-weekly-usb  |          0
     89 | backup-monthly-nas |          0
     90 | backup-daily-nas   |          0
     91 | backup-weekly-nas  |          0
(9 Zeilen)

Regards, Dennis

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>