[Bacula-users] Webacula errors using two catalogs

2017-05-09 Thread Iban Cabrillo
Hi,
  I do not know if this is the correct forum to ask, but I just migrate
from bacula 5x to 7x, and I was trying to manage it using webacula (v7.0.0,
build 2014.10.05).

  The first handicap I just find is that i have two catalogs (in a firts
step I only want to use the first one) and some pages do not work properly
because of this (I have not found a way to pass the catalog selection from
web interface).

  The other (maybe related to the first) is some error when i try to run or
re-run a job from web interface i always get this error job name "was not
found in the *haystack*" (Zend Framework 1.12.0)

   Has Someone any idea how to solve this issues?

regards, I

-- 

Iban Cabrillo Bartolome
Instituto de Fisica de Cantabria (IFCA)
Santander, Spain
Tel: +34942200969
PGP PUBLIC KEY:
http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC

Bertrand Russell:*"El problema con el mundo es que los estúpidos están
seguros de todo y los inteligentes están **llenos de dudas*"
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] BAT compiles with qtcreator but not with make

2017-05-09 Thread David Westfall
I am trying to build Bacula to replace Bareos.  I am having problems
compiling bat with the make command.

 Steps Taken 
git clone git.bacula.org/bacula.git

cd bacula/bacula

./configure --enable-bat --with-mysql --with-systemd

make   #Errors looking for d_msg debug_level_tags init_msg
.
..
...
/atlas/devHome/dave/bacula/bacula/src/qt-console/main.cpp:93: undefined
reference to `init_msg(JCR*, MSGS*, char* (*)(JCR*, char const*))'
obj/bat_conf.o: In function `save_resource(int, RES_ITEM*, int)':
/atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:335:
undefined reference to `debug_level_tags'
/atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:336:
undefined reference to `d_msg(char const*, int, long, char const*, ...)'
obj/mainwin.o: In function `MainWin::treeItemClicked(QTreeWidgetItem*,
int)':
/atlas/devHome/dave/bacula/bacula/src/qt-console/mainwin.cpp:447: undefined
reference to `d_msg(char const*, int, long, char const*, ...)'
...
..
.

vi src/qt-console/bat.pro.in
#CONFIG += qt debug @QWT@
CONFIG += qt @QWT@

./configure --enable-bat --with-mysql --with-systemd

make#Errors looking for d_msg init_msg
.
..
...
main.cpp:(.text.startup+0x36c): undefined reference to `init_msg(JCR*,
MSGS*, char* (*)(JCR*, char const*))'
obj/bat_conf.o: In function `save_resource(int, RES_ITEM*, int)':
bat_conf.cpp:(.text+0x643): undefined reference to `d_msg(char const*, int,
long, char const*, ...)'
obj/mainwin.o: In function `MainWin::treeItemClicked(QTreeWidgetItem*,
int)':
mainwin.cpp:(.text+0xe1f): undefined reference to `d_msg(char const*, int,
long, char const*, ...)
...
..
.

./configure  --with-mysql --with-systemd

make   #No Errors

cd src/qt-console

qtcreator bat.pro #Configure Project, Build with no errors


 Configuration 

Configuration on Tue May  9 09:21:01 EDT 2017:

   Host: x86_64-unknown-linux-gnu -- suse 42.2
   Bacula version:   Bacula 7.4.7 (16 March 2017)
   Source code location: .
   Install binaries: /sbin
   Install libraries:/lib64
   Install config files: /etc/bacula
   Scripts directory:/etc/bacula
   Archive directory:/tmp
   Working directory:/opt/bacula/working
   PID directory:/var/run
   Subsys directory: /var/lock/subsys
   Man directory:${datarootdir}/man
   Data directory:   /usr/share
   Plugin directory: /lib64
   C Compiler:   gcc Linux)
   C++ Compiler: /usr/bin/g++ Linux)
   Compiler flags:-g -O2 -Wall -x c++ -fno-strict-aliasing
-fno-exceptions -fno-rtti
   Linker flags:
   Libraries:-lpthread -ldl -ldl
   Statically Linked Tools:  no
   Statically Linked FD: no
   Statically Linked SD: no
   Statically Linked DIR:no
   Statically Linked CONS:   no
   Database backends:MySQL
   Database port:
   Database name:bacula
   Database user:bacula
   Database SSL options:

   Job Output Email: root@localhost
   Traceback Email:  root@localhost
   SMTP Host Address:localhost

   Director Port:9101
   File daemon Port: 9102
   Storage daemon Port:  9103

   Director User:
   Director Group:
   Storage Daemon User:
   Storage DaemonGroup:
   File Daemon User:
   File Daemon Group:

   Large file support:   yes
   Bacula conio support: yes -ltinfo
   readline support: no
   TCP Wrappers support: no
   TLS support:  yes
   Encryption support:   yes
   ZLIB support: yes
   LZO support:  no
   enable-smartalloc:yes
   enable-lockmgr:   no
   bat support:  no
   client-only:  no
   build-dird:   yes
   build-stored: yes
   Plugin support:   yes
   AFS support:  no
   ACL support:  yes
   XATTR support:yes
   systemd support:  yes /run/systemd/system
   Batch insert enabled: MySQL

-- 
David Westfall
Red-Inc Email - david.westf...@red-inc.us
Navy Email - david.westfall@navy.mil 
(301) 342-9273

-- 
 

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to which they are addressed. 
If you have received this email in error please notify the system manager. 
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. If you are not the intended recipient 
you are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly 
prohibited.
-

Re: [Bacula-users] BAT compiles with qtcreator but not with make

2017-05-09 Thread Kern Sibbald

  
  
Hello,
In order to build any component of Bacula (console, bacula-dir,
  bacula-fd, bacula-sd, bat, ...) you must first correctly build the
  libraries, and from the error messages, it looks like something
  when wrong when building /src/lib.

It could be helpful if you included the full output from your
./configure and the make.  Also, what version of Qt are you using?

By the way, would you mind telling me why you are replacing Bareos?

Best regards,
Kern


On 05/09/2017 03:33 PM, David Westfall
  wrote:


  I am trying to build Bacula to replace Bareos.  I
am having problems compiling bat with the make command.


 Steps Taken 

  git clone git.bacula.org/bacula.git
  
  
  cd bacula/bacula
  
  
  ./configure --enable-bat --with-mysql --with-systemd
  
  
  make       #Errors looking for d_msg debug_level_tags
init_msg
  .
  ..
  ...
  /atlas/devHome/dave/bacula/bacula/src/qt-console/main.cpp:93:
undefined reference to `init_msg(JCR*, MSGS*, char*
(*)(JCR*, char const*))'
  obj/bat_conf.o: In function `save_resource(int,
RES_ITEM*, int)':
  /atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:335:
undefined reference to `debug_level_tags'
  /atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:336:
undefined reference to `d_msg(char const*, int, long, char
const*, ...)'
  obj/mainwin.o: In function
`MainWin::treeItemClicked(QTreeWidgetItem*, int)':
  /atlas/devHome/dave/bacula/bacula/src/qt-console/mainwin.cpp:447:
undefined reference to `d_msg(char const*, int, long, char
const*, ...)'
  ...
  ..
  .
  
  
  vi src/qt-console/bat.pro.in
  #CONFIG += qt debug @QWT@
  CONFIG += qt @QWT@
  
  
  ./configure --enable-bat --with-mysql --with-systemd
  
  
  make        #Errors looking for d_msg init_msg
  .
  ..
  ...
  main.cpp:(.text.startup+0x36c): undefined reference to
`init_msg(JCR*, MSGS*, char* (*)(JCR*, char const*))'
  obj/bat_conf.o: In function `save_resource(int,
RES_ITEM*, int)':
  bat_conf.cpp:(.text+0x643): undefined reference to
`d_msg(char const*, int, long, char const*, ...)'
  obj/mainwin.o: In function
`MainWin::treeItemClicked(QTreeWidgetItem*, int)':
  mainwin.cpp:(.text+0xe1f): undefined reference to
`d_msg(char const*, int, long, char const*, ...)
  ...
  ..
  .
  
  
  ./configure  --with-mysql --with-systemd
  
  
  make       #No Errors
  
  
  cd src/qt-console
  
  
  qtcreator bat.pro         #Configure
Project, Build with no errors
  
  
  
  
   Configuration 
  
  
  
Configuration on Tue May  9 09:21:01 EDT 2017:


   Host:                     x86_64-unknown-linux-gnu
  -- suse 42.2
   Bacula version:           Bacula 7.4.7 (16 March
  2017)
   Source code location:     .
   Install binaries:         /sbin
   Install libraries:        /lib64
   Install config files:     /etc/bacula
   Scripts directory:        /etc/bacula
   Archive directory:        /tmp
   Working directory:        /opt/bacula/working
   PID directory:            /var/run
   Subsys directory:         /var/lock/subsys
   Man directory:            ${datarootdir}/man
   Data directory:           /usr/share
   Plugin directory:         /lib64
   C Compiler:               gcc Linux)
   C++ Compiler:             /usr/bin/g++ Linux)
   Compiler flags:            -g -O2 -Wall -x c++
  -fno-strict-aliasing -fno-exceptions -fno-rtti
   Linker flags:              
   Libraries:                -lpthread -ldl -ldl 
   Statically Linked Tools:  no
   Statically Linked FD:     no
   Statically Linked SD:     no
   Statically Linked DIR:    no
   Statically Linked CONS:   no
   Database backends:        MySQL
   Database port:             
   Database name:            bacula
   Database user:            bacula
   Database SSL options:     


[Bacula-users] Add external drive rotation to existing backup regime?

2017-05-09 Thread David Andrzejewski
I'm *relatively* new to bacula. I have a working bacula setup where I have a 
bunch of machines backing up to a ZFS array on a server. This is working well 
and without error, I've tested restores; everything seems hunky-dory. 
Basically, I do a full backup of each client every couple of weeks, daily 
incrementals in between, and I don't prune backups until they're 60 days old.

The next step is to add a rotation of external USB hard drives to this setup, 
so that I can store backups offsite as well. My thought is that I can start 
with two drives, one on-site and one off-site, and periodically switch them 
out. Maybe add more drives to the rotation later on.

I've looked at vchanger, and I *think* that's what I need here. The problem is, 
I'm not entirely clear on how it will work with my current setup. I want to be 
sure that I can do complete restores even if the server and on-site external 
drive is totally destroyed. My worry is that if I misconfigure it, I will end 
up with some of my full backups on one of the drives but not both, incrementals 
on the other, etc. 

I want to be sure I configure this to have the full backups and incremental 
backups on the ZFS pool as it is now, as well as on ALL external hard drives, 
so only one of the drives is needed to do a full restore of everything, at 
least up until the point where it was unmounted from the system.

How can I be sure of all of this?

Thanks!

- Dave
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Add external drive rotation to existing backup regime?

2017-05-09 Thread Dimitri Maziuk
On 05/09/2017 05:21 PM, David Andrzejewski wrote:

> I've looked at vchanger, and I *think* that's what I need here.

I don't know if you can combine vchanger and your zfs pool backups. I
would think copy jobs may be a better fit for what you want.

Although I'd be tempted to just cp the volume files to the usb drive in
a RunAfterJob script.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users