[Bacula-users] OT: Who to contact to update the wiki to reflect the current src.rpms available?

2010-12-27 Thread Mister IT Guru
  Hi, I advised a colleague to use bacula, as I'm also learning to use 
this great package, and I sent him a link I used to get started,

http://wiki.bacula.org/doku.php?id=howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5

which is now a touch old. We managed to get through using the newer 
sources, and amending the guide as required, but seeing as those files 
are available, 'some users' (looks at colleague), still swear blind that 
everything on the internet is current!

Thanks by the way to those who do maintain the wiki, it's always a great 
source of help :)

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula and glusterfs

2010-12-27 Thread Martin Simmons
> On Sat, 25 Dec 2010 10:39:45 -0700, Devin Reade said:
> 
> Martin Simmons  wrote:
> 
> >> On Wed, 22 Dec 2010 14:09:50 -0700, Devin Reade said:
> 
> >> I have set up bacula clients on these nodes and, in addition to the
> >> usual ext3 filesystems (/, /usr, et cetera), I'm trying to back up
> >> the glusterfs-mounted /home, however I'm seeing the current warnings
> >> in the backups:
> >> 
> >> 22-Dec 00:52 hostname.example.com-fd JobId 3691:  Could not open
> >> directory "/home/USERNAME": ERR=Operation not permitted
> [snip]
> > 
> > Do you have SELinux running in enforcing mode?  If so, try switching it off
> > temporarily with /usr/sbin/setenforce 0.
> 
> No, SELinux is disabled.

OK.

I read that glusterfs uses FUSE, so it might be checking something more than
the uid.  That would explain why a root shell can access the files.  Note that
the error is "Operation not permitted", which is different from the normal
"Permission denied" error you get from files made unreadable by chmod.

Can you try running bacula-fd without passing the -u and -g arguments at all?
That is slightly different from passing -u root -g bacula.

__Martin

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula: Keyword Name not permitted in this resource

2010-12-27 Thread der_Angler
Hello,
I've got a serious problem with my bacula configuration. I've changed my bacula 
configuration and put all the job , clients and so on in extra files. At this 
point, I've got 6 jobs und with 2 of them i have the problems. But let me 
explain with an example. 

This  is the last part of  /etc/bacula/bacula-dir

...
...
...
Schedule {
Name = "WindowsWorkstations"
Run = Incremental daily at 20:00
}
# Include below all yours jobs configuration files (remember add '@' at 
beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
# @/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.conf


You see, in this example the 2 jobs are comment out. So, let's try to start 
bacula:

[r...@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: [  OK  ]


Okay, everything is fine. So we can say the 4 jobs in the config are fine.
Now, I've changed the bacula-dir.conf in that way that one of the 
"problem"-jobs is on. See:

...
...
...
# Include below all yours jobs configuration files (remember add '@' at 
beginning)
@/etc/bacula/conf.d/pc-backup.database.conf
@/etc/bacula/conf.d/pc-backup.full.conf
# @/etc/bacula/conf.d/pc-xxx_full.conf
@/etc/bacula/conf.d/pc-xxx_userdaten.conf
@/etc/bacula/conf.d/pc-agenda_full.conf
@/etc/bacula/conf.d/pc-agenda_daten.conf
# Include Configs
@/etc/bacula/conf.d/clients.conf
@/etc/bacula/conf.d/filesets.conf


You can see the changes. Now lets try to start bacula:

[r...@pc-backup ~]# service bacula-dir start
Starting Bacula Director services: 27-Dez 03:20 bacula-dir: ERROR TERMINATION 
at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 13 of file /etc/bacula/conf.d/pc-agenda_daten.conf
Name = "pc-agenda Daten"

   [FEHLGESCHLAGEN]


Bad, don't work anymore. Curiously bacula told me that there is an error in 
"pc-agenda_daten.conf". BUT, in the example before he worked fine with this 
file. Why now not?
But perhaps the error is in one of the job files. so, here is the job file 
itself and the job before this one.
pc-agenda_daten.conf

Job {
Name = "pc-agenda Daten"
Enabled = yes
Client = pc-agenda-fd 
FileSet = "pc-agenda Daten"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr" 
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l 
%v\""
}
FileSet {
Name = "pc-agenda Daten"
Enable VSS = yes
Include {
  Options {
signature = MD5
  }
  File = "C:\AGENDA"
}
}


pc-agenda_full.conf

Job {
Name = "pc-agenda Full"
Enabled = yes
Client = pc-agenda-fd 
FileSet = "pc-agenda Full"
Schedule = "WindowsWorkstations"
Write Bootstrap = "/var/lib/bacula/%ws.bsr" 
Type = Backup
Level = Full
Storage = File
Pool = File
Priority = 11
Messages = Standard
Run After Job = "/usr/local/sbin/bacula2nagios \"%n\" 0 \"%e %l %v\""
Run After Failed Job = "/usr/local/sbin/bacula2nagios \"%n\" 1 \"%e %l 
%v\""
}
FileSet {
Name = "pc-agenda Full"
Enable VSS = yes
Include {
  Options {
signature = MD5
  }
  File = "C:\"
}
}


I'm sarching for hours now ... but i didn't find the error in one of the files. 
Curiously 30 minutes before, with the proper config, i got another error after 
starting bacula:

Starting Bacula Director services: 27-Dez 03:12 bacula-dir: ERROR TERMINATION 
at inc_conf.c:410
Config error: Keyword Name not permitted in this resource
: line 2, col 7 of file /etc/bacula/conf.d/clients.conf
  Name = pc-backup-fd

   [FEHLGESCHLAGEN]



But my clients.conf is fine, see here:

Client {
  Name = pc-backup-fd
  Address = 192.168.xx.xx
  FDPort = 9102
  Catalog = MyCatalog
  Password = "yx"
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}
Client {
  Name = pc-agenda-fd
  Address = 192.168.xx.xx
  FDPort = 9102
  Catalog = MyCatalog
  Password = "yx"
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}
Client {
  Name = pc-xxx-fd
  Address = 192.168.xx.xx
  FDPort = 9102
  Catalog = MyCatalog
  Password = "yx"
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}



So, is there a

Re: [Bacula-users] bacula: Keyword Name not permitted in this resource

2010-12-27 Thread Steve Ellis
I believe the error is in the file that you had previously commented out 
(as I suspect you also believe).  Below I've snipped what I think is the 
problematic line in the pc-agenda_full.conf file:

On 12/27/2010 12:00 PM, der_Angler wrote:
> pc-agenda_full.conf
>
...
> FileSet {
>  Name = "pc-agenda Full"
>  Enable VSS = yes
>  Include {
>Options {
>  signature = MD5
>}
>File = "C:\"
>  }
> }
>
>
The problem is that the parser interprets "C:\" as a string consisting 
of a 'C', a ':' and a '"'--because you've backslash escaped the quote.  
I believe that you will find an easier solution is to use a '/' instead 
of a '\', although doubling the '\' character may also work.  In other 
words try this:
 File = "C:/"
instead of:
 File = "C:\"

If this doesn't work (and I believe it will, as that is how I have my 
windows clients configured), you might also be able to use:
 File = "C:\\"
But I haven't tried this.

You may also find that the "Ignore Case = yes" option is useful on 
windows--though admittedly it may only come into play if you specify 
files or directories to either include or exclude.

Hope this helps,

-se



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users