On 10/02/2014 03:41 AM, Marco van Wieringen wrote:
Peter Reilly <peter_reilly <at> wycliffe.org> writes:
Thanks. I do reference the JobDefs "DefaultNDMPJob" in the Job definition.
Here is an example:
Job {
Name = NDMP-NFS-boaz3-backup
Client = boaz3-ndmp
JobDefs = DefaultNDMPJob
Schedule = "WeeklyCycle"
Write Bootstrap = /var/lib/bareos/boaz3-ndmp.bsr
Full Backup Pool = Monthly
Incremental Backup Pool = Daily
Differential Backup Pool = Weekly
Fileset = NDMP-NFS-Fileset
}
Are you sure you also do that in the NDMP-NFS-boaz4-backup Job ?
As that is what the previous example run was about. I find it strange
that the protocol doesn't get inherited from the JobDef as I cannot
reproduce that on my install.
The only difference I see in protocol, is that for the client, and the
storage, I specified NDMPv4. (bareos-dir -t -v -c
/etc/bareos/bareos-dir.conf fails otherwise). For the jobdefs, it gave
me an error with "Protocol = NDMPv4", so I used "Protocol = NDMP" like
the example in the bareos_ndmp_readme.txt.
29-Sep 13:39 bareos-dir: ERROR TERMINATION at dird_conf.c:2007
Config error: Expected a Protocol Type keyword, got: NDMPv4
: line 68, col 19 of file /etc/bareos/bareos-dir.conf
Protocol = NDMPv4
Yes that is right backup protocol is native or ndmp the ndmpvX is only
for the client and storage authentication and specifies what version
of NDMP to use for the client or storage.
I commented the "Protocol = NDMPv4" line entirely, and now have a
different error.
No this is normal now it thinks it talking to a native client and
tries to authenticate using the normal authentication protocol
but on the NDMP port that is of course never going to work. I think
we need to concentrate on the Job parsing what does show jobs give
in bconsole ? (Most importantly for the Job you are trying to run.)
*show job=NDMP-NFS-boaz4-backup
Job: name=NDMP-NFS-boaz4-backup JobType=66 protocol=1 level=Incremental
Priority=10 Enabled=1
MaxJobs=1 Resched=0 Times=5 Interval=1,800 Spool=0
Accurate=0
--> Client: name=boaz4-ndmp protocol=3 authtype=1 address=10.10.10.52
FDport=10000 MaxJobs=1
JobRetention=6 months FileRetention=2 months AutoPrune=0
Passive=0 SoftQuota=0 SoftQuotaGrace=0 secs HardQuota=0 StrictQuotas=0
--> Catalog: name=MyCatalog address= DBport=0 db_name=bareos
db_driver=mysql db_user=bareos MutliDBConn=0
--> FileSet: name=NDMP-NFS-Fileset
O
N
I /vol/nfs_oracle
N
--> Schedule: name=WeeklyCycle
--> Run Level=Full
hour=21
mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=5
wom=0
woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53
mins=5
--> Run Level=Differential
hour=21
mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=5
wom=1 2 3 4
woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53
mins=5
--> Run Level=Incremental
hour=21
mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30
month=0 1 2 3 4 5 6 7 8 9 10 11
wday=0 1 2 3 4 6
wom=0 1 2 3 4
woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53
mins=5
--> WriteBootstrap=/var/lib/bareos/boaz4-ndmp.bsr
--> Storage: name=tape protocol=0 authtype=0
address=gideon2.wycliffe.org SDport=9103 MaxJobs=8
DeviceName=Autochanger MediaType=ULTRIUM-LTO-4 PairedStorage=tape
StorageId=2
--> Pool: name=Daily PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=10 auto_prune=1 VolRetention=6 days
VolUse=0 secs recycle=1 LabelFormat=*None*
CleaningPrefix=CLN LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Pool: name=Monthly PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=107 auto_prune=1 VolRetention=6 months
VolUse=0 secs recycle=1 LabelFormat=*None*
CleaningPrefix=CLN LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Pool: name=Daily PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=10 auto_prune=1 VolRetention=6 days
VolUse=0 secs recycle=1 LabelFormat=*None*
CleaningPrefix=CLN LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Pool: name=Weekly PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=21 auto_prune=1 VolRetention=14 days
VolUse=0 secs recycle=1 LabelFormat=*None*
CleaningPrefix=CLN LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Messages: name=Standard
mailcmd=/usr/lib/bareos/bsmtp -h localhost -f "(Bareos) <%r>" -s
"Bareos: %t %e of %c %l" %r
opcmd=/usr/lib/bareos/bsmtp -h localhost -f "(Bareos) <%r>" -s
"Bareos: Intervention needed for %j" %r
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.