Configurando um servidor de backup Bacula

Vou passar nesse artigo a experiência que obtive na implementação do sistema Bacula. Desde sua instalação à configuração. O Bacula é um sistema simples e de grande confiança para realização de seus backups.

[ Hits: 97.372 ]

Por: Johnny Tardin em 16/03/2010 | Blog: http://www.vivaolinux.com.br/perfil/verPerfil.php?login=Johnny%20Tardin


Introdução



O Bacula (Backup + Drácula) é um sistema de backup em constante aumento de popularidade graças a divulgação de sua comunidade. Já são mais de um milhão de downloads segundo estatísticas do Sourceforge. Ele permite ao administrador fazer backup, gerenciá-los e restaurá-los através da rede. É possível através dele realizar backup de máquinas Windows e Linux, em fita ou disco.

O Bacula cumpre com o mesmo nível soluções comerciais proprietárias e é distribuído sob licença GNU versão 2.

Vou demonstrar como fazer o backup em Devices para armazenamento local. O Bacula tem como requisitos:
  • MySQL ou PostgreSQL
  • GCC-C++

Uma breve explicação sobre os principais arquivos

O Bacula utiliza-se de cinco principais componentes: Director, Console, File, Storage, e Monitor services.
  • Director: é o arquivo principal para a comunicação e supervisionamento dos serviços como backup, restauração etc (bacula-dir.conf).
  • Bacula console: é o serviço principal entre a o administrador e o bacula (bconsole.conf).
  • Bacula File: é o arquivo onde será configurado nos clientes, extremamente simples (bacula-fd.conf)
  • Bacula Storage: é o arquivo responsável pela configuração de onde será armazenado seus dados (bacula-sd.conf).
  • Catálogo: é onde fica armazenado todo o histórico de jobs realizados, para a simplificação de quando precisar fazer uma restauração.

Linux: Configurando um servidor de backup Bacula
Através desse gráfico é possível entender a relação entre os arquivos.

Download e instalação do Bacula

Baixe os pacotes em:
Instalação do servidor:

Primeiro descompacte os arquivos.

tar vfxz bacula-5.0.1.tar.gz

Depois entre na pasta e vamos instalá-lo:

./configure --with-mysql
$ make
# make install


Instalação nas estações cliente (Bacula File):

./configure --enable-client-only
$ make
# make install


    Próxima página

Páginas do artigo
   1. Introdução
   2. Configuração do Bacula
   3. Considerações finais
Outros artigos deste autor
Nenhum artigo encontrado.
Leitura recomendada

OSPF + quagua + CentOS 5.3

Configurando o seu teclado sem fio (e, via de regra, sem LEDs indicadores de estado) no Linux

Construindo um servidor NFS usando o Insigne GNU/Linux

Debian Wheezy - Instalação e utilização em desktops

Webacula - Instalação e Configuração no Ubuntu 10.04

  
Comentários
[1] Comentário enviado por tlperini em 24/03/2010 - 13:26h

Show de bola teu artigo!
Estava procurando um material mais resumido sobre configurações do bacula e este ficou 100%.

[2] Comentário enviado por tiago.pacato em 25/03/2010 - 10:16h

Instalei o servidor bacula em uma maquina normal com hds de 250 gb, os backups estão sendo feitos normalmente, os catalagos criados, tudo ok. a dúvida é, para passar os backups que ja foram feitos nessa maquina para uma maquina nova que acabamos de adquirir, o que eu poderia fazer? para não perder o que ja foi feito no servidor bacula antigo.

Grato!


Contato: tiago.rjonatas@gmail.com

[3] Comentário enviado por Johnny Tardin em 25/03/2010 - 11:13h

Você primeiramente transfere a configuração da máquina antiga pra nova (o bacula-dir, bacula-fd etc).
Depois você copia os backups pra lá, na mesma organização que está.
E por último você faz a restauração do banco de dados Mysql ou Postgree pra máquina nova, que ele vai ter todos os seus registros.

[4] Comentário enviado por LinuxTec em 05/05/2010 - 10:32h

Cara vi seu post e acho que pode me ajudar, sou iniciante com bacula e estava sem espaço no meu server, dentro de /home/backup é onde ele guarda os jobs e backups que roda na madrugada eu deletei varios para ganhar espaço após isso 3 serves ao tentar coletar o bacup das partições da o seguinte erro.

Assunto: Bacula: Intervention needed for samba.2010-05-05_10.22.00.02

Corpo do Email:

05-May 10:22 backup-sd JobId 1632: Job samba.2010-05-05_10.22.00.02 waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "FileStorage" (/home/backup)
Pool: Full-Pool-samba
Media type: File


Ou seja ele diz que o trabalho foi interrompido pois, Trabalho espera samba.2010-05-05_10.22.00.02. Não é
possível encontrar todos os volumes adicionável.

Eu devo criar um volume chamado samba.2010-05-05_10.22.00.02 é isso e como crio no bconsole


[5] Comentário enviado por Johnny Tardin em 13/05/2010 - 12:05h

Você deve seguir os seguintes passos via terminal:

Primeiro digite "bconsole" para entrar no console via terminal.

Digite após isso:

label

Escolha qual o seu Storage.

Após isso ele volta a gravar normalmente.

Veja esse meu artigo que eu dou uma dica de como configurar ele pra criar o label automaticamente.

Abraço

[6] Comentário enviado por parrera em 17/05/2010 - 23:51h

Muito bom seu artigo,
minha dúvida é a seguinte, eu instalo o mysql no meu suse, descompacto o bacula e informo como root:

parrera:~ # cd /root/bacula-5.0.2

parrera:~/bacula-5.0.2 # ./configure --with-mysql

E me retorna:

checking for true... /bin/true
checking for false... /bin/false
configuring for Bacula 5.0.2 (28 April 2010)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/bin/g++
checking for a BSD-compatible install... /usr/bin/install -c
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for openssl... /usr/bin/openssl
checking for mtx... mtx
checking for dd... /bin/dd
checking for mkisofs... /usr/bin/mkisofs
checking for python... /usr/bin/python
checking for growisofs... /usr/bin/growisofs
checking for dvd+rw-mediainfo... /usr/bin/dvd+rw-mediainfo
checking for dvd+rw-format... /usr/bin/dvd+rw-format
checking for pkg-config... /usr/bin/pkg-config
checking for qmake... none
checking for gmake... /usr/bin/gmake
checking for wx-config... wx-config
checking for cdrecord... /usr/bin/cdrecord
checking for pidof... /sbin/pidof
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... /usr/bin/ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... /usr/bin/g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by /usr/bin/g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for /usr/bin/g++ option to produce PIC... -fPIC -DPIC
checking if /usr/bin/g++ PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/g++ static flag -static works... yes
checking if /usr/bin/g++ supports -c -o file.o... yes
checking if /usr/bin/g++ supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for Operating System Distribution... done
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for msgfmt... (cached) /usr/bin/msgfmt
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking term.h usability... no
checking term.h presence... no
checking for term.h... no

Required libraries not found. CONIO turned off ...
],
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for strcasecmp... yes
checking for select... yes
checking for setenv... yes
checking for putenv... yes
checking for tcgetattr... yes
checking for lstat... yes
checking for lchown... yes
checking for nanosleep... yes
checking for nl_langinfo... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for Python support... no
checking for socket... yes
using libc's socket
checking for OpenSSL... no
checking for library containing dlopen... -ldl
checking for PostgreSQL support... no
checking for MySQL support... no
configure: error: Unable to find mysql.h in standard locations

O que está dando de errado?Ele não está configurando junto com o mysql, qnd eu informo:

parrera:~/bacula-5.0.2 # make

make: *** No targets specified and no makefile found. Stop.

parrera:~/bacula-5.0.2 # make install

make: *** No rule to make target `install'. Stop.

O que pode estar havendo?
Obrigado


[7] Comentário enviado por Johnny Tardin em 18/05/2010 - 00:15h

Olá Parrera.

Pelo que observei, está faltando algumas bibliotecas.

Eu verifiquei num servidor Open Suse.

Instale os seguintes pacotes via Yast:

termcap
libcurses
libterm

Creio que possa resolver o seu problema.

Caso dê mais algum erro reporte ele aqui.

Abraços



[8] Comentário enviado por parrera em 18/05/2010 - 18:40h

Obrigado por ajudar Johnny, mas instalei pelo yast os pacotes:

termcap
mingw64_termcap

libncurses

Mas não achei o libterm nem libnterm.

Então no prompt fiz:

parrera:~ # cd /root/bacula-5.0.2

parrera:~/bacula-5.0.2 # ./configure --with-mysql

checking for true... /bin/true
checking for false... /bin/false
configuring for Bacula 5.0.2 (28 April 2010)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/bin/g++
checking for a BSD-compatible install... /usr/bin/install -c
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for openssl... /usr/bin/openssl
checking for mtx... mtx
checking for dd... /bin/dd
checking for mkisofs... /usr/bin/mkisofs
checking for python... /usr/bin/python
checking for growisofs... /usr/bin/growisofs
checking for dvd+rw-mediainfo... /usr/bin/dvd+rw-mediainfo
checking for dvd+rw-format... /usr/bin/dvd+rw-format
checking for pkg-config... /usr/bin/pkg-config
checking for qmake... none
checking for gmake... /usr/bin/gmake
checking for wx-config... wx-config
checking for cdrecord... /usr/bin/cdrecord
checking for pidof... /sbin/pidof
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... /usr/bin/ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... /usr/bin/g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by /usr/bin/g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for /usr/bin/g++ option to produce PIC... -fPIC -DPIC
checking if /usr/bin/g++ PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/g++ static flag -static works... yes
checking if /usr/bin/g++ supports -c -o file.o... yes
checking if /usr/bin/g++ supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for Operating System Distribution... done
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for msgfmt... (cached) /usr/bin/msgfmt
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking term.h usability... no
checking term.h presence... no
checking for term.h... no

Required libraries not found. CONIO turned off ...
],
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for strcasecmp... yes
checking for select... yes
checking for setenv... yes
checking for putenv... yes
checking for tcgetattr... yes
checking for lstat... yes
checking for lchown... yes
checking for nanosleep... yes
checking for nl_langinfo... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for Python support... no
checking for socket... yes
using libc's socket
checking for OpenSSL... no
checking for library containing dlopen... -ldl
checking for PostgreSQL support... no
checking for MySQL support... no
configure: error: Unable to find mysql.h in standard locations
parrera:~/bacula-5.0.2 # make
==>Entering directory /root/bacula-5.0.2/src
make[1]: Entering directory `/root/bacula-5.0.2/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/src'
==>Entering directory /root/bacula-5.0.2/scripts
make[1]: Entering directory `/root/bacula-5.0.2/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/scripts'
==>Entering directory /root/bacula-5.0.2/src/lib
make[1]: Entering directory `/root/bacula-5.0.2/src/lib'
==== Make of lib is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/lib'
==>Entering directory /root/bacula-5.0.2/src/findlib
make[1]: Entering directory `/root/bacula-5.0.2/src/findlib'
==== Make of findlib is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/findlib'
==>Entering directory /root/bacula-5.0.2/src/filed
make[1]: Entering directory `/root/bacula-5.0.2/src/filed'
==== Make of filed is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/filed'
==>Entering directory /root/bacula-5.0.2/src/console
make[1]: Entering directory `/root/bacula-5.0.2/src/console'
==== Make of console is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/console'
==>Entering directory /root/bacula-5.0.2/src/plugins/fd
make[1]: Entering directory `/root/bacula-5.0.2/src/plugins/fd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/src/plugins/fd'
==>Entering directory /root/bacula-5.0.2/src/cats
make[1]: Entering directory `/root/bacula-5.0.2/src/cats'
Compiling bvfs.c
bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:
bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’
bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:
bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope
bvfs.c:314: error: expected ‘;’ before ‘row’
bvfs.c:316: error: ‘row’ was not declared in this scope
bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope
bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope
bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:
bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:
bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:
bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’
bvfs.c: In member function ‘bool Bvfs::ls_files()’:
bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’
make[1]: *** [bvfs.lo] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/src/cats'


====== Error in /root/bacula-5.0.2/src/cats ======


==>Entering directory /root/bacula-5.0.2/src/dird
make[1]: Entering directory `/root/bacula-5.0.2/src/dird'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/dird'


====== Error in /root/bacula-5.0.2/src/dird ======


==>Entering directory /root/bacula-5.0.2/src/stored
make[1]: Entering directory `/root/bacula-5.0.2/src/stored'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/stored'


====== Error in /root/bacula-5.0.2/src/stored ======


==>Entering directory /root/bacula-5.0.2/src/tools
make[1]: Entering directory `/root/bacula-5.0.2/src/tools'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `dbcheck'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/tools'


====== Error in /root/bacula-5.0.2/src/tools ======


==>Entering directory /root/bacula-5.0.2/manpages
make[1]: Entering directory `/root/bacula-5.0.2/manpages'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/manpages'
parrera:~/bacula-5.0.2 # make install
./autoconf/mkinstalldirs /sbin
./autoconf/mkinstalldirs /etc/bacula
./autoconf/mkinstalldirs /etc/bacula
./autoconf/mkinstalldirs /usr/share/doc/bacula
./autoconf/mkinstalldirs /tmp
if test ! -d /var/bacula/working ; then \
./autoconf/mkinstalldirs /var/bacula/working; \
chmod 770 /var/bacula/working; \
fi
if test "x" != "x" ; then \
chown /var/bacula/working; \
fi
if test "x" != "x" ; then \
chgrp /var/bacula/working; \
fi
make[1]: Entering directory `/root/bacula-5.0.2/src'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/root/bacula-5.0.2/src'
make[1]: Entering directory `/root/bacula-5.0.2/scripts'
../autoconf/mkinstalldirs /etc/bacula
../autoconf/mkinstalldirs /sbin
../autoconf/mkinstalldirs /etc/bacula
../autoconf/mkinstalldirs /usr/share/man
/usr/bin/install -c -m 0750 startmysql /etc/bacula/startmysql
/usr/bin/install -c -m 0750 stopmysql /etc/bacula/stopmysql
/usr/bin/install -c -m 0750 bconsole /etc/bacula/bconsole
/usr/bin/install -c -m 0750 bacula /etc/bacula/bacula
/usr/bin/install -c -m 0750 bacula_config /etc/bacula/bacula_config
/usr/bin/install: cannot stat `bacula_config': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/scripts'
make[1]: Entering directory `/root/bacula-5.0.2/src/lib'
==== Make of lib is good ====

/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbac.la /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbaccfg.la /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbacpy.la /usr/lib64
make[1]: Leaving directory `/root/bacula-5.0.2/src/lib'
make[1]: Entering directory `/root/bacula-5.0.2/src/findlib'
==== Make of findlib is good ====

/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbacfind.la /usr/lib64
make[1]: Leaving directory `/root/bacula-5.0.2/src/findlib'
make[1]: Entering directory `/root/bacula-5.0.2/src/filed'
==== Make of filed is good ====

/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bacula-fd /sbin/bacula-fd
==> Found existing bacula-fd.conf, installing new conf file as bacula-fd.conf.new
/usr/bin/install -c -m 640 bacula-fd.conf /etc/bacula/bacula-fd.conf.new
make[1]: Leaving directory `/root/bacula-5.0.2/src/filed'
make[1]: Entering directory `/root/bacula-5.0.2/src/console'
==== Make of console is good ====

/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bconsole /sbin/bconsole
==> Found existing bconsole.conf, installing new conf file as bconsole.conf.new
/usr/bin/install -c -m 640 bconsole.conf /etc/bacula/bconsole.conf.new
if test -f static-bconsole; then \
/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 static-bconsole /sbin/static-bconsole; \
fi
make[1]: Leaving directory `/root/bacula-5.0.2/src/console'
make[1]: Entering directory `/root/bacula-5.0.2/src/plugins/fd'
/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bpipe-fd.la /usr/lib64
/bin/rm -f /usr/lib64/bpipe-fd.la
make[1]: Leaving directory `/root/bacula-5.0.2/src/plugins/fd'
make[1]: Entering directory `/root/bacula-5.0.2/src/cats'
Compiling bvfs.c
bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:
bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’
bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:
bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope
bvfs.c:314: error: expected ‘;’ before ‘row’
bvfs.c:316: error: ‘row’ was not declared in this scope
bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope
bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope
bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:
bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:
bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:
bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’
bvfs.c: In member function ‘bool Bvfs::ls_files()’:
bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’
make[1]: *** [bvfs.lo] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/src/cats'
make[1]: Entering directory `/root/bacula-5.0.2/src/dird'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/dird'
make[1]: Entering directory `/root/bacula-5.0.2/src/stored'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/stored'
make[1]: Entering directory `/root/bacula-5.0.2/src/tools'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `dbcheck'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/tools'
make[1]: Entering directory `/root/bacula-5.0.2/manpages'
/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man8
for I in bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8; \
do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
/usr/bin/install -c -m 644 $I.gz /usr/share/man/man8/$I.gz; \
rm -f $I.gz); \
done
/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man1
for I in bacula-tray-monitor.1 bacula-bwxconsole.1 bsmtp.1 bat.1; \
do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
/usr/bin/install -c -m 644 $I.gz /usr/share/man/man1/$I.gz; \
rm -f $I.gz); \
done
make[1]: Leaving directory `/root/bacula-5.0.2/manpages'


O que será que está dando de errado?O mysql tem que estar rodando antes de eu fazer o comnado (./configure --with-mysql)?
Será que é erro de instalação e configuração do mysql?
Obrigado



[9] Comentário enviado por parrera em 18/05/2010 - 18:44h

os arquivos criados em /etc/bacula são:

*bacula-fd.conf
*bconsole.conf
*script bacula
*script bconsole
*startmysql
*stopmysql
* e um bacula~

Só isso.

[10] Comentário enviado por parrera em 18/05/2010 - 19:05h

Este erro:

configure: error: Unable to find mysql.h in standard locations

não acha este arquivo em : /home/bacula-5.0.2/src/cats/
realmente ele não consta lah.



[11] Comentário enviado por Johnny Tardin em 19/05/2010 - 00:15h

Bem, então faça o seguinte:

Instale:

termcap-devel

e


symlink

Faça isso e me retorne.

[12] Comentário enviado por parrera em 19/05/2010 - 14:17h

Certo instalei esses 2 e fiz:

parrera:~ # cd /root/bacula-5.0.2
parrera:~/bacula-5.0.2 # ./configure --with-mysql
checking for true... /bin/true
checking for false... /bin/false
configuring for Bacula 5.0.2 (28 April 2010)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... /usr/bin/g++
checking for a BSD-compatible install... /usr/bin/install -c
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for openssl... /usr/bin/openssl
checking for mtx... mtx
checking for dd... /bin/dd
checking for mkisofs... /usr/bin/mkisofs
checking for python... /usr/bin/python
checking for growisofs... /usr/bin/growisofs
checking for dvd+rw-mediainfo... /usr/bin/dvd+rw-mediainfo
checking for dvd+rw-format... /usr/bin/dvd+rw-format
checking for pkg-config... /usr/bin/pkg-config
checking for qmake... none
checking for gmake... /usr/bin/gmake
checking for wx-config... wx-config
checking for cdrecord... /usr/bin/cdrecord
checking for pidof... /sbin/pidof
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... /usr/bin/ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... /usr/bin/g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by /usr/bin/g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for /usr/bin/g++ option to produce PIC... -fPIC -DPIC
checking if /usr/bin/g++ PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/g++ static flag -static works... yes
checking if /usr/bin/g++ supports -c -o file.o... yes
checking if /usr/bin/g++ supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for Operating System Distribution... done
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for msgfmt... (cached) /usr/bin/msgfmt
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no
checking term.h usability... no
checking term.h presence... no
checking for term.h... no

Required libraries not found. CONIO turned off ...
],
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for strcasecmp... yes
checking for select... yes
checking for setenv... yes
checking for putenv... yes
checking for tcgetattr... yes
checking for lstat... yes
checking for lchown... yes
checking for nanosleep... yes
checking for nl_langinfo... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for Python support... no
checking for socket... yes
using libc's socket
checking for OpenSSL... no
checking for library containing dlopen... -ldl
checking for PostgreSQL support... no
checking for MySQL support... no
configure: error: Unable to find mysql.h in standard locations
parrera:~/bacula-5.0.2 # make
==>Entering directory /root/bacula-5.0.2/src
make[1]: Entering directory `/root/bacula-5.0.2/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/src'
==>Entering directory /root/bacula-5.0.2/scripts
make[1]: Entering directory `/root/bacula-5.0.2/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/scripts'
==>Entering directory /root/bacula-5.0.2/src/lib
make[1]: Entering directory `/root/bacula-5.0.2/src/lib'
==== Make of lib is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/lib'
==>Entering directory /root/bacula-5.0.2/src/findlib
make[1]: Entering directory `/root/bacula-5.0.2/src/findlib'
==== Make of findlib is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/findlib'
==>Entering directory /root/bacula-5.0.2/src/filed
make[1]: Entering directory `/root/bacula-5.0.2/src/filed'
==== Make of filed is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/filed'
==>Entering directory /root/bacula-5.0.2/src/console
make[1]: Entering directory `/root/bacula-5.0.2/src/console'
==== Make of console is good ====

make[1]: Leaving directory `/root/bacula-5.0.2/src/console'
==>Entering directory /root/bacula-5.0.2/src/plugins/fd
make[1]: Entering directory `/root/bacula-5.0.2/src/plugins/fd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/src/plugins/fd'
==>Entering directory /root/bacula-5.0.2/src/cats
make[1]: Entering directory `/root/bacula-5.0.2/src/cats'
Compiling bvfs.c
bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:
bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’
bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:
bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope
bvfs.c:314: error: expected ‘;’ before ‘row’
bvfs.c:316: error: ‘row’ was not declared in this scope
bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope
bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope
bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:
bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:
bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:
bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’
bvfs.c: In member function ‘bool Bvfs::ls_files()’:
bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’
make[1]: *** [bvfs.lo] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/src/cats'


====== Error in /root/bacula-5.0.2/src/cats ======


==>Entering directory /root/bacula-5.0.2/src/dird
make[1]: Entering directory `/root/bacula-5.0.2/src/dird'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/dird'


====== Error in /root/bacula-5.0.2/src/dird ======


==>Entering directory /root/bacula-5.0.2/src/stored
make[1]: Entering directory `/root/bacula-5.0.2/src/stored'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/stored'


====== Error in /root/bacula-5.0.2/src/stored ======


==>Entering directory /root/bacula-5.0.2/src/tools
make[1]: Entering directory `/root/bacula-5.0.2/src/tools'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `dbcheck'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/tools'


====== Error in /root/bacula-5.0.2/src/tools ======


==>Entering directory /root/bacula-5.0.2/manpages
make[1]: Entering directory `/root/bacula-5.0.2/manpages'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/bacula-5.0.2/manpages'
parrera:~/bacula-5.0.2 # make install
./autoconf/mkinstalldirs /sbin
./autoconf/mkinstalldirs /etc/bacula
./autoconf/mkinstalldirs /etc/bacula
./autoconf/mkinstalldirs /usr/share/doc/bacula
./autoconf/mkinstalldirs /tmp
if test ! -d /var/bacula/working ; then \
./autoconf/mkinstalldirs /var/bacula/working; \
chmod 770 /var/bacula/working; \
fi
if test "x" != "x" ; then \
chown /var/bacula/working; \
fi
if test "x" != "x" ; then \
chgrp /var/bacula/working; \
fi
make[1]: Entering directory `/root/bacula-5.0.2/src'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/root/bacula-5.0.2/src'
make[1]: Entering directory `/root/bacula-5.0.2/scripts'
../autoconf/mkinstalldirs /etc/bacula
../autoconf/mkinstalldirs /sbin
../autoconf/mkinstalldirs /etc/bacula
../autoconf/mkinstalldirs /usr/share/man
/usr/bin/install -c -m 0750 startmysql /etc/bacula/startmysql
/usr/bin/install -c -m 0750 stopmysql /etc/bacula/stopmysql
/usr/bin/install -c -m 0750 bconsole /etc/bacula/bconsole
/usr/bin/install -c -m 0750 bacula /etc/bacula/bacula
/usr/bin/install -c -m 0750 bacula_config /etc/bacula/bacula_config
/usr/bin/install: cannot stat `bacula_config': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/scripts'
make[1]: Entering directory `/root/bacula-5.0.2/src/lib'
==== Make of lib is good ====

/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbac.la /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbaccfg.la /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbacpy.la /usr/lib64
make[1]: Leaving directory `/root/bacula-5.0.2/src/lib'
make[1]: Entering directory `/root/bacula-5.0.2/src/findlib'
==== Make of findlib is good ====

/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --finish --mode=install /usr/bin/install -c -m 0750 libbacfind.la /usr/lib64
make[1]: Leaving directory `/root/bacula-5.0.2/src/findlib'
make[1]: Entering directory `/root/bacula-5.0.2/src/filed'
==== Make of filed is good ====

/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bacula-fd /sbin/bacula-fd
==> Found existing bacula-fd.conf, installing new conf file as bacula-fd.conf.new
/usr/bin/install -c -m 640 bacula-fd.conf /etc/bacula/bacula-fd.conf.new
make[1]: Leaving directory `/root/bacula-5.0.2/src/filed'
make[1]: Entering directory `/root/bacula-5.0.2/src/console'
==== Make of console is good ====

/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bconsole /sbin/bconsole
==> Found existing bconsole.conf, installing new conf file as bconsole.conf.new
/usr/bin/install -c -m 640 bconsole.conf /etc/bacula/bconsole.conf.new
if test -f static-bconsole; then \
/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 static-bconsole /sbin/static-bconsole; \
fi
make[1]: Leaving directory `/root/bacula-5.0.2/src/console'
make[1]: Entering directory `/root/bacula-5.0.2/src/plugins/fd'
/root/bacula-5.0.2/autoconf/mkinstalldirs /usr/lib64
/root/bacula-5.0.2/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 bpipe-fd.la /usr/lib64
/bin/rm -f /usr/lib64/bpipe-fd.la
make[1]: Leaving directory `/root/bacula-5.0.2/src/plugins/fd'
make[1]: Entering directory `/root/bacula-5.0.2/src/cats'
Compiling bvfs.c
bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:
bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’
bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:
bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope
bvfs.c:314: error: expected ‘;’ before ‘row’
bvfs.c:316: error: ‘row’ was not declared in this scope
bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope
bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope
bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:
bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:
bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:
bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’
bvfs.c: In member function ‘bool Bvfs::ls_files()’:
bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’
make[1]: *** [bvfs.lo] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/src/cats'
make[1]: Entering directory `/root/bacula-5.0.2/src/dird'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/dird'
make[1]: Entering directory `/root/bacula-5.0.2/src/stored'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/stored'
make[1]: Entering directory `/root/bacula-5.0.2/src/tools'
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by `dbcheck'. Stop.
make[1]: Leaving directory `/root/bacula-5.0.2/src/tools'
make[1]: Entering directory `/root/bacula-5.0.2/manpages'
/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man8
for I in bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8; \
do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
/usr/bin/install -c -m 644 $I.gz /usr/share/man/man8/$I.gz; \
rm -f $I.gz); \
done
/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man1
for I in bacula-tray-monitor.1 bacula-bwxconsole.1 bsmtp.1 bat.1; \
do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
/usr/bin/install -c -m 644 $I.gz /usr/share/man/man1/$I.gz; \
rm -f $I.gz); \
done
make[1]: Leaving directory `/root/bacula-5.0.2/manpages'

[13] Comentário enviado por parrera em 19/05/2010 - 14:46h

Parece que é o mesmo erro neh? não encontra o mysql.h

[14] Comentário enviado por Johnny Tardin em 21/05/2010 - 14:24h

Aqueles problemas das bibliotecas fantando foram resolvidos, pode reparar que não há mais o erro com elas. O problema principal está nestas linhas abaixo, que parece ser algo relacionado ao Mysql sim.

Você tem algum banco de dados rodando já nele? Se tiver, o seu root está com senha?
Pode ser que pra ele criar o banco tenha que ter permissão, e se estiver com senha seu mysql ele não acessará. Nesse caso acho que tem um comando que você passa a senha na instalação.

Mas caso não tenha senha e não tenha nenhum banco instalado, eu recomendaria você reinstalar seu mysql, é uma chance de resolver algo relacionado.


Compiling bvfs.c
bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:
bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’
bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:
bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope
bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope
bvfs.c:314: error: expected ‘;’ before ‘row’
bvfs.c:316: error: ‘row’ was not declared in this scope
bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope
bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope
bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:
bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’
bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:
bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’
bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:
bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’
bvfs.c: In member function ‘bool Bvfs::ls_files()’:
bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope
bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’
make[1]: *** [bvfs.lo] Error 1
make[1]: Leaving directory `/root/bacula-5.0.2/src/cats'

[15] Comentário enviado por parrera em 27/05/2010 - 13:39h

Vlw ae Johnny!
reinstalei meu mysql e está td nos conformes.
Posso te enviar um e-mail com algumas dúvidas dos passos do seu tutorial? É que estou implementado-o e me sobraram algumas dúvidas.
att.

[16] Comentário enviado por sandrocarva em 28/05/2010 - 10:06h

Salve...

Para corrigir o problema do mysql : "configure: error: Unable to find mysql.h in standard locations"
Instala o mysql-devel.

Att.

[17] Comentário enviado por parrera em 09/06/2010 - 23:14h

Johnny, já consegui esclarecer todas as dúvidas acima.

Agora qnd vou iniciar o sistema, vou na máquina aonde instalei e configurei o servidor bacula e informo:
parrera:~ # bacula-dir
14-Jun 15:14 bacula-dir: ERROR TERMINATION at run_conf.c:559
Config error: Invalid month, weekday or position range
: line 92, col 27 of file /etc/bacula/bacula-dir.conf
Run = Incremental 2nd-6th Monday at 8:00pm

O que pode ser esse erro?É de permissão?Como posso resolvê-lo?
Obrigado

[18] Comentário enviado por Johnny Tardin em 15/06/2010 - 18:42h

Solucionado via e-mail.

[19] Comentário enviado por parrera em 17/06/2010 - 19:46h

Pessoal, estou tentando instalar o backup, o Johnny está me ajudando em algumas configurações, depois que der certo, posso postar o se deu certo, e depois disponibilizo à vocês meu caso de uso com esta ferramenta.

[20] Comentário enviado por parrera em 01/07/2010 - 09:28h

No meu caso o servidor bacula, possui 3 arquivos que devem ser editados: bacula-sd.conf e bacula-fd.conf, além do bacula-dir.conf?
Quais os arquivos que devem estar na máquina(cliente bacula) que faremos o backup?
Obrigado!

[21] Comentário enviado por alpcarrara em 03/09/2010 - 17:11h

Boa tarde, tenho tentado instalar o bacula no meu OpenSuse 11.2, quando executo o ./configure --with-mysql ocorre o erro de loop no final, como segue:

&& CONFIG_FILES=./Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating ./Makefile
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing default commands
cd . \

Alguém sabe como posso resolver?

[22] Comentário enviado por rafatmb em 24/11/2010 - 15:19h

Parabens pelo artigo Johnny, muito bom, claro e direto.

Realmente o bacula é uma excelente ferramenta.

Abraço!

Rafael Marangoni
http://www.brlink.com.br

[23] Comentário enviado por digaovaa em 24/02/2011 - 15:39h

Boa tarde!

Estou com a seguinte situação:
A - Servidor linux ubuntu 10.04 com uma unidade de fita LTO-3 Ultrium IBM
B - Servidor Windows Server 2008 como File Server

No servidor B tenho assim:
G:\Documentos\*** onde *** são as pastas dos usuarios


não estou conseguindo fazer o backup na fita no servidor A.. Tem alguma forma de fazer o backup da pasta pela rede? exemplo

sbm://servidorB/Documentos

montar essa pasta não queria porque ela é muito grande...

pelo client do bacula no windows (bacula-fd) não funcionou.

Obrigado desde já.

Abraço

[24] Comentário enviado por brunovictor86 em 10/04/2012 - 12:06h

Se alguem ainda estiver com o mesmo problema do parrera, se so fazer este comando abaixo..

cd bacula-5.2.6/src/cats
cp bdb_mysql.h mysql.h

pronto..

tive outro problema tambem na hora de startar o serviço do bacula, estava dando erro neste arquivo libbaccats-5.2.6.so:
cp bacula-5.2.6/src/cats/.libs/libbaccats-5.2.6.so /lib64/ "se o seu sistema for 64 se não é so colocar no /lib/"

[25] Comentário enviado por thiago_dias em 20/09/2012 - 11:53h

Para resolver o problema do mysql.h no ubuntu, é só instalar o seguinte pacote:

apt-get install libmysqld-dev

Abraço.

[26] Comentário enviado por brunozago em 14/08/2013 - 09:30h


[16] Comentário enviado por sandrocarva em 28/05/2010 - 10:06h:

Salve...

Para corrigir o problema do mysql : "configure: error: Unable to find mysql.h in standard locations"
Instala o mysql-devel.

Att.


Muito bom, funcionou de primeira após o erro !


[27] Comentário enviado por jfernandes em 31/05/2015 - 23:22h

Pessoal, sei que estou bem atrasado, mas ....
Estou com um problema de compilar o Bacula no Suse Enterprise Server 11.
Após um make, vejam o erro .
==>Entering directory /downloads/bacula-7.0.5/src/console
make[1]: Entering directory `/downloads/bacula-7.0.5/src/console'
/downloads/bacula-7.0.5/libtool --silent --tag=CXX --mode=link /usr/bin/g++ -L/usr/include/readline -L../lib -L../cats -o bconsole console.o console_conf.o authenticate.o \
-lreadline -lhistory -lncurses -lbaccfg -lbac -lm -lpthread -ldl -ldl \

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libreadline.a when searching for -lreadline
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libhistory.a when searching for -lhistory
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lhistory
collect2: ld returned 1 exit status
make[1]: *** [bconsole] Error 1
make[1]: Leaving directory `/downloads/bacula-7.0.5/src/console'


====== Error in /downloads/bacula-7.0.5/src/console ======


make: *** [all] Error 1
director:/downloads/bacula-7.0.5 # ls /downloads/bacula-7.0.5/src/
baconfig.h bc_types.h cats config.h dird fileopts.h findlib host.h.in jcr.h Makefile plugins stored tools
bacula.h c ch.h console filed filetypes.h host.h .indent.pro lib Makefile.in qt-console streams.h version.h

Executei um ls na pasta
director:/downloads/bacula-7.0.5 # ls /downloads/bacula-7.0.5/src/console/
authenticate.c authenticate.o bconsole.conf bconsole.conf.in conio.c conio.h console.c console_conf.c console_conf.h console_conf.o console.o func.h .libs Makefile Makefile.in
director:/downloads/bacula-7.0.5 #
Fico no aguardo.
Joel Fernandes


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts