Re: [Bacula-users] moving from mysql (mariadb) to postgresql

2024-04-05 Thread Wanderlei Huttel
Hello

Take a look in this link
https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql

Em qui., 4 de abr. de 2024 21:40, Gary R. Schmidt 
escreveu:

> On 05/04/2024 07:32, Alan Polinsky wrote:
> > I am a retired programmer, with a small Lan at home; two Nas's, three
> > Linux and one Windows client, and an old LTO3 tape drive. The smaller
> > Nas gets backed up on a nightly basis, while the larger one, being used
> > mostly as an archive, is backed up only as needed. I've been using
> > bacula 9,6.7 with Mariadb as the database. Everything works perfectly.
> > In order to push my learning, I'm thinking of migrating from Maria to
> > Postgresql. My normal backup set has 31 tapes in the catalog; about an
> > additional 15 are used for selected backups. Is there a relatively
> > simple way to move from Maridb to Postgresql? I realize there may be a
> > problem with the difference in column definition. Is there anything else
> > I should consider?
> >
> >
> Basically, set up the PostgreSQL database with the Bacula tables,
> mysqldump the existing data, and then write scripts to massage the SQL
> until the PostgreSQL system accepts it.
>
> That's what I did, you can grab my scripts from
>  and try
> them, but I did it back in 2018, so they're out of date, and I have no
> recollection of what order I did things in!  ;-)
>
> Cheers,
> GaryB-)
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migrating from mariadb to postgresql

2022-09-05 Thread Wanderlei Huttel
Hello Uwe

Could you send me the dumps of MySQL that script had generated?

Best regards

*Wanderlei Hüttel*



Em seg., 5 de set. de 2022 às 06:21, Uwe Schuerkamp <
uwe.schuerk...@nionex.net> escreveu:

> Hi folks,
>
> I've now tried to migrate my mariadb bacula db to postgres using
> Wanderlei's scripts linked below. Sadly I end up with the same "hex
> value" volume names in the media table. :.( It looks like newer
> mariadb / mysql catalogs might require some extra steps to enable a
> successful migration to postgresql.
>
> I've tried casting "blob" and "tinyblob" (the mariadb column types for
> VolumeName, for example) to "text", but pgloader just hangs when
> including those cast statements.
>
> Also, Dima wrote earlier:
>
> > Because it's a hex text, presumably ;)
>
> > This is likely happening when pulling the data out of mysql, not when
> > displaying it in bconsole.
>
> > You could try `select encode(Volume, 'hex') from` whatever table it's
> in, in
> > psql. If that looks OK: `update $table set Volume=encode(Volume, 'hex')`
> would
> > be quick fix. Maybe add a guard along the lines of "where Volume like
> '\x%'"
> > or something.
>
> When doing the "select" outlined above I simply end up with the same
> volume names minus the leading "\x":
>
> bacula=# select encode(VolumeName, 'hex') from media;
>encode
> --------
>  7a69662d66756c6c2d30303031
>  7a69662d696e63722d30303032
>  7a69662d696e63722d30303033
>  ...
>
>
> All the best, Uwe
>
>
>
>
> On Tue, Aug 30, 2022 at 08:12:53PM -0300, Wanderlei Huttel wrote:
> >Hello Uwe
> >I've made a script to migrate MySQL/MariaDB to PostgreSQL
> >[1]
> https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql
> >I've found errors only in the Log table.
> >I've looked for chars with wrong encoding and make an update in
> MySQL, did
> >a dump and import again for PostgreSQL only this table
> >Best regards
>
> --
> Uwe Schürkamp // email: 
>
>
>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migrating from mariadb to postgresql

2022-09-02 Thread Wanderlei Huttel
Thanks Radosław!

Best regards

*Wanderlei Hüttel*



Em sex., 2 de set. de 2022 às 06:40, Radosław Korzeniewski <
rados...@korzeniewski.net> escreveu:

> Hi,
>
> śr., 31 sie 2022 o 01:14 Wanderlei Huttel 
> napisał(a):
>
>> Hello Uwe
>>
>> I've made a script to migrate MySQL/MariaDB to PostgreSQL
>>
>> https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql
>>
>> I've found errors only in the Log table.
>> I've looked for chars with wrong encoding and make an update in MySQL,
>> did a dump and import again for PostgreSQL only this table
>> Best regards
>>
>> *Wanderlei Hüttel*
>>
>>
> Confirm! Did some migration that way and customers are very happy!
> Really useful. Handles not so obvious quirks during the process!
>
> Thanks a lot for this script!
> --
> Radosław Korzeniewski
> rados...@korzeniewski.net
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migrating from mariadb to postgresql

2022-09-01 Thread Wanderlei Huttel
Hello Uwe

I found a document on the internet about pgloader.
Maybe it would be necessary to make a cast of the fields.

https://pgloader.readthedocs.io/en/latest/ref/mysql.html#mysql-database-casting-rules


Best regards

*Wanderlei Hüttel*



Em qui., 1 de set. de 2022 às 10:00, Uwe Schuerkamp <
uwe.schuerk...@nionex.net> escreveu:

> On Thu, Sep 01, 2022 at 01:01:31PM +0100, Martin Simmons wrote:
>
> > The volume name above is "zif-incr-0019" if you decode the hex, so it
> looks
> > like you need to add some translation from the various BLOB types to
> text in
> > the pgloader configuration if that is possible.  By default, pgloader
> converts
> > the BLOB types to binary.
> >
>
> Hello Martin et al.,
>
> I just checked the table definition in postgres (as it's created by
> bacula's script) and the fields in question are all of type "text" in
> postgres, not binary, even after pgloader has imported the mysql data.
>
> I may well be mis-interpreting psql's output, but this is what I
> see when I look at the job table for instance:
>
> \d+ job
> Table
> "public.job"
>  Column  |Type | Collation | Nullable |
>   Default   | Storage  | Stats target | Description
>
> -+-+---+--++--+--+-
>  jobid   | integer |   | not null |
> nextval('job_jobid_seq'::regclass) | plain|  |
>  job | text|   | not null |
> | extended |  |
>  name| text|   | not null |
> | extended |  |
>
>
> So I'm wondering why "text" would end up displayed as "hex" in bconsole?
>
> Thanks again for your help (and your patience with a postgres noob :-)),
>
> Uwe
>
>
> --
> Uwe Schürkamp // email: 
>
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migrating from mariadb to postgresql

2022-08-30 Thread Wanderlei Huttel
Hello Uwe

I've made a script to migrate MySQL/MariaDB to PostgreSQL
https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql

I've found errors only in the Log table.
I've looked for chars with wrong encoding and make an update in MySQL, did
a dump and import again for PostgreSQL only this table
Best regards

*Wanderlei Hüttel*



Em ter., 30 de ago. de 2022 às 13:44, Martin Simmons 
escreveu:

> > On Tue, 30 Aug 2022 16:04:08 +0200, Uwe Schuerkamp said:
> >
> > Hello Charles,
> >
> > thanks for "INSERT only" idea... it's worked partially. After removing
> > some double quotes and other characters using sed psql didn't like,
> > the import runs for a while and then stops with the following error:
> >
> > INSERT 0 6
> > ERROR:  duplicate key value violates unique constraint "status_pkey"
> > DETAIL:  Key (jobstatus)=(A) already exists.
> >
> >
> > Any idea what could be causing this?
>
> That looks like the JobStatus table.  Don't migrate that one because the
> make_postgresql_tables script inserts all of the rows that are needed.
>
> __Martin
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Error Compiling S3 Libs in Ubuntu 22.0.4

2022-07-05 Thread Wanderlei Huttel
Thanks Eric!

Best regards

*Wanderlei Hüttel*



Em ter., 5 de jul. de 2022 às 07:08, Eric Bollengier via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> Hello Wanderlei,
>
> On 7/5/22 11:54, Wanderlei Huttel wrote:
> > Hello
> >
> > I'm trying to compile Bacula S3 libs in Ubuntu 22.0.4 and I'm getting the
> > error below:
> > I removed the "-Werror" flag and it apparently compiles without errors
> only
> > warnings. Is it ok?
>
> I believe it's ok, but the functions prototype have changed once again with
> OpenSSL 3, this change requires to update almost all piece of code ever
> written
> with openssl, including libs3 that is not so well maintained. We have a
> project
> to replace libs3 with the aws command line program for the cloud driver,
> aws is
> more likely to be supported, waiting for that, libs3 with your change is
> ok.
>
> Best Regards,
> Eric
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Error Compiling S3 Libs in Ubuntu 22.0.4

2022-07-05 Thread Wanderlei Huttel
Hello

I'm trying to compile Bacula S3 libs in Ubuntu 22.0.4 and I'm getting the
error below:
I removed the "-Werror" flag and it apparently compiles without errors only
warnings. Is it ok?


Before modify CFLAG
root@ubuntu:/usr/src/libs3-20200523# DESTDIR=/usr/local make
build/obj/bucket.do: Compiling dynamic object
build/obj/bucket_metadata.do: Compiling dynamic object
src/bucket_metadata.c: In function ‘generate_content_md5’:
src/bucket_metadata.c:489:5: error: ‘MD5_Init’ is deprecated: Since OpenSSL
3.0 [-Werror=deprecated-declarations]
  489 | MD5_Init();
  | ^~~~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
  |   ^~~~
src/bucket_metadata.c:490:5: error: ‘MD5_Update’ is deprecated: Since
OpenSSL 3.0 [-Werror=deprecated-declarations]
  490 | MD5_Update(, data, size);
  | ^~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data,
size_t len);
  |   ^~
src/bucket_metadata.c:491:5: error: ‘MD5_Final’ is deprecated: Since
OpenSSL 3.0 [-Werror=deprecated-declarations]
  491 | MD5_Final((unsigned char*)md5Buffer, );
  | ^
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
  |   ^
cc1: all warnings being treated as errors
make: *** [GNUmakefile:229: build/obj/bucket_metadata.do] Error 1




After modify CFLAG

root@ubuntu:/usr/src/libs3-20200523# DESTDIR=/usr/local make
build/obj/bucket.do: Compiling dynamic object
build/obj/bucket_metadata.do: Compiling dynamic object
src/bucket_metadata.c: In function ‘generate_content_md5’:
src/bucket_metadata.c:489:5: warning: ‘MD5_Init’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  489 | MD5_Init();
  | ^~~~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
  |   ^~~~
src/bucket_metadata.c:490:5: warning: ‘MD5_Update’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  490 | MD5_Update(, data, size);
  | ^~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data,
size_t len);
  |   ^~
src/bucket_metadata.c:491:5: warning: ‘MD5_Final’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  491 | MD5_Final((unsigned char*)md5Buffer, );
  | ^
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
  |   ^
build/obj/error_parser.do: Compiling dynamic object
build/obj/general.do: Compiling dynamic object
build/obj/object.do: Compiling dynamic object
build/obj/request.do: Compiling dynamic object
build/obj/request_context.do: Compiling dynamic object
build/obj/response_headers_handler.do: Compiling dynamic object
build/obj/service_access_logging.do: Compiling dynamic object
build/obj/service.do: Compiling dynamic object
build/obj/simplexml.do: Compiling dynamic object
build/obj/util.do: Compiling dynamic object
build/obj/multipart.do: Compiling dynamic object
build/lib/libs3.so.4: Building shared library
build/obj/bucket.o: Compiling object
build/obj/bucket_metadata.o: Compiling object
src/bucket_metadata.c: In function ‘generate_content_md5’:
src/bucket_metadata.c:489:5: warning: ‘MD5_Init’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  489 | MD5_Init();
  | ^~~~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
  |   ^~~~
src/bucket_metadata.c:490:5: warning: ‘MD5_Update’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  490 | MD5_Update(, data, size);
  | ^~
In file included from src/bucket_metadata.c:31:
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data,
size_t len);
  |   ^~
src/bucket_metadata.c:491:5: warning: ‘MD5_Final’ is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
  

Re: [Bacula-users] Community binary registration leads to 404 page

2022-06-08 Thread Wanderlei Huttel
Hello Sebastian

The bacula.org website is under maintence.

Em qua., 8 de jun. de 2022 06:32, Sebastian Elisa Pfeifer <
sebastian.pfei...@unicorncloud.org> escreveu:

> Dear all,
>
> I have a problem similar to the one Dirk had some days ago.
>
> If I register at the deb and rpm download page
> (https://www.bacula.org/bacula-binary-package-download/), I receive the
> link in the Email as promised (code ends with ...8e). If I click the
> link I end up at a 404 page.
> I tried to register again with two different Email accounts today and
> yesterday but received the same code that still causes a 404.
>
> Am I doing something wrong or is there a problem with the page?
>
> Greetings,
> Sebastian Elisa
>
> --
> Sebastian Elisa Pfeifer
>
> 0 1 0
> 0 0 1
> 1 1 1
>
> PGP Key ID:2D4C 0A7D F5F4 245E
>
> https://sebastian-elisa-pfeifer.eu
>
> Phone (DE):+49 221 596 19 4570
> Phone (AT):  +43 681 1063 8878
> Fax:  +43 1 22 600 45 - 10
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Community packages repo, wiki and cdash are offline

2022-06-06 Thread Wanderlei Huttel
Hello Eric

Have you ever think about create a git repository in https://github.com?

Best regards

*Wanderlei Hüttel*



Em seg., 6 de jun. de 2022 às 13:02, Eric Bollengier via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> > The git service is available on http://www.bacula.org/git/bacula but we
> will
> > update the configuration with some redirect to stay compatible with what
> it was
> > before. Thanks for the pointer.
>
> Sorry, it's http://www.bacula.org/git or https://www.bacula.org/git for
> the
> moment.
>
> Best Regards,
> Eric
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] HELP: Installation BACULA 11 on debian 10

2022-06-03 Thread Wanderlei Huttel
Hello Gina

The bacula.org web site is under maintence!

Em sex., 3 de jun. de 2022 10:50, gina.co...@uc.pt 
escreveu:

> Hi,
> I had installed a bacula server 11.0.5 in Debian 10. The installation
> procedure that I followed works fine until 3 weeks ago.
> I try today  to test the installation process and it failed
> I use de followup script in:
> https://www.bacula.lat/community/script-instalacao-bacula-community-9-x-pacotes-oficiais/
>
>
> **
> #!/bin/bash
> bacula_version="11.0.5"
> bacula_key="61cf096a918f8"
> linux_name="buster"
> export DEBIAN_FRONTEND=noninteractive
>
> 1.  Install necessary packages
> apt-get install -y zip wget bzip2 apt-transport-https gnupg2
>
> 2.  Download repository keys
> wget -c
> https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
> -O /tmp/Bacula-4096-Distribution-Verification-key.asc
> apt-key add /tmp/Bacula-4096-Distribution-Verification-key.asc
>
> 3. Create bacula repo
> echo "# Bacula Community
> deb
> http://www.bacula.org/packages/${bacula_key}/debs/${bacula_version}/${linux_name}/amd64/
> ${linux_name} main" > /etc/apt/sources.list.d/bacula-community.list
>
> 4.  Install MySQL
> wget -c https://repo.mysql.com/RPM-GPG-KEY-mysql -O
> /tmp/RPM-GPG-KEY-mysql --no-check-certificate
> apt-key add /tmp/RPM-GPG-KEY-mysql
>
> echo "deb http://repo.mysql.com/apt/debian/ ${linux_name} mysql-apt-config
> deb http://repo.mysql.com/apt/debian/ ${linux_name} mysql-5.7
> deb http://repo.mysql.com/apt/debian/ ${linux_name} mysql-tools
> deb http://repo.mysql.com/apt/debian/ ${linux_name} mysql-tools-preview
> deb-src http://repo.mysql.com/apt/debian/ ${linux_name} mysql-5.7" >
> /etc/apt/sources.list.d/mysql.list
>
> apt-get update
> apt-get install -y mysql-community-server
> apt-get install -y bacula-mysql
>
> systemctl enable mysql
> systemctl start mysql
>
> 5. Create Database BACULA
> /opt/bacula/scripts/create_mysql_database
> /opt/bacula/scripts/make_mysql_tables
> /opt/bacula/scripts/grant_mysql_privileges
>
> CREATE USER  bacula@localhost IDENTIFIED BY 'bacula';
> GRANT ALL PRIVILEGES ON * . * TO 'bacula';
> FLUSH PRIVILEGES;
>
> usermod -aG tape bacula
> usermod -aG disk bacula
>
> 6. Start daemons
> systemctl start bacula-fd.service
> systemctl start bacula-sd.service
> systemctl start bacula-dir.service
>
> 7. Create shortcut in /usr/bin
> for i in `ls /opt/bacula/bin`; do
> ln -s /opt/bacula/bin/$i /usr/sbin/$i;
> done
>
> 8. Change address to localhost
> sed '/[Aa]ddress/s/=\s.*/= localhost/g' -i  /opt/bacula/etc/bconsole.conf
>
>
> **
>
> When I run de step 2 *(Download repository keys*)
> I received de following error
>
> *Resolving www.bacula.org  (www.bacula.org
> )... 94.103.98.87*
> *Connecting to www.bacula.org  (www.bacula.org
> )|94.103.98.87|:443... connected.*
> *HTTP request sent, awaiting response... 404 Not Found*
> *2022-06-03 14:40:32 ERROR 404: Not Found.*
>
> It seems that the link https://www.bacula.org/downloads/  no longer
> exists.
> So the next steps didn't work.
> Anyone can help me with this situation
>
> Gina Costa
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Debian systemd services problem

2022-05-03 Thread Wanderlei Huttel
Hello guys

I would like to know why when I compile Bacula source code, it doesn't
install Debian systemd services?

I always use the commands
make -j 8
make install
make install-autostart

I know there is a directory in source code "src/platforms/systemd", that
has the systemd services, but when I
try to enable it looks it gets the /etc/init.d files.

root@bacsys:/usr/src/bacula/bacula/platforms/debian# systemctl  status
bacula-dir
● bacula-dir.service - LSB: Start Bacula Director daemon at boot time
 Loaded: loaded (/etc/init.d/bacula-dir; generated)
 Active: inactive (dead)
   Docs: man:systemd-sysv-generator(8)


=
# Trying to enable bacula services systemd
root@bacula:~# systemctl enable {bacula-fd,bacula-dir,bacula-sd}
bacula-fd.service is not a native service, redirecting to
systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bacula-fd
bacula-dir.service is not a native service, redirecting to
systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bacula-dir
bacula-sd.service is not a native service, redirecting to
systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bacula-sd

=
# Bacula source code platforms/systemd
root@bacula:/usr/src/bacula/platforms/systemd#
total 40K
-rw-r--r-- 1 root root   77 mai  2 14:09 bacula.conf
-rw-r--r-- 1 root root   66 abr 27 15:05 bacula.conf.in
-rw-r--r-- 1 root root  930 mai  2 14:09 bacula-dir.service
-rw-r--r-- 1 root root  948 abr 27 15:05 bacula-dir.service.in
-rw-r--r-- 1 root root  785 mai  2 14:09 bacula-fd.service
-rw-r--r-- 1 root root  800 abr 27 15:05 bacula-fd.service.in
-rw-r--r-- 1 root root  979 mai  2 14:09 bacula-sd.service
-rw-r--r-- 1 root root  988 mai  2 13:22 bacula-sd.service.in
-rw-r--r-- 1 root root 3,8K mai  2 14:09 Makefile
-rw-r--r-- 1 root root 3,8K abr 27 15:05 Makefile.in

=
If I only inform the option "--with-systemd" in my ./configure,
in config.out get the path /lib/systemd/system

./configure \
 --enable-smartalloc \
 --with-postgresql \
 --with-db-user=bacula \
 --with-db-password=bacula \
 --with-db-port=5432 \
 --with-openssl \
 --with-readline=/usr/include/readline \
 --sysconfdir=/etc/bacula \
 --bindir=/usr/bin \
 --sbindir=/usr/sbin \
 --with-scriptdir=/etc/bacula/scripts \
 --with-plugindir=/etc/bacula/plugins \
 --with-pid-dir=/var/run \
 --with-subsys-dir=/etc/bacula/working \
 --with-working-dir=/etc/bacula/working \
 --with-bsrdir=/etc/bacula/bootstrap \
 --with-s3=/usr/local \
 --with-basename=bacula \
 --with-hostname=192.168.1.1 \
 --with-systemd
 --disable-conio \
 --disable-nls \
 --with-logdir=/var/log/bacula \
 --with-dump-email=em...@domain.com \
 --with-job-email=em...@domain.com


=
Configuration on Mon May  2 14:09:36 -03 2022:

   Host:  x86_64-pc-linux-gnu -- debian 11.3
   Bacula version:Bacula 11.3.2 (24 March 2022)
   Source code location:  .
   Install binaries:  /usr/sbin
   Install libraries: /usr/lib
   Install config files:  /etc/bacula
   Scripts directory: /etc/bacula/scripts
   Archive directory: /tmp
   Working directory: /etc/bacula/working
   PID directory: /etc/bacula/working
   Subsys directory:  /etc/bacula/working
   Man directory: /usr/share/man
   Data directory:/usr/share
   Plugin directory:  /etc/bacula/plugins
   C Compiler:gcc 10.2.1-6)
   C++ Compiler:  /usr/bin/g++ 10.2.1-6)
   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: PostgreSQL
   Database port: 5432
   Database name: bacula
   Database user: bacula
   Database SSL options:

   Job Output Email:  em...@domain.com
   Traceback Email:   em...@domain.com
   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:  no -lreadline -lhistory -ltinfo
   readline support:  yes
   TCP Wrappers support:  no
   TLS support:   yes
   Encryption support:yes
   ZLIB 

Re: [Bacula-users] Error when compiling Bacula 11.3

2022-04-21 Thread Wanderlei Huttel
Hello Eric!

Thanks for your fix. Now it worked.
Taking advantage of this email, is the documentation for version 11.3
complete on the site or has it not been updated yet?

Best regards

*Wanderlei Hüttel*



Em qui., 21 de abr. de 2022 às 06:39, Eric Bollengier <
e...@baculasystems.com> escreveu:

> Hello Wanderlei,
>
> I have just pushed a fix for this compilation issue,
>
> can you update and retry?
>
> Thanks,
>
> Best Regards,
>
> Eric
>
> On 21.04.22 01:47, Wanderlei Huttel wrote:
> > Hello
> > I'm trying to compile Bacula as I always do, now in Debian GNU/Linux 11
> > (bullseye), and I'm getting an error.
> >
> > config.out
> > ==
> > Configuration on Wed Apr 20 20:33:26 -03 2022:
> >
> >Host:  x86_64-pc-linux-gnu -- debian 11.3
> >Bacula version:Bacula 11.3.2 (24 March 2022)
> >Source code location:  .
> >Install binaries:  /usr/sbin
> >Install libraries: /usr/lib
> >Install config files:  /etc/bacula
> >Scripts directory: /etc/bacula/scripts
> >Archive directory: /tmp
> >Working directory: /etc/bacula/working
> >PID directory: /var/run
> >Subsys directory:  /etc/bacula/working
> >Man directory: /usr/share/man
> >Data directory:/usr/share
> >Plugin directory:  /etc/bacula/plugins
> >C Compiler:gcc 10.2.1-6)
> >C++ Compiler:  /usr/bin/g++ 10.2.1-6)
> >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: PostgreSQL
> >Database port: 5432
> >Database name: bacula
> >Database user: bacula
> >Database SSL options:
> >
> >Job Output Email: em...@domain.com
> >Traceback Email: em...@domain.com
> >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:  no -lreadline -lhistory -ltinfo
> >readline support:  yes
> >TCP Wrappers support:  no
> >TLS support:   yes
> >Encryption support:yes
> >ZLIB support:  yes
> >LZO support:   yes
> >S3 support:yes
> >enable-smartalloc: yes
> >enable-lockmgr:no
> >bat support:   no
> >client-only:   no
> >build-dird:yes
> >build-stored:  yes
> >Plugin support:yes
> >LDAP support:  no
> >LDAP StartTLS support: no
> >AFS support:   no
> >ACL support:   yes
> >XATTR support: yes
> >GPFS support:  no
> >systemd support:   yes /lib/systemd/system
> >Batch insert enabled:  PostgreSQL
> >
> >Plugins:
> >- Docker:  no
> >- Kubernetes:
> >- LDAP BPAM:   no
> >- CDP: auto
> > ==
> >
> > make -j 8
> >
> > ==
> > LT Compiling org_libsd_filemedia.c
> > LT Compiling org_libsd_quota.c
> > LT Compiling org_libsd_sir.c
> > LT Compiling cloud_parts.c
> > LT Compiling cloud_transfer_mgr.c
> > LT Compiling cloud_dev.c
> > LT Compiling file_driver.c
> > make[1]: *** Sem regra para processar o alvo 'bee_s3_cloud_glacier.lo',
> > necessário por 'bacula-sd-cloud-glacier-s3-driver.la
> > <http://bacula-sd-cloud-glacier-s3-driver.la>' .  Pare.
> > make[1]: ** Esperando que outros processos terminem.
> > LT Compiling s3_driver.c
> > make[1]: Saindo do diretório '/usr/src/bacula/bacula/src/stored'
> >
> >   == Error in /usr/src/bacula/bacula/src/stored ==
> >
> > make: *** [Makefile:162: all] Erro 1
> > root@debian:/usr/src/bacula/bacula# git status
> > On branch Branch-11.3
> > Your branch is up to date with 'origin/Branch-11.3'.
> > ==
> >
> >
> >
> > Best regards
> >
> > *Wanderlei Hüttel*
> >
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Error when compiling Bacula 11.3

2022-04-20 Thread Wanderlei Huttel
Hello
I'm trying to compile Bacula as I always do, now in Debian GNU/Linux 11
(bullseye), and I'm getting an error.

config.out
==
Configuration on Wed Apr 20 20:33:26 -03 2022:

   Host:  x86_64-pc-linux-gnu -- debian 11.3
   Bacula version:Bacula 11.3.2 (24 March 2022)
   Source code location:  .
   Install binaries:  /usr/sbin
   Install libraries: /usr/lib
   Install config files:  /etc/bacula
   Scripts directory: /etc/bacula/scripts
   Archive directory: /tmp
   Working directory: /etc/bacula/working
   PID directory: /var/run
   Subsys directory:  /etc/bacula/working
   Man directory: /usr/share/man
   Data directory:/usr/share
   Plugin directory:  /etc/bacula/plugins
   C Compiler:gcc 10.2.1-6)
   C++ Compiler:  /usr/bin/g++ 10.2.1-6)
   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: PostgreSQL
   Database port: 5432
   Database name: bacula
   Database user: bacula
   Database SSL options:

   Job Output Email:  em...@domain.com
   Traceback Email:   em...@domain.com
   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:  no -lreadline -lhistory -ltinfo
   readline support:  yes
   TCP Wrappers support:  no
   TLS support:   yes
   Encryption support:yes
   ZLIB support:  yes
   LZO support:   yes
   S3 support:yes
   enable-smartalloc: yes
   enable-lockmgr:no
   bat support:   no
   client-only:   no
   build-dird:yes
   build-stored:  yes
   Plugin support:yes
   LDAP support:  no
   LDAP StartTLS support: no
   AFS support:   no
   ACL support:   yes
   XATTR support: yes
   GPFS support:  no
   systemd support:   yes /lib/systemd/system
   Batch insert enabled:  PostgreSQL

   Plugins:
   - Docker:  no
   - Kubernetes:
   - LDAP BPAM:   no
   - CDP: auto
==

make -j 8

==
LT Compiling org_libsd_filemedia.c
LT Compiling org_libsd_quota.c
LT Compiling org_libsd_sir.c
LT Compiling cloud_parts.c
LT Compiling cloud_transfer_mgr.c
LT Compiling cloud_dev.c
LT Compiling file_driver.c
make[1]: *** Sem regra para processar o alvo 'bee_s3_cloud_glacier.lo',
necessário por 'bacula-sd-cloud-glacier-s3-driver.la' .  Pare.
make[1]: ** Esperando que outros processos terminem.
LT Compiling s3_driver.c
make[1]: Saindo do diretório '/usr/src/bacula/bacula/src/stored'

  == Error in /usr/src/bacula/bacula/src/stored ==

make: *** [Makefile:162: all] Erro 1
root@debian:/usr/src/bacula/bacula# git status
On branch Branch-11.3
Your branch is up to date with 'origin/Branch-11.3'.
==



Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Client Behind NAT

2021-12-02 Thread Wanderlei Huttel
I'm trying to configure the new feature in in Bacula, but manual is not
clear about it.
https://www.bacula.org/11.0.x-manuals/en/main/New_Features_in_11_0_0.html#SECTION00230
In the company have some employees that sometimes are working at home with
their laptops and the most of time are working internal

So, I've thought include "Client Behind Nat" to backup their laptops when
they are remote

1) I've create 2 rules in Firewall to forward ports 9101 and 9103 from FW
Server to Bacula Server (The connection it looks OK)

2) I've configured the laptop client (bacula-fd.conf)
Director {
  Name = bacula-dir
  Password = "mypassword"
  Address = mydomain.com
  Connect To Director = yes
}

3) In bacula-dir.conf on client-XXX I've configured the option:
Allow FD Connections = yes
Should I include "FD Storage Address = mydomain.com"  to backup when the
employee is remote?

4) If I want to modify the ports from client behind NAT connect, how to do?
Is possible?

5) This Kind of configuration will work when the employee is in the local
network or in remote network?

I've made a test and didn't worked using the configuration like manual and
didn't worked.
==
2021-12-02 11:45:02   bacula-dir JobId 28304: Start Backup JobId 28304,
Job=Backup_Maquina_Remota.2021-12-02_11.45.00_03
2021-12-02 11:45:02   bacula-dir JobId 28304: Using Device "DiscoLocal1" to
write.
2021-12-02 11:48:02   bacula-dir JobId 28304: Fatal error: No Job status
returned from FD.
2021-12-02 11:48:02   bacula-dir JobId 28304: Error: Bacula bacula-dir
11.0.5 (03Jun21):
  Build OS:   x86_64-pc-linux-gnu debian 9.13
  JobId:  28304
  Job:Backup_Maquina_Remota.2021-12-02_11.45.00_03
  Backup Level:   Incremental, since=2021-12-01 17:30:01
  Client: "remota-fd" 11.0.5 (03Jun21) Microsoft Windows 8
Professional (build 9200), 64-bit,Cross-compile,Win64
  FileSet:"FileSet_Remota" 2015-03-12 16:05:45
  Pool:   "Diaria" (From Run Pool override)
  Catalog:"MyCatalog" (From Client resource)
  Storage:"StorageLocal1" (From Pool resource)
  Scheduled time: 02-Dec-2021 11:45:00
  Start time: 02-Dec-2021 11:45:02
  End time:   02-Dec-2021 11:48:02
  Elapsed time:   3 mins
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:   no
  Encryption: no
  Accurate:   yes
  Volume name(s):
  Volume Session Id:  80
  Volume Session Time:1637867221
  Last Volume Bytes:  2,064,348,469 (2.064 GB)
  Non-fatal FD errors:1
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Waiting on FD
  Termination:*** Backup Error ***
2021-12-02 11:48:02   bacula-dir JobId 28304: shell command: run AfterJob
"/etc/bacula/scripts/_webacula_update_filesize.sh 28304 Backup Error"
2021-12-02 11:48:02   bacula-dir JobId 28304: AfterJob: The JobSize and
FileSize of JobId 28304 were updated successfully!
2021-12-02 11:48:02   bacula-dir JobId 28304: shell command: run AfterJob
"/etc/bacula/scripts/_send_telegram.sh 28304"==

Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude Day from Schedule

2021-08-27 Thread Wanderlei Huttel
Change to the first friday, is easier to change:

Schedule {
  Name = "E1N-WeeklyCycle"
  Run = Level=Full first fri at 17:00
  Run = Level=Incremental mon-thu at 17:00
  Run = Level=Differential 2nd-5th fri at 17:00
}

Best regards

*Wanderlei Hüttel*



Em sex., 27 de ago. de 2021 às 08:45, fk+bacula--- via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> Hi there,
>
> I have the following schedule to do a tape backup, the tape for the right
> pool must be insert everyday before 17:00
>
> Schedule {
>   Name = "E1N-WeeklyCycle"
>   Run = Level=Full last fri at 17:00
>   Run = Level=Incremental mon-thu at 17:00
>   Run = Level=Differential 1st-5th fri at 17:00
> }
>
> Okay, today the schedule shows Full and Differential backup at 17:00
>
> I there a way to define, that Differential will not execute on the last
> Friday?
> Anything like negation or exclusion?
>
> Thanks for any help,
> Frank
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Deadweight volumes, how to discard?

2021-08-05 Thread Wanderlei Huttel
Hello Robert

You can create a file with list of volumes that you want to delete and use
some script something like this below:

Example of file /tmp/volumes.txt
volume01
volume02
volume03

#!/bin/bash
bconsole=$(which bconsole)
for volname in $(cat /tmp/volumes.txt); do
echo $volname;
echo "delete volume=${volname} pool=PoolName yes" | ${bconsole} ;
rm -f /path/to/storage/${volname};
done

Best regards

*Wanderlei Hüttel*



Em qui., 5 de ago. de 2021 às 16:38, Robert Earl 
escreveu:

> Hi folks,
> I have a large number of abandoned volumes with no data, no associated
> file, and haven't been written in years. I believe they are the obstacle to
> automatic labeling of new volumes; my Maximum Volumes for this pool is 120.
>
> Alarmingly, I just found a "Full" volume whose mtime is April 9, 2021 but
> Baculum's "Last Written" record is Feb. 28, 2019.
>
> I also have 10 old volumes that are outdated and I can purge/recycle.
>
> I am looking at batch-processing a large number of volumes, though, so
> this is unwieldy through the GUI, and I'm dense on the niceties of
> bconsole. What would be the procedure for a set of mass operations like
> this from a script/command line?
>
> Thanks
> Robert
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to configure Bacula with S3

2021-06-17 Thread Wanderlei Huttel
Hello Josip

I don't know why, but I've run ldconfig several time and didn't worked,
only when I remove the /etc/ld.so.cache that s3 worked.

Best regards

*Wanderlei Hüttel*



Em qui., 17 de jun. de 2021 às 07:04, Josip Deanovic <
djosip+n...@linuxpages.net> escreveu:

> On Wednesday 2021-06-16 16:44:34 Wanderlei Huttel wrote:
> > Hello Erick
> >
> > I guess I've discovered the problem.
> > I had to remove the libs cache "rm /etc/ld.so.cache" and just
> > run "ldconfig" to create a new cache and then running command "s3"
> > worked fine.
> >
> > I guess my bacula configuration (director and storage are OK), I've made
> > a backup and it worked.
>
>
> Hello!
>
> You don't have to remove /etc/ld.so.cache file. Just run ldconfig.
>
> By default only libraries found in /lib and /usr/lib will be cached.
> Recent Linux distributions removed lib directory and replaced it with a
> symlink pointing to usr/lib in the root directory.
>
> Suse 9 and probably 10 and later, used to run ldconfig with a specific
> config file with every package install or update thus ignoring
> /etc/ld.so.conf file which is just one of many bad decisions they did.
>
>
> Regards!
>
> --
> Josip Deanovic
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to configure Bacula with S3

2021-06-16 Thread Wanderlei Huttel
Hello Erick

I guess I've discovered the problem.
I had to remove the libs cache "rm /etc/ld.so.cache" and just
run "ldconfig" to create a new cache and then running command "s3" worked
fine.

I guess my bacula configuration (director and storage are OK), I've made a
backup and it worked.

Thanks

Best regards

*Wanderlei Hüttel*



Em qua., 16 de jun. de 2021 às 12:02, Eric Bollengier via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> Hello,
>
> I would suggest to play with ld.so.conf and LD_LIBRARY_PATH, it seems that
> new
> systems are not very fan of having things in /usr/local.
>
> Best Regards,
>
> Eric
>
> On 16.06.21 14:01, Wanderlei Huttel wrote:
> > Hello
> >
> > Finally I'm trying to run Bacula with S3 Cloud (Wasabi), but I'm not
> getting
> > to configure.
> > In the Whitepaper and Manual is not so clear (would be interesting have
> more
> > information  and examples about it).
> >
> > What I'm doing wrong?
> >
> > I followed this bacula video:
> > https://www.youtube.com/watch?v=WCsgtl--ZHA
> > <https://www.youtube.com/watch?v=WCsgtl--ZHA>
> >
> > root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make clean
> > build: Cleaning
> >
> > root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make
> > build/obj/bucket.do: Compiling dynamic object
> > build/obj/bucket_metadata.do: Compiling dynamic object
> > build/obj/error_parser.do: Compiling dynamic object
> > build/obj/general.do: Compiling dynamic object
> > build/obj/object.do: Compiling dynamic object
> > build/obj/request.do: Compiling dynamic object
> > build/obj/request_context.do: Compiling dynamic object
> > build/obj/response_headers_handler.do: Compiling dynamic object
> > build/obj/service_access_logging.do: Compiling dynamic object
> > build/obj/service.do: Compiling dynamic object
> > build/obj/simplexml.do: Compiling dynamic object
> > build/obj/util.do: Compiling dynamic object
> > build/obj/multipart.do: Compiling dynamic object
> > build/lib/libs3.so.4: Building shared library
> > build/obj/bucket.o: Compiling object
> > build/obj/bucket_metadata.o: Compiling object
> > build/obj/error_parser.o: Compiling object
> > build/obj/general.o: Compiling object
> > build/obj/object.o: Compiling object
> > build/obj/request.o: Compiling object
> > build/obj/request_context.o: Compiling object
> > build/obj/response_headers_handler.o: Compiling object
> > build/obj/service_access_logging.o: Compiling object
> > build/obj/service.o: Compiling object
> > build/obj/simplexml.o: Compiling object
> > build/obj/util.o: Compiling object
> > build/obj/multipart.o: Compiling object
> > build/lib/libs3.a: Building static library
> > build/obj/s3.o: Compiling object
> > build/bin/s3: Building executable
> > build/include/libs3.h: Linking header
> > build/obj/testsimplexml.o: Compiling object
> > build/bin/testsimplexml: Building executable
> >
> >
> > root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make install
> > /usr/local/bin/s3: Installing executable
> > /usr/local/lib/libs3.so.4.1.bac: Installing shared library
> > /usr/local/lib/libs3.so.4: Linking shared library
> > /usr/local/lib/libs3.so: Linking shared library
> > /usr/local/lib/libs3.a: Installing static library
> > install: AVISO: ignorando a opção --strip-program, pois a opção -s não
> foi
> > especificada
> > /usr/local/include/libs3.h: Installing header
> > install: AVISO: ignorando a opção --strip-program, pois a opção -s não
> foi
> > especificada
> >
> >
> > When I run S3 I've receive this error.
> > root@debian:/usr/src/libs3-20200523# s3
> > s3: error while loading shared libraries: libs3.so.4: cannot open shared
> > object file: No such file or directory
> >
> >
> > 
> > bacula-sd.conf
> > 
> > Storage{
> >   Name = bacula-sd
> >   SDPort = 9103
> >   WorkingDirectory = "/etc/bacula/working"
> >   Pid Directory = "/etc/bacula/working"
> >   Maximum Concurrent Jobs = 50
> >   Heartbeat Interval = 300 seconds
> >   PluginDirectory = "/etc/bacula/plugins"
> > }
> >
> > Cloud {
> >   Name = "Wasabi"
> >   Driver = "S3"
> >   HostName = "s3.wasabisys.com <http://s3.wasabisys.com>"
> >   Region = "us-east-1"
> >   BucketName = "my-

[Bacula-users] How to configure Bacula with S3

2021-06-16 Thread Wanderlei Huttel
Hello

Finally I'm trying to run Bacula with S3 Cloud (Wasabi), but I'm not
getting to configure.
In the Whitepaper and Manual is not so clear (would be interesting have
more information  and examples about it).

What I'm doing wrong?

I followed this bacula video:
https://www.youtube.com/watch?v=WCsgtl--ZHA

root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make clean
build: Cleaning

root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make
build/obj/bucket.do: Compiling dynamic object
build/obj/bucket_metadata.do: Compiling dynamic object
build/obj/error_parser.do: Compiling dynamic object
build/obj/general.do: Compiling dynamic object
build/obj/object.do: Compiling dynamic object
build/obj/request.do: Compiling dynamic object
build/obj/request_context.do: Compiling dynamic object
build/obj/response_headers_handler.do: Compiling dynamic object
build/obj/service_access_logging.do: Compiling dynamic object
build/obj/service.do: Compiling dynamic object
build/obj/simplexml.do: Compiling dynamic object
build/obj/util.do: Compiling dynamic object
build/obj/multipart.do: Compiling dynamic object
build/lib/libs3.so.4: Building shared library
build/obj/bucket.o: Compiling object
build/obj/bucket_metadata.o: Compiling object
build/obj/error_parser.o: Compiling object
build/obj/general.o: Compiling object
build/obj/object.o: Compiling object
build/obj/request.o: Compiling object
build/obj/request_context.o: Compiling object
build/obj/response_headers_handler.o: Compiling object
build/obj/service_access_logging.o: Compiling object
build/obj/service.o: Compiling object
build/obj/simplexml.o: Compiling object
build/obj/util.o: Compiling object
build/obj/multipart.o: Compiling object
build/lib/libs3.a: Building static library
build/obj/s3.o: Compiling object
build/bin/s3: Building executable
build/include/libs3.h: Linking header
build/obj/testsimplexml.o: Compiling object
build/bin/testsimplexml: Building executable


root@debian:/usr/src/libs3-20200523# DESTDIR=/usr/local make install
/usr/local/bin/s3: Installing executable
/usr/local/lib/libs3.so.4.1.bac: Installing shared library
/usr/local/lib/libs3.so.4: Linking shared library
/usr/local/lib/libs3.so: Linking shared library
/usr/local/lib/libs3.a: Installing static library
install: AVISO: ignorando a opção --strip-program, pois a opção -s não foi
especificada
/usr/local/include/libs3.h: Installing header
install: AVISO: ignorando a opção --strip-program, pois a opção -s não foi
especificada


When I run S3 I've receive this error.
root@debian:/usr/src/libs3-20200523# s3
s3: error while loading shared libraries: libs3.so.4: cannot open shared
object file: No such file or directory



bacula-sd.conf

Storage{
  Name = bacula-sd
  SDPort = 9103
  WorkingDirectory = "/etc/bacula/working"
  Pid Directory = "/etc/bacula/working"
  Maximum Concurrent Jobs = 50
  Heartbeat Interval = 300 seconds
  PluginDirectory = "/etc/bacula/plugins"
}

Cloud {
  Name = "Wasabi"
  Driver = "S3"
  HostName = "s3.wasabisys.com"
  Region = "us-east-1"
  BucketName = "my-bucket-name"
  AccessKey = "MY_KEY"
  SecretKey = "MY_SECRET_KEY"
  Protocol = HTTPS
  UriStyle = path
  Truncate Cache = No #AfterUpload
  Upload = EachPart
  # MaximumUploadBandwidth = 5MB/s # Optional
}

Device {
  Name = "RemoteBucket"
  Device Type = Cloud
  Cloud = "Wasabi"
  Archive Device = "/backup/wasabi" # local volume cache
  Maximum Part Size = 500 MB # important: it is the object upload
granularity
  Media Type = Cloud
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}



bacula-dir.conf

Storage {
  Name = "Wasabi"
  Address = 192.168.1.87
  SDPort = 9103
  Password = "XXX"
  Device = "RemoteBucket"
  Media Type = Cloud
  Maximum Concurrent Jobs = 1
  Heartbeat Interval = 300 seconds
#  Autochanger = "Wasabi"
}


Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 11 - where's my Filename table? :-)

2021-06-15 Thread Wanderlei Huttel
Hello Uwe

I've made a patch to fix queries in "bacula/examples/sample-query.sql"
Basically is necessary to remove the table Filename and replace
"Filename.Name" by "File.FileName"

Best regards

*Wanderlei Hüttel*



Em ter., 15 de jun. de 2021 às 04:54, Uwe Schuerkamp <
uwe.schuerk...@nionex.net> escreveu:

> Hi folks,
>
> I just started upgrading a few instances from 9.6.x to 11.0.5 compiled
> from source. Following the db upgrade and trying out a "list files for
> a selected jobid" query, I noted an error about the query referencing
> the no-longer-existing table "Filename". I'm pretty sure that's noted
> in the release notes somewhere, but I didn't see any messages here so
> I thought I'd better make sure that the upgrade process went smoothly.
>
> The backups & restores are running fine on the version, it's just that
> both bweb / bacula web and my old query.sql files are borked (I
> usually copy over the query.sql file from my previous version).
>
> Thanks in advance & all the best,
>
> Uwe
>
> --
> Uwe Schürkamp | email: 
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


sample-query.sql.patch
Description: Binary data
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Release 11.0.5

2021-06-03 Thread Wanderlei Huttel
Hello Eric

Is the code updated in the bacula git? There's no tag 11.0.5.

Best regards

*Wanderlei Hüttel*



Em qui., 3 de jun. de 2021 às 15:05, Eric Bollengier via Bacula-devel <
bacula-de...@lists.sourceforge.net> escreveu:

> Hello,
>
> We are pleased to announce the release of Bacula version 11.0.5. This is
> a minor release of the new stable version.
>
> The new release 11.0 has with many new features and a number of
> changes. Please take care to test this code carefully before putting it
> into production.  Although the new features have been tested, they have
> not run in a production environment.
>
> This release of Bacula uses a new catalog format.  We provide a set of
> scripts that permit to convert a 9.x and earlier versions to the new
> 11.0 format (1023).  Normally, it is automatic, though this is a big
> change that takes longer than usual. The upgrade process will require
> more or less twice the size of the actual database on disk.
>
> Please see the ReleaseNotes for how to build Bacula 11.0.5 with the
> correct libs3 for use with the Amazon Cloud.
>
> The binaries (rpm, deb) should be ready in a week or two.
>
> Thank you for using Bacula,
> Eric
>
> 
> Release 11.0.5 03 June 2021
>
> 11.0.5 is a minor bug fix release.
>
>  - Fix compilation
>  - Fix org#2427 About incorrect handling of empty files with Accurate=yes
> on Windows
>  - Update MySQL update procedure for 5.6
>
> Bugs fixed/closed since last release:
> 2427
>
>
> ___
> Bacula-devel mailing list
> bacula-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula make Full backup when windows client is updated even than level would be incremental

2021-03-19 Thread Wanderlei Huttel
Hello

I've noticed this problem every time I need to update the Windows Clients
I'm using accurate mode "accurate = pinsM"

++--+-+--+---+--++---+
| jobid  | name | starttime   | type | level |
jobfiles | jobbytes   | jobstatus |
++--+-+--+---+--++---+
| 24,422 | Backup_Servidor_R2D2 | 2021-01-01 21:30:01 | B| F |
449,438 | 55,578,767,381 | T |
| 24,847 | Backup_Servidor_R2D2 | 2021-02-05 21:30:00 | B| F |
709,682 | 62,298,422,382 | T |
| 25,189 | Backup_Servidor_R2D2 | 2021-03-05 21:30:00 | B| F |
733,883 | 63,493,623,850 | T |
| 25,282 | Backup_Servidor_R2D2 | 2021-03-12 21:30:01 | B| F |
736,298 | 63,769,839,351 | T | Friday (make full) version 9.6.7
| 25,300 | Backup_Servidor_R2D2 | 2021-03-15 21:00:00 | B| I |
 18,701 |137,470,151 | T | Monday (make incremental) version
9.6.7
| 25,317 | Backup_Servidor_R2D2 | 2021-03-16 21:30:01 | B| I |
 11,848 |123,792,961 | T | Tuesday (make incremental) version
9.6.7
| 25,336 | Backup_Servidor_R2D2 | 2021-03-17 21:30:01 | B| I |
760,095 | 63,973,366,041 | T | Wednesday (make "incremental", but
copy all files again) version 11.0.1
| 25,352 | Backup_Servidor_R2D2 | 2021-03-18 21:30:01 | B| I |
611 | 64,247,486 | T |
++--+-+--+---+--++---+

Is this a bug?

Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error to compile bacula 9.6.5 in CentOS 7.8

2020-09-08 Thread Wanderlei Huttel
Hello Radoslaw!

I've tried to compile without the flag "-O2" but unfortunately it doesn't
work!

I usually compile Bacula using "make -j 8".
Then I've done a test and run only "make" command and now it  worked!

Even with CFLAGS="-g -O2 -Wall"


Best regards

*Wanderlei Hüttel*



Em seg., 7 de set. de 2020 às 03:37, Radosław Korzeniewski <
rados...@korzeniewski.net> escreveu:

> Hello,
>
> czw., 3 wrz 2020 o 16:52 Wanderlei Huttel 
> napisał(a):
>
>> I'm trying to compile bacula in CentOS 7.8 and I'm getting amd error!
>>
>> It looks the error is in the dird and is a c++ bug.
>>
>> How to avoid this error?
>>
>
> Try to compile without optimizations enabled, so without -O2 compiler flag
> and see if it works.
>
> I encountered a similar problem (g++ internal compiler error) during
> XenServer Plugin development when the code was broken and g++ wanted to
> apply a small loop unwinding optimization and failed. :)
> Disabling optimization solved the problem during compilation, but I had to
> fix the broken code anyway.
>
> best regards
> --
> Radosław Korzeniewski
> rados...@korzeniewski.net
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Error to compile bacula 9.6.5 in CentOS 7.8

2020-09-03 Thread Wanderlei Huttel
I'm trying to compile bacula in CentOS 7.8 and I'm getting amd error!

It looks the error is in the dird and is a c++ bug.

How to avoid this error?

My command for compiling
==
#!/bin/bash
./configure \
 --enable-smartalloc \
 --with-postgresql \
 --with-db-user=bacula \
 --with-db-password=bacula \
 --with-db-port=5432 \
 --with-openssl \
 --with-readline=/usr/include/readline \
 --sysconfdir=/etc/bacula \
 --bindir=/usr/bin \
 --sbindir=/usr/sbin \
 --with-scriptdir=/etc/bacula/scripts \
 --with-plugindir=/etc/bacula/plugins \
 --with-pid-dir=/var/run \
 --with-subsys-dir=/etc/bacula/working \
 --with-working-dir=/etc/bacula/working \
 --with-bsrdir=/etc/bacula/bootstrap \
 --with-systemd \
 --disable-conio \
 --disable-nls \
 --with-logdir=/var/log/bacula \
 --with-dump-email=em...@domain.com \
 --with-job-email=em...@domain.com

==
Configuration on Thu Sep  3 10:35:12 EDT 2020:

   Host:  x86_64-pc-linux-gnu -- redhat (Core)
   Bacula version:Bacula 9.6.5 (11 June 2020)
   Source code location:  .
   Install binaries:  /usr/sbin
   Install libraries: /usr/lib64
   Install config files:  /etc/bacula
   Scripts directory: /etc/bacula/scripts
   Archive directory: /tmp
   Working directory: /etc/bacula/working
   PID directory: /var/run
   Subsys directory:  /etc/bacula/working
   Man directory: /usr/share/man
   Data directory:/usr/share
   Plugin directory:  /etc/bacula/plugins
   C Compiler:gcc 4.8.5
   C++ Compiler:  /usr/bin/g++ 4.8.5
   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: PostgreSQL
   Database port: 5432
   Database name: bacula
   Database user: bacula
   Database SSL options:

   Job Output Email:  em...@domain.com
   Traceback Email:   em...@domain.com
   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:  no -lreadline -lhistory -ltinfo
   readline support:  yes
   TCP Wrappers support:  no
   TLS support:   yes
   Encryption support:yes
   ZLIB support:  yes
   LZO support:   no
   S3 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 /lib/systemd/system
   Batch insert enabled:  PostgreSQL

   Plugins:
   - Docker:  no


==
 Make of sqllibs is good 

make[1]: Leaving directory `/usr/src/bacula/bacula/src/cats'
==>Entering directory /usr/src/bacula/bacula/src/dird
make[1]: Entering directory `/usr/src/bacula/bacula/src/dird'
Compiling dird.c
Compiling admin.c
Compiling authenticate.c
Compiling autoprune.c
Compiling backup.c
Compiling bsr.c
Compiling catreq.c
Compiling dir_plugins.c
Compiling dird_conf.c
Compiling expand.c
Compiling fd_cmds.c
Compiling getmsg.c
Compiling inc_conf.c
Compiling job.c
Compiling jobq.c
Compiling mac.c
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
make[1]: *** [dird_conf.o] Error 4
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory `/usr/src/bacula/bacula/src/dird'

  == Error in /usr/src/bacula/bacula/src/dird ==

make: *** [all] Error 1
==



Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Retention Period

2020-06-23 Thread Wanderlei Huttel
Hello Ken

You must change the "Volume Retention" in the Pool Resource.
And after that is necessary to run the command "update" in the bconsole to
apply the changes vor volumes previously written.

*update
1: Volume parameters
14: All Volumes from all Pools

Best regards

*Wanderlei Hüttel*



Em ter., 23 de jun. de 2020 às 13:20, Ken Mandelberg 
escreveu:

> I'm using files for Volumes, not tapes. Originally I was doing 90 day
> retention, but since then the amount of data to backup has increased,
> and I don't want to commit more file volumes (I have 13 *50G ). The
> backups stop when the files are full and the soonest expiration date
> hasn't been reached.
>
> I tried changed the setting in the director.conf for the client to
>
>File Retention = 30 days# 30 days
>Job Retention = 45 days
>AutoPrune = yes # Prune expired Jobs/Files
> }
>
> I have rebooted the client (its all localhost) and the files still show
> 90 day expirations , all full and the jobs don't run.
>
> To get things running, I can manually purge the oldest, but when it
> starts writing to it, I still see the 90 days expiration date.
>
> I don't actually care about the limit. I have as many volumes as I want
> to commit, and just want it to purge what ever is necessary when they
> are all filled.
>
> What do I need to do?
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula RPM 9.6.5

2020-06-19 Thread Wanderlei Huttel
Hello Luca

Yes, you need to chenge the repo version.
But the version 9.6.5 is not available yet.

Best regards

*Wanderlei Hüttel*



Em sex., 19 de jun. de 2020 às 03:45, Luca De Rugeriis <
luca.deruger...@gmail.com> escreveu:

> Hi all,
> for those using the repository at bacula.org, do we need to change the
> repo configuration to point at the new version? Actually I'm using 9.6.3,
> sorry for the basic question.
>
> Thanks, Luca
>
> Il giorno mar 16 giu 2020 alle ore 14:11 Davide Franco 
> ha scritto:
>
>> Hello Cristina,
>>
>> This is something I’ll test once Bacula 9.6.5 packages will be built.
>>
>> Thanks for the heads up
>>
>> Best,
>>
>> Davide
>>
>> On Mon, 15 Jun 2020 at 14:58, Crystian Dorabiatto <
>> geovani.dorabia...@gmail.com> wrote:
>>
>>> Good morning
>>>
>>> How are you?
>>>
>>> I have a doubt.
>>>
>>> When released version 9.6.5 of repo rpm, we have uninstall plugin driver
>>> s3 for update?
>>>
>>> Or the process remove and install the new version automatically
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula packages problem in repositor Debian Buster 9.6.3

2020-05-19 Thread Wanderlei Huttel
Hello

We have a script to automate Bacula community Installation using packages,
but I guess there are some problem in the repository debian 9.6.3
https://github.com/wanderleihuttel/bacula-utils/blob/master/conf/scripts/_bacula_community_package.sh


Error during install:
-
E: The repository '
http://bacula.org/packages/XX/debs/9.6.3/buster/amd64 buster
Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
-

Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Vchanger 1.0.3 Released

2020-05-13 Thread Wanderlei Huttel
Hello Josh

A long time ago I've sent you a patch to modify vchanger to create more
standards labels
https://github.com/wanderleihuttel/vchanger/commit/256bb9bda3632265b803df3e6e19edc159c741e1


Did you committed the code?

Best regards

*Wanderlei Hüttel*



Em ter., 12 de mai. de 2020 às 18:12, Josh Fisher 
escreveu:

> Vchanger 1.0.3 was released today. This is mostly a bug fix release,
> correcting the number of slots reported by SIZE/LIST commands, a
> compilation error on FreeBSD, and failure of the launch scripts invoked
> by udev on some platforms.
>
> Also, the locking mechanism to allow multiple instances and
> automatically issuing 'update slots' and other commands to bconsole has
> been redesigned to use POSIX semaphores. Automatic mounts via udev
> scripts should now be very robust and automatically perform the needed
> bconsole 'update slots' command whenever removable disks are attached or
> detached.
>
> Bugs Fixed:
>   17 SIZE/​LIST commands return wrong number of slots
>   18 Compilation fails on FreeBSD 13 (head)
>
> Enjoy!
>
> Josh Fisher
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole history

2020-05-13 Thread Wanderlei Huttel
Hello

Did you compile with libreadline?

Sent from Xiaomi Redmi Note 7

Wanderlei Hüttel

Em qua, 13 de mai de 2020 04:27, *Sachin* H 
escreveu:

> Hello Experts,
> Hello,
>
> I used to use Bacula where in bconsole one can go back to the previous
> commands using up arrow key. And also the Autocompletion feature We use
> Bacula version of 7.4.0 running on SLES 12. But in this version such
> options are not available or not enabled yet. Any pointers will be really
> appreciated.
>
> Thanks in advance.
>
> Regards,
> Admin
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Wanderlei Huttel
Hello

You can use Verify Jobs. Take a look in the manual:
https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213


You Just need to create a VerifyJob:

Job{
  Name = "Verify_Data"
  Type = Verify
  Level = Data
  JobDefs = "DefaultJob"
  Enabled = no
}

run job=Verify_Data fileset=FileSet_Bacula client=bacula-fd jobid=9


Best regards

*Wanderlei Hüttel*



Em ter., 12 de mai. de 2020 às 04:49, *Sachin* H 
escreveu:

> Hello Experts,
>
> For Audit reasons, we have to somehow prove that the regular backups done
> on tapes are verified. Is there a verify option available? We use Bacula
> version of 7.4.0 running on SLES 12.
> Any pointers will be really appreciated.
>
> Thanks in advance.
>
> Regards,
> Admin
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup problem to new storage server

2020-04-17 Thread Wanderlei Huttel
Hello

The bacula-dir and bacula-sd daemons ALWAYS MUST BE in the same version and
only bacula-fd can be in the same version of DIR/SD or in prior versions.


Best regards

*Wanderlei Hüttel*



Em sex., 17 de abr. de 2020 às 03:28, Thing 
escreveu:

> After rebooting my systems I see,
>
> " Last Volume Bytes:  0 (0 B)
>   Non-fatal FD errors:1
>   SD Errors:  0
>   FD termination status:
>   SD termination status:
>   Termination:*** Backup Error ***
>
> 17-Apr 18:24 bacula-dir JobId 0: Fatal error: bsock.c:569 Packet
> size=1073741835 too big from "Storage daemon:192.168.1.21:9103. T
>erminating connection.
> *
> ?
>
> On Fri, 17 Apr 2020 at 18:01, Thing  wrote:
>
>>   Hi,
>>
>> I have just replaced my storage server with a 4tb external disk (Debian9)
>> with a new server (debian10.3) and plugged the 4tb disk into it and I
>> cannot get backups to work.
>>
>> In messages on the director I see,
>>
>> "IncrementalBackup10  17-Apr-20 19:05Backupdell6430-003-fd
>> Remote-0022
>> IncrementalBackup10  17-Apr-20 19:05Backupemail-001-fd
>> Remote-0022
>> IncrementalBackup10  17-Apr-20 19:05Backuprmtp-001-fd
>>  Remote-0022
>> Full   Backup11  17-Apr-20 23:10BackupCatalog
>>  Vol-0002
>> 
>>
>> Running Jobs:
>> Console connected at 17-Apr-20 17:32
>>  JobId  Type Level Files Bytes  Name  Status
>> ==
>>  12752  Back Full  0 0
>>
>> 
>>
>> Terminated Jobs:
>>  JobId  LevelFiles  Bytes   Status   FinishedName
>> 
>>  8><---
>>  12747  Full  1638.9 M  OK   16-Apr-20 23:10 BackupCatalog
>>  12748  Full  0 0   Error17-Apr-20 17:17 BackupCatalog
>>  12749  Full  0 0   Error17-Apr-20 17:20 BackupCatalog
>>  12750  Full  0 0   Error17-Apr-20 17:26 BackupCatalog
>>  12751  Full  0 0   Error17-Apr-20 17:36 BackupCatalog
>>
>> 
>> You have messages.
>> *messages
>> 17-Apr 17:37 bacula-dir JobId 12752: Start Backup JobId 12752,
>> Job=BackupCatalog.2020-04-17_17.37.21_04
>> 17-Apr 17:37 bacula-dir JobId 12752: Error: getmsg.c:185 Malformed
>> message: CatReq JobId=12752 FindMedia=1 pool_name=File media_type=File
>> vol_type=1
>>
>> I copied the bacula.sd and bacula.fd files off the old server to the new
>> server and changed the IP and server name and restarted.  I ahve edited the
>> director and restarted it also.
>>
>> the director is,
>> root@bacula:/etc/bacula# bconsole
>> Connecting to Director 192.168.1.104:9101
>> 1000 OK: 102 bacula-dir Version: 7.4.4 (20 September 2016)
>> Enter a period to cancel a command.
>>
>> the sd version is,
>>
>> *status
>> Status available for:
>>  1: Director
>>  2: Storage
>>  3: Client
>>  4: Scheduled
>>  5: All
>> Select daemon type for status (1-5): 2
>> Automatically selected Storage: File
>> Connecting to Storage daemon File at 192.168.1.21:9103
>>
>> dell6430-003-sd Version: 9.4.2 (04 February 2019) x86_64-pc-linux-gnu
>> debian buster/sid
>> Daemon started 17-Apr-20 17:36. Jobs: run=0, running=0.
>> You have messages.
>>
>> Not sure what's wrong here, incompatibility?
>>
>>
>>
>> thanks,
>>
>> Steven
>>
>> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Execute command on client

2020-04-01 Thread Wanderlei Huttel
Hello Pierre

Yes, it possible.
For run scripts in bacula there are basically 5 options:
RunBeforeJob - Run In server before backup (single line config)
RunAfterJob - Run In server after backup (single line config)
ClientRunBeforeJob - Run In client before backup  (single line config)
ClientRunAfterJob - Run In client after backup  (single line config)
RunScript -  (multiples line config)

You can take a look in the Job Resource in manual and look for "RunScript
{body-of-runscript}" parameter
https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213



Best regards

*Wanderlei Hüttel*



Em qua., 1 de abr. de 2020 às 07:19, Pierre Bernhardt <
pie...@starcumulus.owl.de> escreveu:

> Hello,
>
> is it possible to execute scripts or commands on a client to e.g. create
> snapshots before
> backup them? I did not found a description about this feature.
> I need to execute a script/command before and after a backup has to been
> produced to
> create and remove the lvm snapshot.
>
> Cheers,
> Pierre
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Estimate listing error (ERROR in smartall.c:114 Failed ASSERT: nbytes > 0)

2020-03-12 Thread Wanderlei Huttel
Hello Martin

I've applied your patch to a Linux client and it looks OK now.
Is this patch also fix Windows clients?

Best regards

*Wanderlei Hüttel*



Em qui., 12 de mar. de 2020 às 14:50, Martin Simmons 
escreveu:

> >>>>> On Wed, 11 Mar 2020 17:10:39 -0300, Wanderlei Huttel said:
> >
> > Hello
> >
> > I was trying to run a command estimate listing, and when I use the option
> > "accurate=yes" is killing the client
>
> I've just created https://bugs.bacula.org/view.php?id=2525 about this.
>
> __Martin
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Estimate listing error (ERROR in smartall.c:114 Failed ASSERT: nbytes > 0)

2020-03-11 Thread Wanderlei Huttel
Hello

I was trying to run a command estimate listing, and when I use the option
"accurate=yes" is killing the client

One log is below and all of rest in the ( https://pastebin.com/hW8nL3Hp )
because the limitation o 40Kb of sourceforge.net

===
Client Running in Debug Mode
===
In the client I run in debug mode 500
root@intranet:/etc/bacula/working# bacula-fd -d 500 > bb-fd.txt
root@intranet:/etc/bacula/working# Bacula interrupted by signal 11:
Segmentation violation
Kaboom! bacula-fd, srv_intranet-fd got signal 11 - Segmentation violation
at 11-Mar-2020 17:02:10. Attempting traceback.
Kaboom! exepath=/etc/bacula/working
Calling: /etc/bacula/working/btraceback /etc/bacula/working/bacula-fd 21157
/etc/bacula/working
The btraceback call returned 255
LockDump: /etc/bacula/working/bacula.21157.traceback

Attempt to dump current JCRs. njcrs=1
threadid=0x7f33df4d0700 JobId=0 JobStatus=R jcr=0x7f33d80008e8
name=-Console-.2020-03-11_17.01.35_02
use_count=1 killable=1
JobType=I JobLevel=I
sched_time=11-Mar-2020 17:02 start_time=11-Mar-2020 17:02
end_time=31-Dec-1969 21:00 wait_time=31-Dec-1969 21:00
db=(nil) db_batch=(nil) batch_started=0
List plugins. Hook count=1
Plugin 0x56079a35da08 name="bpipe-fd.so" disabled=0

srv_intranet-fd: job.c:342-0 Executing estimate Dir estimate listing=1
 command.
srv_intranet-fd: find.c:84-0 Enter set_find_options()
srv_intranet-fd: find.c:87-0 Leave set_find_options()
srv_intranet-fd: find.c:93-0 Enter set_find_changed_function()
srv_intranet-fd: find.c:174-0 Verify= Accurate=
BaseJob= flags=<73750>
srv_intranet-fd: find.c:178-0 F /etc/
srv_intranet-fd: find_one.c:379-0 File : /etc/
srv_intranet-fd: backup.c:1355-0 No strip for /etc/
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x38bdc5a index=3422
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26e7b50
srv_intranet-fd: accurate.c:70-0 lookup  ok
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x38bdc5a index=3422
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26e7b50
srv_intranet-fd: find_one.c:670-0 Create temp ff packet for dir: /etc/
srv_intranet-fd: find_one.c:379-0 File : /etc/mysql
srv_intranet-fd: backup.c:1355-0 No strip for /etc/mysql
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x630b17bf index=3446
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26a2648
srv_intranet-fd: accurate.c:70-0 lookup  ok
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x630b17bf index=3446
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26a2648
srv_intranet-fd: find.c:269-0 enter accept_file: fname=/etc/mysql
srv_intranet-fd: find_one.c:670-0 Create temp ff packet for dir: /etc/mysql
srv_intranet-fd: find_one.c:379-0 File : /etc/mysql/conf.d
srv_intranet-fd: backup.c:1355-0 No strip for /etc/mysql/conf.d
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x322f40ea index=2791
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26a21b8
srv_intranet-fd: accurate.c:70-0 lookup  ok
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x322f40ea index=2791
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26a21b8
srv_intranet-fd: find.c:269-0 enter accept_file: fname=/etc/mysql/conf.d
srv_intranet-fd: find_one.c:670-0 Create temp ff packet for dir:
/etc/mysql/conf.d
srv_intranet-fd: find_one.c:379-0 File : /etc/mysql/conf.d/mysql.cnf
srv_intranet-fd: backup.c:1355-0 No strip for /etc/mysql/conf.d/mysql.cnf
srv_intranet-fd: htable.c:130-0 Leave hash_index hash=0x3a9b503f index=46
srv_intranet-fd: htable.c:311-0 lookup return 7f33e26a2050
srv_intranet-fd: accurate.c:70-0 lookup  ok
srv_intranet-fd: crypto.c:598-0 crypto_digest_new jcr=7f33d80008e8
srv_intranet-fd: verify.c:292-0 === digest_file
srv_intranet-fd: bfile.c:1024-0 open file /etc/mysql/conf.d/mysql.cnf
srv_intranet-fd: bfile.c:1050-0 Open file 9
srv_intranet-fd: bfile.c:1059-0 Did posix_fadvise WILLNEED on
/etc/mysql/conf.d/mysql.cnf fid=9 stat=0
srv_intranet-fd: ERROR in smartall.c:114 Failed ASSERT: nbytes > 0
srv_intranet-fd: smartall.c:114-0 Failed ASSERT: nbytes > 0
srv_intranet-fd: signal.c:201-0 Working=/etc/bacula/working
srv_intranet-fd: signal.c:202-0 btpath=/etc/bacula/working/btraceback
srv_intranet-fd: signal.c:203-0 exepath=/etc/bacula/working/bacula-fd
srv_intranet-fd: signal.c:232-0 Doing waitpid
execv: /etc/bacula/working/btraceback failed: ERR=No such file or directory
srv_intranet-fd: signal.c:234-0 Done waitpid
srv_intranet-fd: lockmgr.c:1221-0 lockmgr disabled
srv_intranet-fd: smartall.c:411-2863311530 Orphaned buffer: srv_intranet-fd
536 bytes at 56079a3630f8 from jcr.c:386
srv_intranet-fd: smartall.c:411-2863311530 Orphaned buffer: srv_intranet-fd
280 bytes at 56079a35d8b8 from jcr.c:390
srv_intranet-fd: smartall.c:411-2863311530 Orphaned buffer: srv_intranet-fd
280 bytes at 56079a35fda8 from jcr.c:384
srv_intranet-fd: 

[Bacula-users] Doubt about Bacula Storage/Autochanger

2020-03-06 Thread Wanderlei Huttel
Hello

In the newer Bacula versions, in the bacula-dir.conf, was replaced
"Storage" resources for "Autochanger" resources.

I was using "Storage" resources instead "Autochanger" resource since the
beginning of my touch with Bacula.

Today I've tried to modify and change Storage for Autochanger and did, but
I noticed and error when I run a " status slots storage="StorageLocal1"
---
*status slots storage="StorageLocal1"
Connecting to Storage daemon StorageLocal1 at 192.168.1.1:9103 ...
3306 Issuing autochanger "slots" command.
*3996 Open bpipe failed.*
Device "StorageLocal1" has 0 slots.
No slots in changer to scan.

bacula-dir.conf (autochanger resource)
Autochanger {
  Name = "StorageLocal1" # DIR Autochanger Name
  Address = 192.168.0.1
  SDPort = 9103
  Password = "XXX"
  Device = "StorageLocal1"   # SD Autochanger Name
  Media Type = File  # SD Media type Device
  Maximum Concurrent Jobs = 50
  Heartbeat Interval = 300 seconds
  Autochanger = "StorageLocal1"  # point to ourself
}

bacula-sd.conf (autochanger and device resource)
Autochanger {
  Name = "StorageLocal1"  # SD Autochanger Name
  Device = "DiscoLocal1"  # SD Device NAme
  Changer Command = ""
  Changer Device = /dev/null
}

Device {
  Name = "DiscoLocal1"# SD Device Name
  Media Type = File
  Device Type = File
  Archive Device = "/backup/disco01"
  LabelMedia = yes
  Random Access = Yes
  AlwaysOpen = yes
  Maximum Concurrent Jobs = 50
}
---

Is this error OK, or is necessary to do some more configurations?


Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Windows Client Problem

2020-02-27 Thread Wanderlei Huttel
Hello

I don't know if more people have the same error, but I noticed that when I
try to update the Windows clients, I always receive this error message
about no access for the plugin alldrives-fd.dll.
I'm running Windows 10 (updated) and I'm a local administrator of machine
and I'm trying to install as Administrator and even this way the error
message appears.

For update Windows Cliente I need stop installation, delete this file and
start installation again.

Could it be a bug or something?

[image: bacula_client.jpg]


Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum installation issue.

2020-02-26 Thread Wanderlei Huttel
Hello Erick

If you want I have a script to install from sources.
https://github.com/wanderleihuttel/bacula-utils/blob/master/tutorial/_baculum_install_centos7.sh



Just modify as you need.

Best regards

*Wanderlei Hüttel*



Em qua., 26 de fev. de 2020 às 09:40, Erik P. Olsen 
escreveu:

> Yes, the link works but not the one in step 1.
>
> However I've disregarded step 1. and went on to step 2 to do the remaining
> installation
> for fedora 31 but the chown and chmod commands fail because /opt/bacula
> does not exist.
>
> I think it's better not to try to install baculum.
>
> But I do appreciate your effort.
>
> --
> Erik P. Olsen - Copenhagen, Denmark
> Fedora 31/64 bit Linux xfce Claws-Mail POP3 Gramps 5.1.2 Bacula 9.4.4
>
> On 2020-02-26 at 09:20:17 Heitor Faria wrote:
>
> > Hello Erik,
> >
> > The link works.
> > You can also find this page through the site Community menu.
> >
> > Regards,
>
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Failed to compile Bacula 9.6.0 and problem with documentation encoding

2020-02-24 Thread Wanderlei Huttel
Hello

I saw today, that Bacula 9.6.0 was released!

I've tried to to compile, bu I've receiving an error message in console.c.
=
Compiling console.c
/usr/src/bacula/bacula/libtool --silent --tag=CXX --mode=link /usr/bin/g++
 -L/usr/include/readline -L../lib -L../cats -o bbconsjson bbconsjson.o
console_conf.o \
   -lreadline -lhistory  -lbaccfg -lbac -lm -lpthread -ldl -ldl   \
  -lssl -lcrypto
In file included from ../bacula.h:165:0,
 from console.c:27:
console.c: In function ‘int console_update_history(const char*)’:
console.c:948:21: error: ‘histfile_size’ was not declared in this scope
int nlines = MAX(histfile_size - history_lines_added, 0);
 ^
../bc_types.h:246:21: note: in definition of macro ‘MAX’
 #define MAX(a, b) ((a) > (b) ? (a) : (b))
 ^
Makefile:144: recipe for target 'console.o' failed
make[1]: *** [console.o] Error 1
make[1]: Leaving directory '/usr/src/bacula/bacula/src/console'


  == Error in /usr/src/bacula/bacula/src/console ==
  =


Another problem is about the encoding of the manual . It looks like that
the wrong encoding starts to happen in all 9.X version!


   - New Features in 9.0.0
   
  - New Bconsole “list†Command Behavior
  

  - Accurate Option for Verify “Volume Data†Job
  

  - FileDaemon Saved Messages Resource Destination
  

  - Minor Enhancements
  

 - New Bconsole ".estimate" Command
 

 - Traceback and Lockdump
 

  - Bconsole “list jobs†command options
  

  - Minor Enhancements
  

 - New Bconsole "Tee All" Command
 

  - Bconsole “list jobs†command options
  



Best regards

*Wanderlei Hüttel*
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] /usr/libexec/bacula/update_mysql_tables

2020-01-10 Thread Wanderlei Huttel
Hello Erwan

First of all, MariaDB is not very recommended for using with Bacula, but
you can use for you own risk.


This error is it looks is caused by SQL_MODE, that I guess is very similar
of MySQL errors. Take a look in the link below:
https://github.com/wanderleihuttel/bacula-utils/blob/master/dicas/mysql_sql-mode.md


Best regards

*Wanderlei Hüttel*



Em sex., 10 de jan. de 2020 às 07:46, Erwan RIGOLLOT 
escreveu:

> Hi all,
>
> Happy to new year!
>
> So, I have trie with Mariadb Server version: 10.2.29-MariaDB-log.
> I have restore bacula database before all my update and run
> update_mysql_tables with success.
>
> But, when I start a backup I get this message again :
> Fatal error: sql_create.c:84 Create DB Job record INSERT INTO Job
> (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) VALUES
> ('Backup-obiwan.2020-01-10_10.34.15_03','Backup-obiwan','B','I','C','2020-01-10
> 10:34:14',1578648854,1,'') failed. ERR=Field 'StartTime' doesn't have a
> default value
>
> I don't understand. If mysql cause that, why with Mariadb is the same ?
>
> And in the script update_mysql_table, I see it:
> ALTER TABLE JobALTER COLUMN StartTimeDROP DEFAULT;
>
> Regards,
>
> Erwan
>
> -Message d'origine-
> De : William Muriithi 
> Envoyé : lundi 23 décembre 2019 15:58
> À : Erwan RIGOLLOT ; bacula-users@lists.sourceforge.net
> Objet : Re: /usr/libexec/bacula/update_mysql_tables
>
> Hi Erwan,
>
> Honestly, your problem has nothing to do with bacula, its purely database
> related.
>
> First, if you insist on using mysql 8, you can't use the version you are
> using.  You need at least Bacula Release 9.4.3.  This is because you will
> need this bug fix.
>
> Change mysql my_bool to bool as it was removed from mysql  - Done on May
> 2019
>
>
> Second, the error bacula reported during insert "ERR=Field 'StartTime'
> doesn't have a default value" is because, previously mysql used to allow
> null dates.  Current sql_mode don't allow that any more.  Google on
> sql_mode and dates and you should get an idea on what to do that suites
> Gentoo.
>
> In short, your pains are all caused by mysql and require just mysql skills
> to resolve.
>
> Regards,
> William
>
> 
> From: Erwan RIGOLLOT 
> Sent: December 23, 2019 9:41 AM
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] /usr/libexec/bacula/update_mysql_tables
>
> Hi all,
>
> Anyone can help me ?
>
> Thanks
>
> Erwan
>
> -Message d'origine-
> De : Erwan RIGOLLOT 
> Envoyé : jeudi 28 novembre 2019 16:18
> À : bacula-users@lists.sourceforge.net
> Objet : Re: [Bacula-users] /usr/libexec/bacula/update_mysql_tables
>
> Hi William and all,
>
> I have a catalog backup before update.
> So I have try this "sql_mode = NO_ENGINE_SUBSTITUTION" because I would
> like to keep version of my distribution (gentoo).
> (But if i have to do different, i will do).
>
> The script /usr/libexec/bacula/update_mysql_tables run good:
> This script will update a Bacula MySQL database from version 12-15 to 16
>
> Depending on the current version of your catalog, you may have to run this
> script multiple times.
>
> Enter password:
> Enter password:
> Update of Bacula MySQL tables 15 to 16 succeeded.
> Enter password:
>
> So I try to do backup, and doesn't work :
> 28-nov. 16:13 obiwan-dir JobId 0: Fatal error: sql_create.c:84 Create DB
> Job record INSERT INTO Job
> (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) VALUES
> ('Backup-tardis.2019-11-28_16.13.50_03','Backup-tardis','B','I','C','2019-11-28
> 16:13:48',1574954028,5,'') failed. ERR=Field 'StartTime' doesn't have a
> default value
>
> I don't understand because the script update_mysql_tables remove default
> value ?!?
>
> Can you help me ?
>
> Thanks and have a good day !
>
>
>
> -Message d'origine-
> De : William Muriithi  Envoyé : vendredi 22
> novembre 2019 16:41 À : Erwan RIGOLLOT ;
> bacula-users@lists.sourceforge.net
> Objet : Re: /usr/libexec/bacula/update_mysql_tables
>
>
> Hi Erwan,
>
> Hope you had made a catalog backup before schema upgrade.
>
> You can't use bacula 9.0 with mysql 8.   mysql made some change that were
> only fixed in a later bacula version, think bacula 9.2.
>
> So if you have to use mysql 8, please use the latest bacula binaries.
> Alternatively, use Mariadb, which would be my advice as it don't change
> your plans at all.
>
> Also, change the sql mode to match that of earlier versions.  Something
> like this "sql_mode = NO_ENGINE_SUBSTITUTION"
>
> Anyway, all this depends on whether you have a backup.
>
> Regard,
> William
>
>
>
>
>
>
> From: Erwan RIGOLLOT 
>
> Sent: November 22, 2019 9:50 AM
>
> To: bacula-users@lists.sourceforge.net  >
>
> Subject: [Bacula-users] /usr/libexec/bacula/update_mysql_tables
>
>
>
>
> Hello,
>
> I have try to update bacula database after update Mysql (8.0.17) and
> bacula ( 9.0.8-r1).
>
> I have get this result and backup don't work  :
>
>
> This script will 

Re: [Bacula-users] lstat / MySQL

2019-12-03 Thread Wanderlei Huttel
Hello Helmut

Yes, it's possible!
Take a look in the function  "base64_decode_lstat" in my github:
You need to use this way:
SELECT base64_decode_lstat(8,LStat) FROM File WHERE JobId=XXX;
https://github.com/wanderleihuttel/webacula/blob/master/install/MySql/update_tables_7.5.2_to_7.5.3.sh



Atenciosamente

*Wanderlei Hüttel*



Em ter., 3 de dez. de 2019 às 14:22, Helmut Ritter 
escreveu:

> Hi,
>
> is there a way to decode the lstat field within MySQL? I found solutions
> with PHP, perl, postgres but not with MySQL.
>
> I want to see the file size in a query, e.g. in the default #12:
>
> # 12
> :List Files for a selected JobId
> *Enter JobId:
> SELECT Path.Path,Filename.Name FROM File,Filename,Path WHERE File.JobId=%1
>   AND Filename.FilenameId=File.FilenameId
>   AND Path.PathId=File.PathId ORDER BY
>   Path.Path,Filename.Name;
>
> Thank you!
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File daemom on Windows 10.

2019-11-26 Thread Wanderlei Huttel
Hello Cristian

Yes, Bacula Windows fd is supported in Windows 10.

You can get from the link below:
https://www.bacula.org/binary-download-center/


Best Regards

*Wanderlei Hüttel*



Em ter., 26 de nov. de 2019 às 10:08, Cristian Zoicas <
zoi...@medialab.sissa.it> escreveu:

> Hello all.
>
> I am new to Bacula. I am trying to implement a backup solution in
> a heterogenous environment (Linux / Windows) and I would like to
> know if Windows 10 is supported by Bacula.
>
> I know that the only component that runs on Windows is the File daemon
> so I do not need details about the other components. Unfortunately I was
> not able to find in the documentation if Windows 10 is supported or not.
>
> Thank you.
>
> Cristian Zoicas.
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-FD - RedHat

2019-08-16 Thread Wanderlei Huttel
Hello Maurizio

You can compile from source:
https://sourceforge.net/projects/bacula/files/bacula/

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 16 de ago de 2019 às 13:41, Maurizio Caloro 
escreveu:

> Hello Together
>
>
>
> Please i have here meny differnt older linux Server’s and the Backup
> Bacula Server are running Version 5.2.5.
>
> I know this are outdated. But i need to install Bacula-fd to this new Red
> Hat Enterprise Linux Server release 7.7 (Maipo)
>
>
>
> Please can are possible you can give me the possibilities so that i
> install the FD Deamon to communication with Bacula 5.2.5 ?
>
>
>
> On me envirement i have older Linux Version that dont support any newer
> Bacula-FD Version.
>
>
>
> Thanks and best regards
>
> M
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Binary Packages Register Problem

2019-07-12 Thread Wanderlei Huttel
Hello Kern

Many people in Brazil are complaining that the email with the key does not
arrive in the email box, not even in SPAM.
https://www.bacula.org/bacula-binary-package-download/

Please, try to confirm if everything is OK.


Best Regards

*Wanderlei Hüttel*
http://www.bacula.com.br
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Baculum error config MaximumBandwidth

2019-06-19 Thread Wanderlei Huttel
Hello Marcin

Is this a bug? (About MaximumBandwidth)


Error 94: Config validation error.Array( [output] => JSON tool returned
wrong exitcode. Output:bacula-dir: ERROR TERMINATION at parse_conf.c:805
Config error: expected a speed, got: 1000 : line 77, col 31 of file
/etc/bacula/config_AWih9F Maximumbandwidth = "1000" 19-Jun 10:02
bacula-dir: ERROR TERMINATION at parse_conf:805 Config error: expected a
speed, got 1000 : line 77, col 31 of file /etc/bacula/config_AWih9F
Maximumbandwidth = "1000" [exitcode] => 82)

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to upgrade Bacula 5.2.13 to 7.2

2019-05-30 Thread Wanderlei Huttel
Hello Preash

Have you install Bacula compiling source code or using packages?

I have some tips to upgrade bacula by compilation of source code. It works
to install using packages also.
You need to do in mind that the basically, Bacula have conf files and a
catalog (database), and volumes.
If you have these 3 pillars, you can restore any Bacula environment.

=
Tips on how to upgrade Bacula
- Stop all bacula daemons and make sure none are running, if necessary
execute the command (pkill -9 bacula)
- Perform a backup of the Bacula database (run the standard Bacula backup
script, usually "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog".
  Copy the file generated by the script to a secure location.
- Make a backup of the Bacula configuration folder (*.conf), usually
/etc/bacula or /opt/bacula (make sure do the backup of correct directory)
- If your bacula was installed using packages, it is interesting to remove
all packages related to Bacula. Use the command: "apt-get remove
package_name or yum remove package_name"
  If the bacula was installed using compilation, it is interesting to use
the same options used in the "./configure"
- Download the source code, and proceed as if it were a new installation
- Copy the configuration files (* .conf) from the backup to /etc/bacula or
/opt/bacula
- Verify that the paths that were informed in the build are the same as the
previous configuration, otherwise, you need to edit the configuration files
and change these paths.
- Run the script to update the Bacula database (usually
update_bacula_tables or update_mysql_tables or update_postgresql_tables)
- Run the daemons test commands and make sure they have no configuration
errors. bacula-dir -t, bacula-sd -t and bacula-fd-t
- Start the bacula and run bconsole
- And if all went well, congratulations, your bacula was updated
successfully!
- In case of errors you must run Bacula in debug mode and check for
possible errors. Sometimes it's interesting to run a pkill -9 to stop all
bacula daemons, and start each separate daemon with the debug option (-d
500). bacula-dir-d 500, bacula-sd-d 500, bacula-fd-d 500
=

There is a script to install Bacula by packages from Bacula repositories
(But this script was tested for fresh installations, I don't know the
behavior in installations already existent)
http://www.bacula.lat/community/bacula-community-9-x-official-packages-installation-script/?lang=en


Or you can compile using this link:
http://www.bacula.lat/community/community-bacula-9-0-8-compilation-and-installation-commands/?lang=en


I suggest also you upgrade to the latests Bacula version (9.4.4) (only
compilation for a while or 9.4.3 by packages)
https://www.bacula.org/source-download-center/

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 30 de mai de 2019 às 03:23, preash raj 
escreveu:

> Hello Guys,
>
> How do I upgrade Bacula 5.2.13 to 7.2 with Snapshot Management feature?
>
> =
> Bacula: 5.2.13
> OS : CentOS Linux release 7.6.1810 (Core)
> Database : mysql  Ver 15.1 Distrib 5.5.60-MariaDB
> =
>
> Please provide me with a step by step instruction for the upgrade, I
> couldn’t find a proper documentation for the bacula upgrade.
>
> Hope you guys will help :)
>
> Regards,
> Preash
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Debugging a backup job

2019-05-29 Thread Wanderlei Huttel
Hello

Include heartbeat interval in the configs:
https://github.com/wanderleihuttel/bacula-utils/blob/master/dicas/heartbeat_interval.md


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 29 de mai de 2019 às 13:18, David Brodbeck 
escreveu:

> Since you're backing up *some* data, this doesn't seem like a firewall
> issue.
>
> I would check the client's syslog, first. See if the fd is crashing, or if
> you're getting I/O errors that are stalling the transfer. Sometimes a bad
> disk will only show up during backups, if the bad sectors are in an area
> that's rarely accessed.
>
> Since this is a server, power management is probably not an issue, but
> this *is* what I'd expect to see if a client went into sleep mode during a
> backup. Happens a lot with desktop systems.
>
>
> On Wed, May 29, 2019 at 8:11 AM Gestió Servidors 
> wrote:
>
>> Hello,
>>
>> a backup job from a server is failing continuosly. From bacula console, I
>> have reconfigured debug with "setdebug level=99 trace=1 client=my_server"
>> but job is not returning more info... so I don't know why is failing. I
>> have rerun four times and, always, after writing 80 GB, job fails with
>> message:
>>
>> 2019-05-29 11:16:20baculaserver JobId 44381: Fatal error: Network error with 
>> FD during Backup: ERR=Connection timed out
>> 2019-05-29 11:16:20baculaserver JobId 44381: Error: bsock.c:577 Read error 
>> from client:my_server_IP_address:9103: ERR=No data available
>> 2019-05-29 11:16:20baculaserver JobId 44381: Elapsed time=02:11:15, Transfer 
>> rate=11.06 M Bytes/second
>> 2019-05-29 11:16:20baculaserver JobId 44381: Fatal error: No Job status 
>> returned from FD.
>>
>> I have not set any limit in configuration as "Maximum Volume Bytes"... so
>> I don't understand anything.
>>
>> I would like to know how debug this job.
>>
>> Could anyone help me?
>>
>> Thanks.
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>
> --
> David Brodbeck
> System Administrator, Department of Mathematics
> University of California, Santa Barbara
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Community Binaries 9.4.3 ??

2019-05-27 Thread Wanderlei Huttel
Hello Davide

Why the paths for the packages are so strange?

This is the path address for see the Debian packages:
https://www.bacula.org/packages/X/debs/9.4.3/stretch/amd64/dists/stretch/main/binary-amd64/
I guess this part of path is in "duplicity"
"dists/stretch/main/binary-amd64/"

It's totally different from what's in the manual:
https://blog.bacula.org/whitepapers/CommunityInstallationGuide.pdf

The CentOS path address it looks normal:
https://www.bacula.org/packages/X/rpms/9.4.3/el7/x86_64/

Can you take a look?

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em seg, 27 de mai de 2019 às 13:08, Davide Franco 
escreveu:

> Hello Olivier,
>
> Bacula 9.4.3 packages are now available for Debian and Ubuntu, RedHat /
> Centos version 6 and 7.
> More platform like Fedora and OpenSuse will come soon.
>
> Sorry for the delay
>
> Best regards
>
> Davide
>
> On Fri, May 24, 2019 at 9:02 AM Olivier Delestre <
> olivier.deles...@univ-rouen.fr> wrote:
>
>> Hi,
>>
>> No news for the binaries of 9.4.3 (  bug fix release ) on
>> https://bacula.org/packages/x ?
>>
>> Today, I use the rpms for CentOs with the bacula 9.4.2
>>
>> Bye.
>>
>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Verify job succeeds, but restore fails with checksum error?

2019-05-08 Thread Wanderlei Huttel
Hello Mike

Try to upgrade your very old bacula client to a new one (at least as the
same version of bacula-dir)


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 8 de mai de 2019 às 13:31, Mike Benoit 
escreveu:

> We have some jobs that backup SQL databases, so immediately after the
> backup is complete we have a "AfterJob" that restores it to a test system,
> then we run a DiskToCatalog verify job. However the restore fails with a
> Block checksum mismatch and immediately after the verify job succeeds.
>
> The backup job seems to succeed without any errors:
> 
> 07-May 21:05 server-dir JobId 206335: Start Backup JobId 206335,
> Job=test.domain.com-sql.2019-05-07_21.05.01_27
> 07-May 21:05 server-dir JobId 206335: Using Device "FileStorage" to write.
> 07-May 21:05 test.domain.com-fd JobId 206335: shell command: run
> ClientRunBeforeJob "scripts/postgresql_dump.sh"
> 07-May 21:15 server-sd JobId 206335: Elapsed time=00:04:22, Transfer
> rate=13.49 M Bytes/second
> 07-May 21:15 server-sd JobId 206335: Sending spooled attrs to the
> Director. Despooling 4,073 bytes ...
> 07-May 21:15 server-dir JobId 206335: Bacula server-dir 9.0.6 (20Nov17):
>   Build OS:   x86_64-pc-linux-gnu ubuntu 18.04
>   JobId:  206335
>   Job:test.domain.com-sql.2019-05-07_21.05.01_27
>   Backup Level:   Incremental, since=2019-05-06 21:11:28
>   Client: "test.domain.com-fd" 5.2.6 (21Feb12)
> x86_64-pc-linux-gnu,debian,jessie/sid
>   FileSet:"test-sql" 2017-08-30 21:05:00
>   Pool:   "File" (From Job resource)
>   Catalog:"MyCatalog" (From Client resource)
>   Storage:"File" (From Pool resource)
>   Scheduled time: 07-May-2019 21:05:01
>   Start time: 07-May-2019 21:11:00
>   End time:   07-May-2019 21:15:24
>   Elapsed time:   4 mins 24 secs
>   Priority:   500
>   FD Files Written:   15
>   SD Files Written:   15
>   FD Bytes Written:   3,535,794,319 (3.535 GB)
>   SD Bytes Written:   3,535,796,681 (3.535 GB)
>   Rate:   13393.2 KB/s
>   Software Compression:   None
>   Comm Line Compression:  None
>   Snapshot/VSS:   no
>   Encryption: no
>   Accurate:   no
>   Volume name(s): Vol0043
>   Volume Session Id:  4
>   Volume Session Time:1557261339
>   Last Volume Bytes:  26,223,400,919 (26.22 GB)
>   Non-fatal FD errors:0
>   SD Errors:  0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:Backup OK
>
> 07-May 21:15 server-dir JobId 206335: Begin pruning Jobs older than 2
> months .
> 07-May 21:15 server-dir JobId 206335: No Jobs found to prune.
> 07-May 21:15 server-dir JobId 206335: Begin pruning Files.
> 07-May 21:15 server-dir JobId 206335: No Files found to prune.
> 07-May 21:15 server-dir JobId 206335: End auto prune.
>
> 07-May 21:15 server-dir JobId 206335: shell command: run AfterJob
> "scripts/restore_by_jobid test.domain.com-fd 206335"
> 
>
>
> The restore job soon after fails with this log:
> 
> 08-May 00:13 server-dir JobId 206424: Start Restore Job
> TestRestoreProductionSQL.2019-05-07_21.15.24_57
> 08-May 00:13 server-dir JobId 206424: Using Device "FileStorage" to read.
> 08-May 00:13 server-sd JobId 206424: Ready to read from volume "Vol0043"
> on File device "FileStorage" (/home/backup).
> 08-May 00:13 server-sd JobId 206424: Forward spacing Volume "Vol0043" to
> addr=22681860551
> 08-May 00:13 server-sd JobId 206424: Error: block_util.c:470 Volume data
> error at 0:0!
> * Block checksum mismatch *in block=1723 len=64512: calc=24873f8f
> blk=2deb5777
> 08-May 00:13 server-sd JobId 206424: Elapsed time=00:00:01, Transfer
> rate=111.0 M Bytes/second
> 08-May 00:13 server-sd JobId 206424: Fatal error: fd_cmds.c:223 Command
> error with FD msg="rechdr 4 1557261339 2 2 65536", SD hanging up.
> 08-May 00:13 test.domain.com-fd JobId 206424: Error: attribs.c:558 File
> size of restored file
> /var/lib/postgresql/tmp/test-db_postgresql_dump.sql.tar.gz not correct.
> Original 464348732, restored 111017984.
> 08-May 00:13 server-dir JobId 206424: Error: Bacula server-dir 9.0.6
> (20Nov17):
> 08-May 00:13 server-dir JobId 206424: Error: Bacula server-dir 9.0.6
> (20Nov17):
>   Build OS:   x86_64-pc-linux-gnu ubuntu 18.04
>   JobId:  206424
>   Job:TestRestoreProductionSQL.2019-05-07_21.15.24_57
>   Restore Client: test.domain.com-fd
>   Start time: 08-May-2019 00:13:33
>   End time:   08-May-2019 00:13:35
>   Files Expected: 15
>   Files Restored: 2
>   Bytes Restored: 111,018,596
>   Rate:   55509.3 KB/s
>   FD Errors:  1
>   FD termination status: 

Re: [Bacula-users] Bacula questions

2019-05-03 Thread Wanderlei Huttel
Hello Marcin

About file relocation
Do you know how bacula works with Windows clients?
I know if I restore in Windows clients, the the drive
"C:\somefolder\someanotherfolder" become "c/somefolder/someanotherfolder".


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 3 de mai de 2019 às 09:52, Marcin Haba 
escreveu:

> Hello Frédéric,
>
> To restore files without source paths you can use restore file
> relocation directives (Strip Prefix, Add Prefix or RegexWhere). They
> are also supported by Baculum in restore wizard.
>
> For example, for restoring files from path:
>
> /usr/local/bacula/working/
>
> to /tmp/test/ directory you can use Add Prefix and Add Suffix
> directives in the following way:
>
> Strip Prefix = "/usr/local/bacula/working/"
> Add Prefix = "/tmp/test/"
>
> or alternatively you can define regular expression in RegexWhere directive:
>
> RegexWhere = "!/usr/local/bacula/working/!/tmp/test/!"
>
> (with regular expression you can do even more than in this simple sample.)
>
> Here on screen shots you can see the same in the Baculum restore wizard:
>
> https://ibb.co/CzD8zNS
> https://ibb.co/tCrS2n8
>
> I hope it helps.
>
> Best regards.
> Marcin Haba (gani)
>
> On Fri, 3 May 2019 at 13:42, Frédéric F.  wrote:
> >
> > Hello,
> >
> > I have some questions about Bacula :
> >
> > How can I schedule jobs even/odd weeks  (1 week out of 2) ?
> >
> > I have backup Jobs in pool files with a Volume Retention = 17 days
> > Day one, I Migrate these backup jobs to a LTO-6 Pool.
> > Then, when I restore some files, I need these cartdriges to restore,
> normal it’s a migrate job.
> > Is there a way to restore from the file pool rather than use cartdrige
> before the volume retention expiration (before 17 days) whitout using copy
> jobs ?
> >
> >  I use the Baculum GUI to restore files with this admin job :
> >
> > Job {
> >   Name = "ADM-RestoreAdmin"
> >   Type = Restore
> >   Client=
> >   Storage = File1
> >   FileSet="##"
> > MaxRunSchedTime = 8 hour
> >   Pool = File
> >   Messages = Standard
> >   Where = /tmp/bacula-restores
> > }
> >
> > When I want to restore a file to a folder (ex: /tmp/test) I have :
> /tmp/test + source patch directory + files
> > Is it possible to restore without this source path in order to have
> files directly in /tmp/test ?
> >
> > I didn’t see any restore option in this way.
> >
> >
> > Last question… How to except thumbs.db in my Windows Fileset ?
> >
> > FileSet {
> >   Name = "F W_CHR"
> >   Include {
> >  Options {
> >   signature = MD5
> >   IgnoreCase = Yes
> > }
> >   File = "D:/Apache"
> >   }
> >
> >
> >
> > Best regards
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> --
> "Greater love hath no man than this, that a man lay down his life for
> his friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
> za przyjaciół swoich." Jezus Chrystus
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula Community Release 9.4.3

2019-05-03 Thread Wanderlei Huttel
Hello Kern

I guess it was forgotten to include the release tag 9.4.3 in the git
repository.

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 3 de mai de 2019 às 08:12, Kern Sibbald  escreveu:

> Hello,
>
> We are pleased to announce Bacula Community Release version 9.4.3.  It
> has been released to Source Forge and www.bacula.org.  The binary package
> will be build shortly and released as usual to the Binary Package Download
> area of www.bacula.org.
>
> This is a bug fix release for version 9.4.2.  It includes a number of bug
> fixes and patches.
>
> Baculum: there have been significant additions and changes to Baculum.
> If you want a web gui please check it out.
>
> S3 driver: If you are trying to build the S3 drivers, please remember to
> use the
> community supplied (from Bacula Enterprise) version of libs3.so found at:
>
> https://www.bacula.org/downloads/libs3-20181010.tar.gz
>
> As usual the binaries that correspond to this release will follow in
> a week or two.
>
> If there are no additional major bugs, this will be the last of the 9.4.x
> releases.  The next release will have a number of new features, and will
> require a major database upgrade (don't worry it will be easy -- just
> run update_bacula_tables)
>
> 02May19
>  - Fix Window bpipe-fd strncpy programming error
>  - Change mysql my_bool to bool as it was removed from mysql
>  - Improve assert message
>  - examples: move backup-to-cdwriter.txt to move-backup-to-usb.txt
>  - fix memory leak in DIR for copy-job
>  - Skip empty lines when generating the FileSet from a command
>  - Fix creation of bad JobMedia records in Incomplete Job
>  - Add messages for Incomplete Jobs
>  - Fix misplaced cancel check reported by Alain
>  - Change round() to bround() to avoid library definition conflict
>  - rpms: Fix bacula-cloud spec file
>  - rpms: Add bacula-cloud spec file
>  - rpms: Add missing isworm script
>  - Use more appropriate computation for VolIndex when creating restore .bsr
>  - Fix Daemon message "Message repeated X times" count
>  - Fix Carsten's names
>  - Make diff.pl adapt to different install locations
>  - Fix #4598 Display JobIds used in the restore job log
>  - Add smartalloc function to print the owner of a buffer
>  - Avoid to use the same variable name for two different things in the
> cmd_parser
>class
>  - Fix #4433 about 'UPDATE File SET MD5='...' WHERE FileId=0' error when
> using
>SpoolAttributes=no
>  - Fix MaxVolumeBytes accounting after a mount request
>  - Fix verify volume jobs with sparse files
>  - Fix small memory leak with Console runscripts
>  - Add 'prune jobs/files all' command
>  - fix #4383 Sometime SD hangs when TLS and DEDUP are used together
>
>  - baculum: Add status schedule page
>  - baculum: Add status schedule API endpoint
>  - baculum: Fix schedule directives setting
>  - baculum: Update Portuguese translation file
>  - baculum: Fix #2466 add plugin directive support in fileset resource
>  - baculum: Fix updating whole Bacula config at once
>  - baculum: Fix showing validation error if new config is incorrect
>  - baculum: Fix setting multiple config resources at once
>  - baculum: Fix renaming resources
>  - baculum: Add links to resources in job log output
>  - baculum: Update example web server config files and spec file
>  - baculum: Fix list type directives on configure hosts page
>  - baculum: Fix showing messages resource configuration
>  - baculum: Add parent node property to directive list types
>  - baculum: Add capability to define multiple drivetype and fstype
> directives in
>fileset resource
>  - baculum: Fix showing runscript subresource on job pages
>  - baculum: Update new texts in Portuguese translation file
>  - baculum: Add missing texts to translation files reported by Wanderlei
> Huttel
>  - baculum: Update Portuguese translations
>  - baculum: Fix showing schedule resource configuration on job view and job
>history view pages
>  - baculum: Fix returning one line output from bconsole
>  - baculum: Fix restore wizard error when no fileset available for
> normal user
>with limited access
>  - baculum: Add capability to use many ACL Console directives in one config
>resource
>  - baculum: Add client ls command to openapi file
>  - baculum: Add text box list control to support directives that can be
> defined
>multiple times in one resource
>  - baculum: Add cancel button to last step new job wizard
>  - baculum: Change PoolType field from text box into combo box
>  - baculum: Fix adding new schedule run directives
>  - baculum: Add support to multiple schedule run directives
>  - baculum: Fix in API part saving job runscript conf

Re: [Bacula-users] Query for "most recent copies of a file"

2019-04-12 Thread Wanderlei Huttel
Hello Christoph

Or maybe your File Retention is to small and Bacula are deleting from
catalog.


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 12 de abr de 2019 às 11:27, Martin Simmons 
escreveu:

> Thq query output looks suspicious to me -- do you expect the file to be
> stored
> 5 times in the same job?
>
> It might be interesting to see the output from "list jobmedia
> jobid=1100162" and
> query 7 (List Volumes used by selected JobId) for 1100162.
>
> If you are using mysql, then I suggest running mysqlcheck abd myisamchk if
> appropriate.
>
> Also, I assume you mean "list files jobid=1100162" (not job=1100162).
>
> __Martin
>
>
>
> > On Fri, 12 Apr 2019 11:02:52 +0200, Christoph Litauer said:
> >
> > Dear bacula users,
> >
> > I am using bacula 9.0.4. I wonder about a strange effect:
> >
> > Sometimes I get restore requests without a concrete timestamp. The users
> can't remember the time of removal. In these cases I use the bconsole query
> command, option 2 "List where the most recent copies of a file are saved".
> Example:
> >
> > Choose a query (1-20): 2
> > /var/spool/imap/d/user/someuser/Transkriptionen/
> > Enter filename: cyrus.index
> > Enter Client name: imap1
> > +---+-+++
> > | jobid | jobstarttime| volumename | clientname |
> > +---+-+++
> > | 1,100,162 | 2019-03-27 00:07:01 | File-1107  | imap1  |
> > | 1,100,162 | 2019-03-27 00:07:01 | File-1157  | imap1  |
> > | 1,100,162 | 2019-03-27 00:07:01 | File-1500  | imap1  |
> > | 1,100,162 | 2019-03-27 00:07:01 | File-1828  | imap1  |
> > | 1,100,162 | 2019-03-27 00:07:01 | File-1995  | imap1  |
> > +---+-+++
> >
> > Then I try to find the file with "list files job=1100162", but no luck.
> I am not able to restore the file in the queried job.
> >
> > Is my index corrupt? But we never had problems restoring files (with
> concrete timestamps). Or is the query weird?
> >
> > --
> > Kind regards
> > Christoph
> > _
> > Uni Koblenz, Computing Centre, Office A 022
> > Postfach 201602, 56016 Koblenz
> > Fon: +49 261 287-1311, Fax: -100 1311
> >
> >
> >
> >
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] rclone / Autochanger / BackBlaze

2019-04-12 Thread Wanderlei Huttel
Hello Sruckh

Try to use the rclone from this repository
https://github.com/wanderleihuttel/rclone-changer

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 12 de abr de 2019 às 16:01, Heitor Faria 
escreveu:

> Hello,
>
> Thanks for the feedback.
> I will warn the rclone-changer current script maintainer.
>
> Regards,
>
> - Original Message -
> > From: "bacula-users" 
> > To: "Martin Simmons" 
> > Cc: "bacula-users" 
> > Sent: Friday, April 12, 2019 3:11:38 PM
> > Subject: Re: [Bacula-users] rclone / Autochanger / BackBlaze
>
> > On 2019-04-12 05:45, Martin Simmons wrote:
> >> I suggest running the rclone-changer in a shell to see what it prints.
> >>
> >> You could also try replacing /usr/local/bin/rclone-changer in the
> >> Changer
> >> Command with a shell script that logs its arguments and output like
> >> this
> >> (untested):
> >>
> >> #!/bin/sh
> >> echo "Arguments: $@" > /tmp/test.log
> >> /usr/local/bin/rclone-changer "$@" 2>&1 | tee -a /tmp/test.log
> >>
> >> __Martin
> >>
> >
> > Good idea!
> >
> > That has gotten me further.
> >
> > It looks like the script was not taking the defined variables (inserted
> > at the top of the script) as described in the on-line documentation.  It
> > was instead using the values that were hard coded later down in the
> > script.  I set the "default" values later down in the script to match
> > those that were defined at the top of the script.  This has got the
> > Virtual Tape files created and labeled.
> >
> > Thank You.
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> MSc Heitor Faria
> CEO Bacula LATAM
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> [ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ]
> [ http://www.bacula.com.br/ ]
>
> América Latina
> [ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ |
> bacula.com.br ]
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Label Command Error

2019-03-14 Thread Wanderlei Huttel
Hello Ken

Take a look
https://github.com/wanderleihuttel/bacula-utils/blob/master/dicas/mysql_sql-mode.md

Enviado de Motorola Moto Z2 Play

Wanderlei Hüttel

Em qui, 14 de mar de 2019 18:02, Ken Mandelberg 
escreveu:

> My problem with the label command comes down do this, the INSERT into
> the Media Record fails since FirstWritten doesn't have a default value.
> Details below.
>
>  From very old posting this seems to be an incompatibility with newer
> Mysql that doesnt want NULL values. For the record, I'm running Bacula
> 9.0.6 and Mysql 5.7 both of which are the defaults on Ubuntu 18.04.
>
> Suggestions?
>
> The failing INSERT:
>
> 14-Mar 15:55 orac-dir JobId 3992: Error: sql_create.c:439 Create DB
> Media record INSERT INTO Media
> (VolumeName,MediaType,MediaTypeId,PoolId,MaxVolBytes,VolCapacityBytes,Recycle,VolRetention,VolUseDuration,M
>
>
> axVolJobs,MaxVolFiles,VolStatus,Slot,VolBytes,InChanger,VolReadTime,VolWriteTime,VolType,VolParts,VolCloudParts,LastPartBytes,EndFile,EndBlock,LabelType,StorageId,DeviceId,LocationId,ScratchPoolId,RecyclePo
>
>  olId,Enabled,ActionOnPurge,CacheRetention)VALUES
> ('Vol0013','File',0,2,53687091200,0,1,7776000,0,0,0,'Append',0,0,0,0,0,0,0,0,'0',0,0,0,1,0,0,0,0,1,0,0)
>
> failed. ERR=Field 'FirstWritten' doesn't have a default value
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows backup much slower than Linux backup

2019-03-01 Thread Wanderlei Huttel
Hello Kern

Thanks for your answer!

About Windows clients.
I know that in the Enterprise version there is a bpipe plugin for Windows.
Do you know if the bpipe plugin will be released for community? And if it
will be possible to escape the colons (:)?

In firebird, for example is necessary to include the port and how Bacula
uses colon (:) as bpipe separator, it breaks the plugin config,

Best regards

*Wanderlei Hüttel*



Em sex, 1 de mar de 2019 às 13:25, Kern Sibbald  escreveu:

> Hello Wanderlei,
>
> Well, it is not known to me that the community Windows client is not
> working as well as the Enterprise version.  Version 7.4.4 is very old, but
> since then the community version has been brought up to date at least two
> times with the Enterprise version.
>
> There are still some more newer changes that have been made in Enterprise
> version 10.2 that have not yet been backported to the community (will be in
> the next batch),.
>
> The installation files are a totally different question.  If someone knows
> about how the installer works, it would be a big help if he/she would help
> cleanup the community installation.  It is particularly difficult to try to
> backport the Enterprise installer because it has *so* many plugins that are
> not available for the community -- and will not be available for more time.
>
> Yes, it would be helpful if some community member could help with the
> community windows installer.There is nothing second rate about the
> current community Windows binaries, and they will be even better in the
> next few months.
>
> Best regards,
> Kern
>
> On 3/1/19 3:26 PM, Wanderlei Huttel wrote:
>
> Hello Kern
>
> I know that this issue could have a lot of possibilities, but it's known
> that the  community Windows client is not working fine as Enterprise
> version   7.4.4 that was released to the personal used in the past time.
> The installation generate some trash files, the bacula-fd.conf is not
> generated correctly.
>
> I guess would be interesting give more attention to the windows client
>
> I've related a bug last year also and still not have any return
> http://bugs.bacula.org/view.php?id=2427
>
> Thank you
>
> *Wanderlei Hüttel*
>
>
> Em sex, 1 de mar de 2019 às 08:50, Kern Sibbald 
> escreveu:
>
>> Hello,
>>
>> I have noticed similar things.  I have always attributed the slower
>> speed on Windows due to the fact that Microsoft hired the best students
>> from the best schools but most of them knew nothing about programming
>> and programming history (in particular Unix), thus these geniuses
>> re-invented the OS wheel in designing and building a monolithic
>> operating system that took about 10 times as much code as it took Unix
>> (and subsequently Linux).  To me it is not surprising that Windows had
>> more bugs than Linux (despite huge advances, it probably still has more
>> bugs).  In any case, programming Windows for a Linux programmer is a
>> nightmare -- 10 times harder to do almost anything, because there are
>> far more OS calls; they all have different arguments; many of which are
>> not well or not at all document, ...
>>
>> So, I have just attributed this to being normal Windows inefficiencies.
>>
>> Of course, the above is sort of a gut feeling.  Perhaps someone can do
>> some real performance testing and figure out what is really going on.
>>
>> Best regards,
>> Kern
>>
>> On 2/28/19 8:22 PM, Peter Milesson wrote:
>> > Hi folks,
>> >
>> > I'm backing up 2 servers with Bacula, one with Windows 2016, the other
>> > one with CentOS. The hardware is described below. The Windows server
>> > is much more powerful than the Linux server in all respects, and
>> > should theoretically deliver data to the Bacula server at a much
>> > higher rate. But in reality, the Linux server delivers data about 7
>> > times faster over the network, than the Windows server.
>> >
>> > Is this completely normal, or should I start to check up the Windows
>> > server for problems?
>> >
>> > Best regards,
>> >
>> > Peter
>> >
>> >
>> > Windows server (file server, RDP-server, Hyper-V host with 2 very
>> > lightly loaded VMs)
>> > =
>> > Hardware: HP DL180 Gen9, Intel Xeon E5-2683v4, 48GB RAM, Smart Array
>> > P440 Controller, 6x SAS 1GB (7200 rpm, 12 Gb/s) in RAID5
>> > Network: 2x 10GbE to HPE 1950 switch (LACP)
>> > OS: Windows 2016 (build 1607)
>> > Throughput to Bacula server: 23-Feb 08:52 MySd JobId 99

Re: [Bacula-users] Is it possible to tell bacula to not run a job for the next week?

2019-03-01 Thread Wanderlei Huttel
Hello Byron.

You can use the command
disable job=job-name

Enviado de Motorola Moto Z2 Play

Wanderlei Hüttel

Em sex, 1 de mar de 2019 12:05, byron  escreveu:

> I have 10 jobs that run every night and write to the same pool of tapes.
>
> Tonight is the night they run their monthly full backups but I am short on
> tapes.  I'd like to put a hold on running some of the lower priority jobs
> to allow the others to run all the way through to completion.  Then next
> week when I add in the new tapes I'll restart the remaining jobs that were
> put on hold.
>
> Is there anyway to do this through bconsole or do I need to remove the
> jobs that I don't want to run from the configuration files and add them
> back in next week?
>
> Many thanks
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows backup much slower than Linux backup

2019-03-01 Thread Wanderlei Huttel
Hello Kern

I know that this issue could have a lot of possibilities, but it's known
that the  community Windows client is not working fine as Enterprise
version   7.4.4 that was released to the personal used in the past time.
The installation generate some trash files, the bacula-fd.conf is not
generated correctly.

I guess would be interesting give more attention to the windows client

I've related a bug last year also and still not have any return
http://bugs.bacula.org/view.php?id=2427

Thank you

*Wanderlei Hüttel*


Em sex, 1 de mar de 2019 às 08:50, Kern Sibbald  escreveu:

> Hello,
>
> I have noticed similar things.  I have always attributed the slower
> speed on Windows due to the fact that Microsoft hired the best students
> from the best schools but most of them knew nothing about programming
> and programming history (in particular Unix), thus these geniuses
> re-invented the OS wheel in designing and building a monolithic
> operating system that took about 10 times as much code as it took Unix
> (and subsequently Linux).  To me it is not surprising that Windows had
> more bugs than Linux (despite huge advances, it probably still has more
> bugs).  In any case, programming Windows for a Linux programmer is a
> nightmare -- 10 times harder to do almost anything, because there are
> far more OS calls; they all have different arguments; many of which are
> not well or not at all document, ...
>
> So, I have just attributed this to being normal Windows inefficiencies.
>
> Of course, the above is sort of a gut feeling.  Perhaps someone can do
> some real performance testing and figure out what is really going on.
>
> Best regards,
> Kern
>
> On 2/28/19 8:22 PM, Peter Milesson wrote:
> > Hi folks,
> >
> > I'm backing up 2 servers with Bacula, one with Windows 2016, the other
> > one with CentOS. The hardware is described below. The Windows server
> > is much more powerful than the Linux server in all respects, and
> > should theoretically deliver data to the Bacula server at a much
> > higher rate. But in reality, the Linux server delivers data about 7
> > times faster over the network, than the Windows server.
> >
> > Is this completely normal, or should I start to check up the Windows
> > server for problems?
> >
> > Best regards,
> >
> > Peter
> >
> >
> > Windows server (file server, RDP-server, Hyper-V host with 2 very
> > lightly loaded VMs)
> > =
> > Hardware: HP DL180 Gen9, Intel Xeon E5-2683v4, 48GB RAM, Smart Array
> > P440 Controller, 6x SAS 1GB (7200 rpm, 12 Gb/s) in RAID5
> > Network: 2x 10GbE to HPE 1950 switch (LACP)
> > OS: Windows 2016 (build 1607)
> > Throughput to Bacula server: 23-Feb 08:52 MySd JobId 991: Elapsed
> > time=00:26:09, Transfer rate=4.071 M Bytes/second
> >
> >
> > Linux server (plain file server with Samba)
> > ==
> > Hardware: HP DL120 Gen9, Intel Xeon E5-2603v3, 8GB RAM, HP Dynamic
> > Smart Array B140i SATA Controller 2x SATA 2GB (7200 rpm) in RAID1
> > Network: 2x 1Gb to HPE 1950 switch (LACP)
> > OS: CentOS Linux 7.5 (1804)
> > Throughput to Bacula server: 23-Feb 08:26 MySd JobId 990: Elapsed
> > time=00:26:08, Transfer rate=28.29 M Bytes/second
> >
> >
> > Bacula server
> > ===
> > Hardware: standard motherboard with a 6-core AMD FX-6300 CPU, 4xSATA
> > 8GB (7200 rpm) in RAID10
> > Network: Tehuti 10GbE NIC to ProCurve 2910al switch
> > OS: CentOS Linux 7.6 (1810)
> > Bacula server throughput to the RAID array: ca. 60 Mbytes/second
> >
> > All switches are connected to our 10Gb/s optical network backbone.
> >
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula9.4.1 rpm Binaries package

2019-02-25 Thread Wanderlei Huttel
Hello Petar

The Debian binaries is already released (9.4.2) since February 11th.

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em seg, 25 de fev de 2019 às 07:54, Petar Kozic 
escreveu:

> Hi Folks,
>
> can we expect binary for Debian like OS ?
>
>
> On February 14, 2019 at 11:54:02 AM, Olivier Delestre (
> olivier.deles...@univ-rouen.fr) wrote:
>
> Hi,
>
> Thanks for 9.4.2 rpm on CentOs.
>
> I install and no problem ( 9.2.2 -> 9.4.2 on test host ).
>
> Do you know , if the bsnapshot binary package is in the
> "bacula-client.x86_64" ?
> I want to test zfs + bacula client ( for my test i use 9.2.2 srv + clt ).
>
> And thanks again :)
>
>
>
> Le 14/02/2019 à 11:09, Davide Franco a écrit :
>
> Hello Ken,
>
> Bacula 9.4.2 rpm packages are available on www.bacula.org
>
> If you still need rpms for version 9.4.1, just let me know.
>
> Best regards
>
> Davide
>
> On Tue, 12 Feb 2019 at 05:25, KEN SAWADA  wrote:
>
>> Hi Davide
>> Thank you for your reply.
>> After that the rpm package has not been updated, is it technically difficult?
>>
>> Best regards
>>
>> Ken Sawada
>>
>>
>> 2019年1月9日(水) 16:18 Davide Franco :
>>
>>> Hello Ken,
>>>
>>> Bacula 9.4.1 rpm packages will be available soon.
>>> It needs some changes and checks due to Cloud S3 new feature in latest
>>> release.
>>>
>>> I’ll do my best to release it to the community within the next days.
>>>
>>> Best regards
>>>
>>> Davide
>>>
>>> On Mon, 7 Jan 2019 at 15:11, KEN SAWADA  wrote:
>>>
 Hi

 Bacula 9.4.1 's rpm package will not be released,
 but will Debian, Ubuntu only release binary packages
 in the future?

 Since CentOS is most used in Japan, I am waiting for
 the rpm package.

 Best regards

 Ken Sawada
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

>>>
>
> ___
> Bacula-users mailing 
> listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Long pause with no logging or any activity at all

2019-02-20 Thread Wanderlei Huttel
About this issue!

I've had this behaviour sometimes in a Verify Job Level Data.

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 20 de fev de 2019 às 10:06, William Muriithi 
escreveu:

> Hello Simmons,
>
>
> > Unless something like Samba is converting the symlink to a directory,
> Bacula
> will not follow it.
>
> Okay, that is great to know.
>
> > Filling /tmp might cause the problem, but it should really fail with an
> error.
>
> Really wish that is the case but that is the only thing that make sense.
> The director, storage and clients are all on different hosts.
>
> > According to the "stat client" output, it has written 3.3 TB so far.  If
> your
> data is reasonably compressible then that should fit onto a 2.6 TB LTO-6
> tape.
>
> That is what I was suspecting too, I was afraid the autochanger isn't
> working properly or isn't configured well.  I have since re-run the job and
> it don't even make sense any more.  This is the current status of the tapes.
>
> *list volume
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Pool: Default
> No results to list.
> Pool: Tapes
>
> +-++---+-+---+--+--+-+--+---+---+-+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes  |
> VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
> LastWritten |
>
> +-++---+-+---+--+--+-+--+---+---+-+
> |   1 | 000128L6   | Append|   1 | 8,605,620,043,776 |
> 8,608 |   31,536,000 |   1 |2 | 1 | LTO-6 | 2019-02-20
> 07:12:15 |
> |   2 | 000101L6   | Append|   1 |64,512 |
> 0 |   31,536,000 |   1 |1 | 1 | LTO-6 | -00-00
> 00:00:00 |
>
> +-++---+-+---+--+--+-+--+---+---+-+
> Pool: Scratch
> No results to list.
>
> It seem like 8TB on one tape.  How is this possible?  And the autochanger
> hasn't kicked in.
>
> Regards,
> William
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula release 9.4.2

2019-02-07 Thread Wanderlei Huttel
Hello Kern

Can you take a look in the manual?
https://www.bacula.org/9.4.x-manuals/en/main/Main_Reference.html

I've been noticed in the manuals since 9.X versions a bad encoding I guess

https://www.bacula.org/9.0.x-manuals/en/main/Main_Reference.html
Copyright © 2000-2018, Kern Sibbald
New Bconsole “list†Command Behavior

https://www.bacula.org/9.4.x-manuals/en/main/Main_Reference.html
Copyright © 2000-2018, Kern Sibbald
Restore option “noautoparentâ€
New Bconsole “list†Command Behavior
Bconsole “list jobs†command options

These are just some examples.


Can you take a look?


About the "New Feature in 9.2.0"
Enhanced Autochanger Support

This example is not so clear
Could you include the complete example with bacula-dir.conf and
bacula-sd.conf configurations?

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 6 de fev de 2019 às 07:34, Kern Sibbald  escreveu:

> Hello,
>
> We are pleased to announce the release of Bacula version 9.4.2.  It is
> already released to Source Forge and bacula.org.  Binaries for selected
> should be available in the near future.
>
> This is a bug fix release to the prior version (9.4.1) that includes a
> number of bug fixes and patches. Thanks to the community for your
> participation.  9 bug reports were closed. In addition this version
> should fix virtually all the build problems found on FreeBSD.
>
> We recommend that all users upgrade to this release.
>
> Thanks for using Bacula,
>
> Kern
>
>
> If you are trying to build the S3 drivers, please remember to use the
> community supplied (from Bacula Enterprise) version of libs3.so found at:
>
> 04Feb19
>
>  - Update Windows .def files
>  - Change create_postgresql_database.in script to be more flexible
>  - Implement eliminate verify records in dbcheck bug #2434
>  - Enhance verify-voltocat-test to detect comparing deleted files
>  - Fix bug #2452 VerifyToCatalog reports deleted files as being new
>  - Use correct quoting for a character -- fixes previous patch
>  - Recompile configure.in
>  - Apply Carsten's multiarch patch fixes bug #2437
>  - Apply Carsten's patch for adding CPPFLAGS to tools/gigaslam.c compile
>  - Allow . to terminate sql queries prompts
>  - baculum: Update Baculum API OpenAPI documentation
>  - Fix rwlock_test unittest bug #2449 Only call thr_setconcurrency if it's
>available. Fix order of linking and installation.
>  - FixFix spelling errors found by lintian by Carston in bug #2436
>  - Apply chmods from Leo in bug #2445
>  - Add license files LICENSE and LICENSE-FOSS to the regression directory
>  - Display daemon pid in .apiV2 status output
>  - Attempt to ensure that ctest job output gets uploaded
>  - Apply varargs patch from Martin for bug 2443
>  - Apply recv() hide patch from Martin
>  - Fix lz4.c register compilation from bug #2443
>  - dbcheck: Improve error message when trying to prune Path records with
> BVFS is
>used.
>  - Update cdash for version 9.4
>  - Fix bug #2448 bregex and bwild do not accept -l command line option
>  - Partial update copyright year
>  - Fix struct transfer_manager to be class transfer_manager
>  - Print Device xxx requested by DIR disabled only if verbose is enabled in
>SD
>  - Add migrate-job-no-resource-test to all-disk-tests
>  - Remove unused berrno call + return
>  - Remove mention of Beta release from ReleaseNotes
>  - Fix #3225 about Migration issue when the Job resource is no longer
> defined
>  - baculum: Fix restore paths with apostrophe
>  - baculum: Fix data level
>  - Change endblock edit to unsigned -- suggested by Martin Simmons
>  - Update DEPKGS_VERSION
>  - baculum: Adapt Apache configs to version 2.4
>
> Bugs fixed/closed since last release:
> 2434 2436 2437 2443 2445 2448 2449 2452 3225
>
>
>
>
> ___
> Bacula-devel mailing list
> bacula-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude not working

2019-01-15 Thread Wanderlei Huttel
Hello Stefanie

You must include the option " ignore case = yes" in the firts option too.

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em ter, 15 de jan de 2019 às 15:23, Stefanie Leisestreichler <
stefanie.leisestreich...@peter-speer.de> escreveu:

> Thanks, guys. This is working, except "ignore case". Did I miss something?
>
> Here is my test scenario, which I would expect to exclude
> YETANOTHERTEST/ and noBackup/ (because of using ) also:
>
> FileSet {
>Name = "backnix-2017"
>Include {
>  Options {
>wilddir = "/*/nobackup"
>wilddir = "/*/TO_BE_ARCHIEVED"
>wilddir = "/*/yetanothertest"
>wildfile = "*.tmp"
>Exclude = yes
>  }
>  Options {
>signature = MD5
>compression = GZIP
>noatime = yes
>onefs = yes
>ignore case = yes
>  }
>  #File = /etc
>  #File = /home
>  File = /root
>  #File = /opt# Bacula
>  #File = /var/log
>  #File = /srv
>}
>Exclude {
>  #/root/nobackup
>}
> }
>
> I have this structure in my file system:
> [root@backnix-2017 ~]# ll
> insgesamt 7276
> -rw---. 1 root root1766  8. Jan 2017  anaconda-ks.cfg
> -rw-r--r--. 1 root root 3312236  8. Jan 2017  bacula-7.4.4.tar.gz
> -rw-r--r--. 1 root root 4115337 10. Okt 15:56 bacula-9.2.1.tar.gz
> drwxr-xr-x. 2 root root4096 14. Jan 13:52 noBackup
> -rw-r--r--. 1 root root   0 14. Jan 13:51 testtmp2.tmp
> -rw-r--r--. 1 root root   5 14. Jan 13:48 testtmp.tmp
> drwxr-xr-x. 2 root root4096 15. Jan 17:46 yetanothertest
> drwxr-xr-x. 2 root root4096 15. Jan 17:46 YETANOTHERTEST
>
> [root@backnix-2017 bin]# ./bconsole
> Connecting to Director backnix-2017:9101
> 1000 OK: 103 backnix05-dir Version: 9.2.1 (12 August 2018)
> Enter a period to cancel a command.
> *
> *reload
> *
> *estimate listing level=Full job=backnix-2017
> Using Catalog "IcCatalog"
> Connecting to Client backnix-2017-fd at 127.0.0.1:9102
> -rw---   1 root root1766 2017-01-08 14:46:30
> /root/anaconda-ks.cfg
> -rw---   1 root root   26289 2019-01-14 20:12:27
> /root/.bash_history
> -rw-r--r--   1 root root 349 2018-12-19 18:24:00
> /root/.ssh/known_hosts
> drwx--   2 root root4096 2018-10-10 18:53:38
> /root/.ssh
> -rw---   1 root root   11717 2019-01-15 17:46:23
> /root/.viminfo
> -rw-r--r--   1 root root 3312236 2017-01-08 16:39:26
> /root/bacula-7.4.4.tar.gz
> -rw---   1 root root  82 2018-12-19 18:22:54
> /root/.lesshst
> -rw---   1 root root1024 2018-10-10 21:40:58
> /root/.rnd
> -rw-r--r--   1 root root   0 2019-01-14 13:52:42
> /root/noBackup/noBackup.test
> drwxr-xr-x   2 root root4096 2019-01-14 13:52:42
> /root/noBackup
> -rw-r--r--   1 root root 129 2017-01-08 14:44:12
> /root/.tcshrc
> -rw-r--r--   1 root root 4115337 2018-10-10 15:56:06
> /root/bacula-9.2.1.tar.gz
> -rw-r--r--   1 root root  18 2017-01-08 14:44:12
> /root/.bash_logout
> -rw-r--r--   1 root root   8 2019-01-15 17:46:23
> /root/YETANOTHERTEST/test2.txt
> drwxr-xr-x   2 root root4096 2019-01-15 17:46:23
> /root/YETANOTHERTEST
> -rw-r--r--   1 root root 100 2017-01-08 14:44:12
> /root/.cshrc
> -rw---   1 root root 431 2018-12-19 18:56:30
> /root/.mysql_history
> -rw-r--r--   1 root root 176 2017-01-08 14:44:12
> /root/.bashrc
> -rw-r--r--   1 root root 176 2017-01-08 14:44:12
> /root/.bash_profile
> dr-xr-x---   6 root root4096 2019-01-15 17:46:23  /root
> 2000 OK estimate files=20 bytes=7,469,838
> *
>
> Thanks,
> Stefanie
>
> Am 15.01.19 um 10:51 schrieb Wanderlei Huttel:
> > Hello Stefanie
> >
> > I like to include another option only to deal the exclude files
> >
> > FileSet {
> > Name = "testnix-2017"
> > Include {
> >   Options {
> > wilddir = "/*/nobackup"
> > wildfile = "*.tmp"
> > Exclude = yes
> >   }
> >   Options {
> > signature = MD5
> > compression = GZIP
> > noatime = yes
> > onefs = yes
> > ignore case = yes
> >   }
> >   #File = /etc
> >   #File = /home
> >   File = /root
> >   #File = /opt# Bacula
> 

Re: [Bacula-users] Exclude not working

2019-01-15 Thread Wanderlei Huttel
Hello Stefanie

I like to include another option only to deal the exclude files

FileSet {
   Name = "testnix-2017"
   Include {
 Options {
   wilddir = "/*/nobackup"
   wildfile = "*.tmp"
   Exclude = yes
 }
 Options {
   signature = MD5
   compression = GZIP
   noatime = yes
   onefs = yes
   ignore case = yes
 }
 #File = /etc
 #File = /home
 File = /root
 #File = /opt# Bacula
 #File = /var/log
 #File = /srv
   }
   Exclude {
  #File = "/root/nobackup"
   }
}

Before excluding:
*estimate listing level=Full job=Backup_Servidor_Bacula
Using Catalog "MyCatalog"
Connecting to Client srv_bacula-fd at localhost:9102
-rw-r--r--   1 root root  0 2018-12-05 10:58:28
/root/root
-rwxrwxrwx   1 root root260 2019-01-15 07:42:22
/root/nobackup/opa.sh
drwxr-xr-x   2 root root   4096 2019-01-15 07:42:22
/root/nobackup
-rw-r--r--   1 root root955 2019-01-11 15:47:24
/root/egroupware-epl-install.log
-rw-r--r--   1 root root  0 2019-01-15 07:44:36
/root/test.tmp
-rwxr-xr-x   1 root root   5828 2017-09-26 10:15:54
/root/_send_telegram.sh
-rwxrwxrwx   1 root root   1049 2017-05-23 16:53:02
/root/catalog.sh
-rwxrwxrwx   1 root root280 2017-05-23 15:01:06
/root/while_com_end.sh
-rw-r--r--   1 root root  25449 2018-12-05 11:00:16
/root/teste.txt
-rwxrwxrwx   1 root root428 2017-05-23 21:37:23
/root/run.sh
drwx--  14 root root   4096 2019-01-15 07:47:06
/root
2000 OK estimate files=11 bytes=34,249



After excluding:
*estimate listing level=Full job=Backup_Servidor_Bacula
Using Catalog "MyCatalog"
Connecting to Client srv_bacula-fd at localhost:9102
-rw-r--r--   1 root root  0 2018-12-05 10:58:28
/root/root
-rw-r--r--   1 root root955 2019-01-11 15:47:24
/root/egroupware-epl-install.log
-rwxr-xr-x   1 root root   5828 2017-09-26 10:15:54
/root/_send_telegram.sh
-rwxrwxrwx   1 root root   1049 2017-05-23 16:53:02
/root/catalog.sh
-rwxrwxrwx   1 root root280 2017-05-23 15:01:06
/root/while_com_end.sh
-rw-r--r--   1 root root  25449 2018-12-05 11:00:16
/root/teste.txt
-rwxrwxrwx   1 root root428 2017-05-23 21:37:23
/root/run.sh
drwx--  14 root root   4096 2019-01-15 07:47:46
/root
2000 OK estimate files=8 bytes=33,989


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em ter, 15 de jan de 2019 às 07:28, Stefanie Leisestreichler <
stefanie.leisestreich...@peter-speer.de> escreveu:

> Hi.
>
> I have this FileSet Definition. Why is exclude not working and folder
> nobackup is backuped?
> For test purposes I have created a folder /root/nobackup
>
> Bacula version is 9.2.0.
>
> Thanks.
> Stefanie
>
>
> FileSet {
>Name = "testnix-2017"
>Include {
>  Options {
>signature = MD5
>compression = GZIP
>noatime = yes
>onefs = yes
>ignore case = yes
>Exclude = yes
>wilddir = "nobackup"
>wildfile = "*.tmp"
>
>  }
>  #File = /etc
>  #File = /home
>  File = /root
>  #File = /opt# Bacula
>  #File = /var/log
>  #File = /srv
>}
>Exclude {
>
>}
> }
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum restorations issues

2019-01-11 Thread Wanderlei Huttel
Are you using CentOS or Debian?

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 11 de jan de 2019 às 09:24, Chris Wilkinson 
escreveu:

> My Portuguese is not so good 
>
> Regards
> Chris Wilkinson
>
> On Fri, 11 Jan 2019, 11:22 am Wanderlei Huttel  wrote:
>
>> Hello Chris
>>
>> Yes there is, but the instructions are in Portuguese.
>> https://github.com/wanderleihuttel/bacula-utils/tree/master/tutorial
>>
>>
>> Best regards
>>
>> *Wanderlei Hüttel*
>> http://www.bacula.com.br
>>
>>
>> Em sex, 11 de jan de 2019 às 09:16, Chris Wilkinson <
>> winstonia...@gmail.com> escreveu:
>>
>>> Very interesting. Is there a link for the installation instructions? The
>>> docs folder appears to be old.
>>>
>>> Regards
>>> Chris Wilkinson
>>>
>>> On Fri, 11 Jan 2019, 9:34 a.m. Wanderlei Huttel <
>>> wanderleihut...@gmail.com wrote:
>>>
>>>> Hello Frederic
>>>>
>>>> I have a fork o Webacula with a new visual and some improvements.
>>>> https://github.com/wanderleihuttel/webacula
>>>>
>>>> You cant take a look in the screens here:
>>>> https://github.com/wanderleihuttel/webacula/wiki
>>>>
>>>> Best regards
>>>>
>>>> *Wanderlei Hüttel*
>>>> http://www.bacula.com.br
>>>>
>>>>
>>>> Em qui, 10 de jan de 2019 às 20:48, Frédéric F. 
>>>> escreveu:
>>>>
>>>>> Hello everyone,
>>>>> I use Bacula for 3 months and I am happy to use it.
>>>>> However I have several problems with the GUI Baculum.
>>>>>
>>>>> In Baculum, I have problem to restore files with path contains '
>>>>> character like "D:\Data\l'information"
>>>>> I can see in baculum the folder but when I select it, I can't browse
>>>>> into, the sub folder is empty.
>>>>> I can restore upper folder but it's not a great job.
>>>>> Any advice to browse in baculum with folders with special character ?
>>>>> I have a lot...
>>>>>
>>>>> Another problem with Baculum :
>>>>> Randomly, I have some lag (about 20 minutes) when I select a "group
>>>>> most recent backup" or one full backup in the list.
>>>>> My postgresql DB is working at 100% on 1CPU/8 for about 20 minutes.
>>>>>
>>>>> I optimize my postgresql DB and with pg_stat_statements, I found the
>>>>> slow bacula query (sorry for presentation) :
>>>>>
>>>>> postgres=# SELECT *
>>>>> FROM
>>>>>   pg_stat_statements
>>>>> ORDER BY
>>>>>   total_time DESC;
>>>>>  userid | dbid  |  queryid   |  query | calls  |total_time|
>>>>> min_time|   max_time|  mean_time  | stddev_time
>>>>> |   rows| shared_blks_hit | shared_blks_read | shared_blks_dirtied
>>>>> | shared_blks_written | local_blks_hit | local_blks_read |
>>>>> local_blks_dirtied | local_blks_written | temp_blks_read |
>>>>> temp_blks_written | blk_read_time | blk_write_time
>>>>>
>>>>>  10 | 16384 | 1980744281 | INSERT INTO PathVisibility (PathId,
>>>>> JobId)  SELECT a.PathId,$1 FROM ( SELECT DISTINCT h.PPathId AS PathId
>>>>> FROM PathHierarchy AS h JOIN  P
>>>>> athVisibility AS p ON (h.PathId=p.PathId) WHERE p.JobId=$2) AS a LEFT
>>>>> JOIN (SELECT PathId FROM PathVisibility WHERE JobId=$3) AS b ON
>>>>> (a.PathId = b.PathId) WHERE b.Path
>>>>> Id IS NULL  | 60 |   1478982.747849 |  0.225819 |
>>>>> 484839.953712 |  24649.71246415 | 105518.8118646
>>>>> 13 |  4074 |   205691266 |  165 |
>>>>> 62 |   0 |  0 |   0 |
>>>>> 0 |
>>>>>0 |   1011 |  1014 | 0 |
>>>>>   0
>>>>>
>>>>> I am not sure it is a DB problem rather a bacula optimization but what
>>>>> ?
>>>>>
>>>>> According to my stats, I have :
>>>>> - 5.31 TB of data saved, around 13M files
>>>>> - Bacula DB 5,18 Go
>>>>> - Fileset : 82
>>>>>
>>>>> OS : CentOS 7.5.1804
>>>>> Postgresql : 10.6
>>>>> Bacula : 9.2.1-1-el7
>>>>>
>>>>> Postgresql.conf tweaks :
>>>>>
>>>>> max_connections = 100
>>>>> shared_buffers = 2016MB
>>>>> maintenance_work_mem = 512MB
>>>>> effective_cache_size = 6GB
>>>>> max_worker_processes = 8
>>>>> max_parallel_workers_per_gather = 2
>>>>> max_parallel_workers = 8
>>>>>
>>>>>
>>>>> Hardware
>>>>> HP Proliant server (2017)
>>>>> CPU Xeon 4/8 cores
>>>>> Memory : 8 Go
>>>>> HD in RAID 5 (no SSD)
>>>>>
>>>>> Off topic question : is there another web GUI to restore files easily ?
>>>>>
>>>>> Thank you for your help
>>>>>
>>>>> PS : sorry for my approximate english.
>>>>>
>>>>>
>>>>> ___
>>>>> Bacula-users mailing list
>>>>> Bacula-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>>
>>>> ___
>>>> Bacula-users mailing list
>>>> Bacula-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>
>>>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum restorations issues

2019-01-11 Thread Wanderlei Huttel
Hello Chris

Yes there is, but the instructions are in Portuguese.
https://github.com/wanderleihuttel/bacula-utils/tree/master/tutorial


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 11 de jan de 2019 às 09:16, Chris Wilkinson 
escreveu:

> Very interesting. Is there a link for the installation instructions? The
> docs folder appears to be old.
>
> Regards
> Chris Wilkinson
>
> On Fri, 11 Jan 2019, 9:34 a.m. Wanderlei Huttel  wrote:
>
>> Hello Frederic
>>
>> I have a fork o Webacula with a new visual and some improvements.
>> https://github.com/wanderleihuttel/webacula
>>
>> You cant take a look in the screens here:
>> https://github.com/wanderleihuttel/webacula/wiki
>>
>> Best regards
>>
>> *Wanderlei Hüttel*
>> http://www.bacula.com.br
>>
>>
>> Em qui, 10 de jan de 2019 às 20:48, Frédéric F. 
>> escreveu:
>>
>>> Hello everyone,
>>> I use Bacula for 3 months and I am happy to use it.
>>> However I have several problems with the GUI Baculum.
>>>
>>> In Baculum, I have problem to restore files with path contains '
>>> character like "D:\Data\l'information"
>>> I can see in baculum the folder but when I select it, I can't browse
>>> into, the sub folder is empty.
>>> I can restore upper folder but it's not a great job.
>>> Any advice to browse in baculum with folders with special character ?
>>> I have a lot...
>>>
>>> Another problem with Baculum :
>>> Randomly, I have some lag (about 20 minutes) when I select a "group
>>> most recent backup" or one full backup in the list.
>>> My postgresql DB is working at 100% on 1CPU/8 for about 20 minutes.
>>>
>>> I optimize my postgresql DB and with pg_stat_statements, I found the
>>> slow bacula query (sorry for presentation) :
>>>
>>> postgres=# SELECT *
>>> FROM
>>>   pg_stat_statements
>>> ORDER BY
>>>   total_time DESC;
>>>  userid | dbid  |  queryid   |  query | calls  |total_time|
>>> min_time|   max_time|  mean_time  | stddev_time
>>> |   rows| shared_blks_hit | shared_blks_read | shared_blks_dirtied
>>> | shared_blks_written | local_blks_hit | local_blks_read |
>>> local_blks_dirtied | local_blks_written | temp_blks_read |
>>> temp_blks_written | blk_read_time | blk_write_time
>>>
>>>  10 | 16384 | 1980744281 | INSERT INTO PathVisibility (PathId,
>>> JobId)  SELECT a.PathId,$1 FROM ( SELECT DISTINCT h.PPathId AS PathId
>>> FROM PathHierarchy AS h JOIN  P
>>> athVisibility AS p ON (h.PathId=p.PathId) WHERE p.JobId=$2) AS a LEFT
>>> JOIN (SELECT PathId FROM PathVisibility WHERE JobId=$3) AS b ON
>>> (a.PathId = b.PathId) WHERE b.Path
>>> Id IS NULL  | 60 |   1478982.747849 |  0.225819 |
>>> 484839.953712 |  24649.71246415 | 105518.8118646
>>> 13 |  4074 |   205691266 |  165 |
>>> 62 |   0 |  0 |   0 |
>>> 0 |
>>>0 |   1011 |  1014 | 0 |
>>> 0
>>>
>>> I am not sure it is a DB problem rather a bacula optimization but what ?
>>>
>>> According to my stats, I have :
>>> - 5.31 TB of data saved, around 13M files
>>> - Bacula DB 5,18 Go
>>> - Fileset : 82
>>>
>>> OS : CentOS 7.5.1804
>>> Postgresql : 10.6
>>> Bacula : 9.2.1-1-el7
>>>
>>> Postgresql.conf tweaks :
>>>
>>> max_connections = 100
>>> shared_buffers = 2016MB
>>> maintenance_work_mem = 512MB
>>> effective_cache_size = 6GB
>>> max_worker_processes = 8
>>> max_parallel_workers_per_gather = 2
>>> max_parallel_workers = 8
>>>
>>>
>>> Hardware
>>> HP Proliant server (2017)
>>> CPU Xeon 4/8 cores
>>> Memory : 8 Go
>>> HD in RAID 5 (no SSD)
>>>
>>> Off topic question : is there another web GUI to restore files easily ?
>>>
>>> Thank you for your help
>>>
>>> PS : sorry for my approximate english.
>>>
>>>
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Virtual full backup ends with error

2019-01-11 Thread Wanderlei Huttel
Hello Azur

It looks that problem was an error on the connection:



*11-jan 05:42 server00-dir JobId 56875: Error: Director's connection to  SD
for this Job was lost.  *

You could try enable "Heartbeat Interval in your config files:
https://github.com/wanderleihuttel/bacula-utils/blob/master/dicas/heartbeat_interval.md

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sex, 11 de jan de 2019 às 06:08,  escreveu:

> Hi all,
>
> i'm having problems with virtual full backup on one of our clients.
> Everything was working fine for years but, suddenly, Bacula is unable
> to complete the job - i was trying to run it about 10 times during
> past few days, all of them ends with the same weird error.
>
> The error is occuring near of the end of the job, after 240 volumes
> were created (we have a limit of 5 GB for volume size) and 1,2 TB of
> data was copied.
>
> Here are last lines from job report:
>
> 11-jan 05:40 server08-sd JobId 56875: Ready to read from volume
> "cloud0015-16052" on File device "cloud0015-file-storage"
> (/backup/cloud0015).
> 11-jan 05:40 server08-sd JobId 56875: Forward spacing Volume
> "cloud0015-16052" to addr=226
> 11-jan 05:40 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17313" as Used.
> 11-jan 05:40 server08-sd JobId 56875: End of medium on Volume
> "cloud0015-17313" Bytes=5,368,688,735 Blocks=83,220 at 11-Jan-2019
> 05:40.
> 11-jan 05:40 server00-dir JobId 56875: Created new
> Volume="cloud0015-17314", Pool="cloud0015-pool",
> MediaType="File-cloud0015" in catalog.
> 11-jan 05:40 server08-sd JobId 56875: Labeled new Volume
> "cloud0015-17314" on File device "cloud0015-file-storage-2"
> (/backup/cloud0015).
> 11-jan 05:40 server08-sd JobId 56875: Wrote label to prelabeled Volume
> "cloud0015-17314" on File device "cloud0015-file-storage-2"
> (/backup/cloud0015)
> 11-jan 05:40 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:40 server08-sd JobId 56875: New volume "cloud0015-17314"
> mounted on device "cloud0015-file-storage-2" (/backup/cloud0015) at
> 11-Jan-2019 05:40.
> 11-jan 05:40 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:40 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:41 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:41 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:41 server08-sd JobId 56875: End of Volume "cloud0015-16052"
> at addr=5368688648 on device "cloud0015-file-storage"
> (/backup/cloud0015).
> 11-jan 05:41 server08-sd JobId 56875: Ready to read from volume
> "cloud0015-16053" on File device "cloud0015-file-storage"
> (/backup/cloud0015).
> 11-jan 05:41 server08-sd JobId 56875: Forward spacing Volume
> "cloud0015-16053" to addr=226
> 11-jan 05:41 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17314" as Used.
> 11-jan 05:41 server08-sd JobId 56875: End of medium on Volume
> "cloud0015-17314" Bytes=5,368,688,678 Blocks=83,220 at 11-Jan-2019
> 05:41.
> 11-jan 05:41 server00-dir JobId 56875: Created new
> Volume="cloud0015-17315", Pool="cloud0015-pool",
> MediaType="File-cloud0015" in catalog.
> 11-jan 05:41 server08-sd JobId 56875: Labeled new Volume
> "cloud0015-17315" on File device "cloud0015-file-storage-2"
> (/backup/cloud0015).
> 11-jan 05:41 server08-sd JobId 56875: Wrote label to prelabeled Volume
> "cloud0015-17315" on File device "cloud0015-file-storage-2"
> (/backup/cloud0015)
> 11-jan 05:41 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17315" as Used.
> 11-jan 05:41 server08-sd JobId 56875: New volume "cloud0015-17315"
> mounted on device "cloud0015-file-storage-2" (/backup/cloud0015) at
> 11-Jan-2019 05:41.
> 11-jan 05:41 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17315" as Used.
> 11-jan 05:42 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17315" as Used.
> 11-jan 05:42 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17315" as Used.
> 11-jan 05:42 server00-dir JobId 56875: Volume used once. Marking
> Volume "cloud0015-17315" as Used.
> 11-jan 05:42 server00-dir JobId 56875: Error: Director's connection to
> SD for this Job was lost.
>
>
>
>
>
> This is what is logged to syslog on SD side:
>
> Jan 11 05:42:43 server08 bacula-sd[13585]: server08-sd:
> vbackup.c:130-56875 Fatal append error on device
> "cloud0015-file-storage-2" (/backup/cloud0015): ERR=file_dev.c:190
> Could not
> open(/backup/cloud0015/cloud0015-17315,OPEN_READ_WRITE,0640): ERR=No
> such file or directory
>
>
>
>
>
>
>
>
> There's no reason why the volume wasn't created. Permissions are ok:
>
> # ls -ld /backup/cloud0015/
> drwxr-x--- 2 bacula tape 36864 Jan 11 05:41 /backup/cloud0015/
>
>
> Free disk space is sufficient:
>
> # df -h /backup/
> Filesystem  

Re: [Bacula-users] Baculum restorations issues

2019-01-11 Thread Wanderlei Huttel
Hello Frederic

I have a fork o Webacula with a new visual and some improvements.
https://github.com/wanderleihuttel/webacula

You cant take a look in the screens here:
https://github.com/wanderleihuttel/webacula/wiki

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 10 de jan de 2019 às 20:48, Frédéric F. 
escreveu:

> Hello everyone,
> I use Bacula for 3 months and I am happy to use it.
> However I have several problems with the GUI Baculum.
>
> In Baculum, I have problem to restore files with path contains '
> character like "D:\Data\l'information"
> I can see in baculum the folder but when I select it, I can't browse
> into, the sub folder is empty.
> I can restore upper folder but it's not a great job.
> Any advice to browse in baculum with folders with special character ?
> I have a lot...
>
> Another problem with Baculum :
> Randomly, I have some lag (about 20 minutes) when I select a "group
> most recent backup" or one full backup in the list.
> My postgresql DB is working at 100% on 1CPU/8 for about 20 minutes.
>
> I optimize my postgresql DB and with pg_stat_statements, I found the
> slow bacula query (sorry for presentation) :
>
> postgres=# SELECT *
> FROM
>   pg_stat_statements
> ORDER BY
>   total_time DESC;
>  userid | dbid  |  queryid   |  query | calls  |total_time|
> min_time|   max_time|  mean_time  | stddev_time
> |   rows| shared_blks_hit | shared_blks_read | shared_blks_dirtied
> | shared_blks_written | local_blks_hit | local_blks_read |
> local_blks_dirtied | local_blks_written | temp_blks_read |
> temp_blks_written | blk_read_time | blk_write_time
>
>  10 | 16384 | 1980744281 | INSERT INTO PathVisibility (PathId,
> JobId)  SELECT a.PathId,$1 FROM ( SELECT DISTINCT h.PPathId AS PathId
> FROM PathHierarchy AS h JOIN  P
> athVisibility AS p ON (h.PathId=p.PathId) WHERE p.JobId=$2) AS a LEFT
> JOIN (SELECT PathId FROM PathVisibility WHERE JobId=$3) AS b ON
> (a.PathId = b.PathId) WHERE b.Path
> Id IS NULL  | 60 |   1478982.747849 |  0.225819 |
> 484839.953712 |  24649.71246415 | 105518.8118646
> 13 |  4074 |   205691266 |  165 |
> 62 |   0 |  0 |   0 |
> 0 |
>0 |   1011 |  1014 | 0 |  0
>
> I am not sure it is a DB problem rather a bacula optimization but what ?
>
> According to my stats, I have :
> - 5.31 TB of data saved, around 13M files
> - Bacula DB 5,18 Go
> - Fileset : 82
>
> OS : CentOS 7.5.1804
> Postgresql : 10.6
> Bacula : 9.2.1-1-el7
>
> Postgresql.conf tweaks :
>
> max_connections = 100
> shared_buffers = 2016MB
> maintenance_work_mem = 512MB
> effective_cache_size = 6GB
> max_worker_processes = 8
> max_parallel_workers_per_gather = 2
> max_parallel_workers = 8
>
>
> Hardware
> HP Proliant server (2017)
> CPU Xeon 4/8 cores
> Memory : 8 Go
> HD in RAID 5 (no SSD)
>
> Off topic question : is there another web GUI to restore files easily ?
>
> Thank you for your help
>
> PS : sorry for my approximate english.
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] changing bacula files location

2019-01-10 Thread Wanderlei Huttel
Hello Elm

Yes only this. But all volumes must be moved to the new disk.


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 10 de jan de 2019 às 16:06, Elma  escreveu:

> Hi,
>
> If I want to change the storage location of some bacula backup, let's say
> from the old disk to the new one, it would be as simple as moving the files
> ( full-XXX, Differential-XXX,Incremental-XXX),  to the new disk and update
> bacula-sd.conf  with the new path, I mean "Archive Device
> =/path/to/newdisk"?  and then restart bacula-sd?
>
> Thanks in advance for your help!
>
> Regards,
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Run ClientBeforeJob script in background instead of waiting for it.

2019-01-07 Thread Wanderlei Huttel
Hello David
I know that is not an elegant way, but you could try to execute a script
calling another one
I don't know if will works, but you can try.

#!/bin/bash
nohup caffeinate -s bacula-idle-watch.sh >/dev/null 2>&1 http://www.bacula.com.br


Em seg, 7 de jan de 2019 às 17:06, David Brodbeck 
escreveu:

> Hmm, good catch on the redirect, but it still doesn't work. Neither does
> adding the exec line.
>
> Running lsof on the caffeinate process shows stdin, stdout, and stderr are
> properly connected to /dev/null; same with bacula-idle-watch.sh. I can't
> determine what the bacula-caffeinate.sh script's file handles are because
> by the time I get a chance to run lsof, it's already exited and become a
> zombie. bacula-fd continues to wait for it none the less.
>
> Is there any way to tell bacula-fd to not wait for script output, as in
> the 7.4.x behavior? I realize I'm not really using this functionality for
> the intended purpose, but I can't be the only one with this sort of use
> case.
>
> On Mon, Jan 7, 2019 at 6:26 AM Martin Simmons 
> wrote:
>
>> Your script redirects stderr to the original stdout of the script.  To
>> redirect both to /dev/null, the 2>&1 must follow the >/dev/null like this:
>>
>> nohup caffeinate -s bacula-idle-watch.sh >/dev/null 2>&1 >
>> Bacula 9.2.0 collects the stderr from ClientBeforeJob commands, but Bacula
>> clients running 7.4.x would have worked because they discard it.
>>
>> If that doesn't fix it, then try redirecting the shell's stdio as well:
>>
>> exec >/dev/null 2>&1 > nohup caffeinate -s bacula-idle-watch.sh &
>>
>> __Martin
>>
>>
>> > On Fri, 4 Jan 2019 11:36:06 -0800, David Brodbeck said:
>> >
>> > This is driving me nuts because I feel like it should be straightforward
>> > and I must be missing something basic.
>> >
>> > I want to launch the caffeinate command on OS X before starting a job.
>> > Caffeinate takes a command as an argument, then goes into the background
>> > and keeps the machine awake until the command exits. I use this after
>> > waking machines up using a WOL script.
>> >
>> > When tested from the command line, caffeinate immediately backgrounds
>> > itself. However, when I try to run it as a Bacula ClientBeforeJob
>> script,
>> > bacula-fd waits around forever for caffeiniate to exit.
>> >
>> > Here's what I've tried so far:
>> > - Having bacula run a script that then runs caffeinate.
>> > - Having bacula run a script that then runs caffeinate using nohup.
>> > - Having the script redirect stdin, stdout, and stderr of caffeinate to
>> > /dev/null
>> > - Adding an ampersand after the script in the bacula ClientBeforeJob
>> > specification.
>> >
>> > What invariably happens is the bash process created by bacula becomes a
>> > zombie and waits for caffeinate to exit. Inspecting the caffeinate
>> process
>> > with lsof shows all of the file handles are redirected to /dev/null as
>> > expected, so I don't think this is a case of stdin or stdout causing
>> > problems. In all cases the only way to get bacula to finish the backup
>> is
>> > to kill the script that caffeinate is running.
>> >
>> > I can't figure out why I can't get bacula-fd to move on after the script
>> > goes into the background. When I run the script manually from the
>> command
>> > line it backgrounds immediately.
>> >
>> > The oddest thing is this worked fine on clients using bacula-fd version
>> > 7.4.x, but fails on a client using 9.2.0.
>> >
>> > Here's the script bacula-fd runs, as it currently stands:
>> >
>> > --
>> > #!/bin/bash
>> >
>> > PATH=/bin:/usr/bin:/usr/local/bin
>> >
>> > # Script to prevent system sleep while bacula is working.
>> > # see bacula-idle-watch.sh for details.
>> >
>> > nohup caffeinate -s bacula-idle-watch.sh 2>&1 >/dev/null > > --
>> >
>> > Here's the contents of bacula-idle-watch.sh; it just waits to exit until
>> > there's no bacula network connection anymore. caffeinate will terminate
>> > once the script exits.
>> >
>> > --
>> > #!/bin/sh
>> >
>> > # This script delays a few minutes, then loops, checking for bacula-fd
>> > # connections. When there are none, it exits.
>> > # This is meant to be run with caffeinate in a bacula before-job script,
>> > # e.g. "caffeinate -s bacula-idle-watch.sh"
>> > # This will prevent the machine from idle-sleeping until bacula
>> finishes.
>> >
>> > PATH=/bin:/usr/bin:/usr/sbin
>> >
>> > # We put a long delay here in case it takes bacula a while to get going.
>> > sleep 300
>> >
>> > # Now loop while looking at the network connection.
>> > # We limit checks to once every five minutes because worst-case the
>> machine
>> > # just waits an extra five minutes to sleep.
>> > while ( netstat -an | grep '\.9102.*ESTABLISHED' >/dev/null ) ; do
>> > sleep 300
>> > done
>> >
>> > # Once the script exits, the wake-lock is released.
>> > exit 0
>> > --
>> >
>> >
>> > --
>> > David Brodbeck
>> > System Administrator, Department of Mathematics
>> > University of California, Santa Barbara
>> >
>>
>
>
> --
> 

Re: [Bacula-users] bacula-enterprise-win64-7.4.4 <> bacula-win64-9.2.2 with bacula server upgrade 7.4.4 to 9.2.2

2018-12-11 Thread Wanderlei Huttel
Hello Olivier

I also had the same problem, but after a full backup it returned to normal
behavior

Atenciosamente

*Wanderlei Hüttel*
http://www.bacula.com.br


Em ter, 11 de dez de 2018 às 08:40, Olivier Delestre <
olivier.deles...@univ-rouen.fr> escreveu:

> Hi,
>
> Recently, i upgrade my bacula server 7.4.7 to 9.2.2
> Alls works fine.
>
> Yesterday , i upgrade a windows client enterprise 7.4.4 to bacula 9.2.2.
>
> But , i have a strange result. The incremental is too long . it's not
> normal.
> on a small volumetry, it does not show but it is several To ( The Full 7To
> )
>
> can there be a difference in behavior between these two versions (
> enterprise 7.4.4 and bacula-win64-9.2.2  )?
>
> I return with the client 7.4.4 :(
>
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Changing and reloading query.sql

2018-12-05 Thread Wanderlei Huttel
Hello Chris

Are you sure you are using the correct query file?
I am running bacula 9.2.2 and do not need to reload bconsole. I only access
the bconsole again and run the command query

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 5 de dez de 2018 às 09:57, Christopher Sluman <
christopher.slu...@sgc.ox.ac.uk> escreveu:

> Hi,
>
>
>
> We are running Bacula 9.0.2 and I’m struggling to get
> /etc/bacula/query.sql to reload after I’ve made changes. A simple reload
> from bconsole doesn’t work. I also tried stopping all bacula services,
> without success. The only thing that worked was when I had to stop mysqld
> as well (due to a separate issue). Is there a way to change and reload
> query.sql without stopping mysql?
>
>
>
> Regards,
>
> Chris Sluman
>
> IT Technician
>
> Structural Genomics Consortium
>
> University of Oxford
>
> Old Road Campus Research Building
>
> Roosevelt Drive
>
> Oxford
>
> OX3 7DQ
>
>
>
> T: 01865 617577
>
>
>
> [image: SGC]
>
> [image: NDM]
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Job of "Verify Data" stuck

2018-12-03 Thread Wanderlei Huttel
Hello

I was making some tests with Verify Jobs, level=Data, and is not the first
time that I've noticed that the same Job got stuck (and is not so big).
The real size of this Job is near 51.95 GB (without compression) and 33.06
GB (with compression)


===
The Verify Job
===
Job{
  Name = "Verify_Data"
  Type = Verify
  Level = Data
  JobDefs = "Backup_Padrao"
  Pool = "Diaria"
  Enabled = no
}



===
The Job that is being verified
===
*list joblog jobid=15300
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
++
| logtext
|
++
| bacula-dir JobId 15300: Start Backup JobId 15300,
Job=Backup_Servidor_Windows.2018-11-30_19.30.00_16|
| bacula-dir JobId 15300: Using Device "DiscoLocal1" to write.
   |
| bacula-sd JobId 15300: Volume "Volume-Semanal-0014" previously written,
moving to end of data.   |
| srv_windows-fd JobId 15300: Generate VSS snapshots. Driver="Win64 VSS"
  |
| srv_windows-fd JobId 15300: Snapshot mount point: J:\
   |
| srv_windows-fd JobId 15300: Snapshot mount point: K:\
   |
| srv_windows-fd JobId 15300: Snapshot mount point: C:\
   |
| bacula-sd JobId 15300: End of medium on Volume "Volume-Semanal-0016"
Bytes=3,999,992,450 Blocks=62,005 at 30-Nov-2018 19:53. |
| bacula-dir JobId 15300: Purging oldest volume "Volume-Semanal-0003"
|
| bacula-dir JobId 15300: 5 Jobs on Volume "Volume-Semanal-0003" purged
from catalog.  |
| bacula-dir JobId 15300: There are no more Jobs associated with Volume
"Volume-Semanal-0003". Marking it purged. |
| bacula-dir JobId 15300: All records pruned from Volume
"Volume-Semanal-0003"; marking it "Purged"|
| bacula-sd JobId 15300: Recycled volume "Volume-Semanal-0003" on File
device "DiscoLocal1" (/mnt/disco01), all previous data lost. |
| bacula-sd JobId 15300: New volume "Volume-Semanal-0003" mounted on device
"DiscoLocal1" (/mnt/disco01) at 30-Nov-2018 19:53. |
| bacula-sd JobId 15300: End of medium on Volume "Volume-Semanal-0003"
Bytes=3,999,937,615 Blocks=62,003 at 30-Nov-2018 20:13. |
| bacula-dir JobId 15300: There are no more Jobs associated with Volume
"Volume-Semanal-0022". Marking it purged. |
| bacula-dir JobId 15300: All records pruned from Volume
"Volume-Semanal-0022"; marking it "Purged"|
| bacula-dir JobId 15300: Recycled volume "Volume-Semanal-0022"
|
| bacula-sd JobId 15300: Recycled volume "Volume-Semanal-0022" on File
device "DiscoLocal1" (/mnt/disco01), all previous data lost. |
| bacula-sd JobId 15300: New volume "Volume-Semanal-0022" mounted on device
"DiscoLocal1" (/mnt/disco01) at 30-Nov-2018 20:13. |
| bacula-sd JobId 15300: End of medium on Volume "Volume-Semanal-0022"
Bytes=3,999,937,575 Blocks=62,003 at 30-Nov-2018 20:36. |
| bacula-dir JobId 15300: There are no more Jobs associated with Volume
"Volume-Semanal-0005". Marking it purged. |
| bacula-dir JobId 15300: All records pruned from Volume
"Volume-Semanal-0005"; marking it "Purged"|
| bacula-dir JobId 15300: Recycled volume "Volume-Semanal-0005"
|
| bacula-sd JobId 15300: Recycled volume "Volume-Semanal-0005" on File
device "DiscoLocal1" (/mnt/disco01), all previous data lost. |
| bacula-sd JobId 15300: New volume "Volume-Semanal-0005" mounted on device
"DiscoLocal1" (/mnt/disco01) at 30-Nov-2018 20:36. |
| bacula-sd JobId 15300: End of medium on Volume "Volume-Semanal-0005"
Bytes=3,999,937,548 Blocks=62,003 at 30-Nov-2018 20:51. |
| bacula-dir JobId 15300: There are no more Jobs associated with Volume
"Volume-Semanal-0018". Marking it purged. |
| bacula-dir JobId 15300: All records pruned from Volume
"Volume-Semanal-0018"; marking it "Purged"|
| bacula-dir JobId 15300: Recycled volume "Volume-Semanal-0018"
|
| bacula-sd JobId 15300: Recycled volume "Volume-Semanal-0018" on File
device "DiscoLocal1" (/mnt/disco01), all previous data lost. |
| bacula-sd JobId 15300: New volume "Volume-Semanal-0018" mounted on device
"DiscoLocal1" (/mnt/disco01) at 30-Nov-2018 20:51. |
| bacula-sd JobId 15300: End of medium on Volume "Volume-Semanal-0018"
Bytes=3,999,937,670 Blocks=62,003 at 30-Nov-2018 21:05. |
| bacula-dir JobId 15300: 

Re: [Bacula-users] Migrating from MariaDB to PostgreSQL

2018-11-18 Thread Wanderlei Huttel
Hello George.

I don't know why, but I guess is the default charset of Bacula with
PostgreSQL.
I had troubles with "Log" table when had Windows Jobs with errors. But how
I only had a few errors, I updated some informations in the MySQL Catalog
manually (using update), and generate this single table again

Best regards

*Wanderlei Hüttel*



Em dom, 18 de nov de 2018 às 21:26, George Anchev via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> On Fri, 16 Nov 2018 12:50:12 +0200 George Anchev wrote:
>
> >
> https://www.bacula.org/9.2.x-manuals/en/main/Installing_Configuring_Post.html
>
> Can anyone please explain why SQL_ASCII is strongly
> recommended? Won't that be a problem for unicode file
> names?
>
> --
> George
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Problem in Bacula Windows Client 9.2.2

2018-11-15 Thread Wanderlei Huttel
Hello Kern

I've opened a bug report. Take a look please.
http://bugs.bacula.org/view.php?id=2427

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 15 de nov de 2018 às 12:40, Wanderlei Huttel <
wanderleihut...@gmail.com> escreveu:

> Hello Kern
>
> I've got a list of files copied from the last Differential Backup.
>
> As you can see the last Full was made in "2018-11-09 19:30:01", so during
> this week all files modified after this date should be copied not before
> this date.
>
>
> *list job=Backup_Servidor_0001
> Using Catalog "MyCatalog"
>
> ++--+-+--+---+--++---+
> | jobid  | name | starttime   | type | level |
> jobfiles | jobbytes   | jobstatus |
>
> ++--+-+--+---+--++---+
> | 13,045 | Backup_Servidor_0001 | 2018-06-01 19:30:00 | B| F |
> 241,117 | 31,927,455,288 | T |
> | 13,460 | Backup_Servidor_0001 | 2018-07-06 19:30:01 | B| F |
> 256,515 | 32,668,039,668 | T |
> | 13,661 | Backup_Servidor_0001 | 2018-07-24 21:30:00 | B| D |
> 0 |  0 | f |
> | 13,800 | Backup_Servidor_0001 | 2018-08-03 19:30:00 | B| F |
> 258,904 | 33,102,286,972 | T |
> | 14,238 | Backup_Servidor_0001 | 2018-09-07 19:30:01 | B| F |
> 264,327 | 33,799,538,178 | T |
> | 14,591 | Backup_Servidor_0001 | 2018-10-05 19:30:00 | B| F |
> 271,296 | 35,223,364,297 | T |
> | 14,853 | Backup_Servidor_0001 | 2018-10-26 19:30:00 | B| F |
> 280,087 | 35,643,076,042 | T |
> | 14,939 | Backup_Servidor_0001 | 2018-11-02 19:30:01 | B| F |
> 280,506 | 35,736,374,061 | T |
> | 14,992 | Backup_Servidor_0001 | 2018-11-07 21:30:00 | B| D |
> 2,032 | 81,702,333 | T |
> | 15,009 | Backup_Servidor_0001 | 2018-11-08 21:30:01 | B| D |
> 281,174 | 35,800,216,531 | T |
> | 15,026 | Backup_Servidor_0001 | 2018-11-09 19:30:01 | B| F |
> 280,992 | 35,811,171,964 | T | <== Last Full
> | 15,046 | Backup_Servidor_0001 | 2018-11-12 21:30:01 | B| D |
> 1,418 | 27,140,594 | T |
> | 15,063 | Backup_Servidor_0001 | 2018-11-13 21:30:01 | B| D |
> 1,620 | 49,285,013 | T |
> | 15,081 | Backup_Servidor_0001 | 2018-11-14 21:30:00 | B| D |
> 1,939 |138,634,593 | T |
>
> ++--+-+--+---+--++---+
>
> I generated a file list using BLS with the Bootstrap file of this Job and
> I noticed that the Bacula copied more than 1000 files that should not be
> copied.
> Interesting that all Files has size 0 bytes.
>
> I've marked the files that shouldn't be copied in the txt file with "=>"
> in the start of line
>
>
> Best regards
>
> *Wanderlei Hüttel*
>
>
>
> Em sex, 9 de nov de 2018 às 09:41, Wanderlei Huttel <
> wanderleihut...@gmail.com> escreveu:
>
>> Hello Kern
>>
>> Both Director, SD and FD are in the same version (9.2.2)
>>
>>
>> Best regards
>>
>> *Wanderlei Hüttel*
>>
>>
>>
>> Em sex, 9 de nov de 2018 às 09:37, Kern Sibbald 
>> escreveu:
>>
>>> Hello Wanderlei,
>>>
>>> I don't think anything has changed with Windows in quite some time aside
>>> from some minor bug fixes.  Other people seem to be using it with success.
>>> Please check what Director and SD versions you are running.
>>>
>>> Best regards,
>>> Kern
>>>
>>> On 11/9/18 11:00 AM, Wanderlei Huttel wrote:
>>>
>>> Hello Kern
>>>
>>> I guess the Windows Client is not working as expected.
>>> I was running Client 7.4.4 - x64 on Windows 2012 and everything was fine.
>>>
>>> Yesterday I've update to Bacula 9.2.2 even the Windows client and even
>>> using Accurate mode in Bacula, it copy the data like a Full Backup.
>>>
>>> Is possible to see that Differentials backups (in blue)  has a normal
>>> size, and the Differential (in red) has a size of Full Backup.
>>>
>>> *list job=Backup_Servidor_0001
>>> Using Catalog "MyCatalog"
>>>
>>> ++--+-+--+---+--++---+
>>> | jobid  | name | starttime   | type | level |
>>> jobfiles | jobbytes   | jobstatus |
>>>

Re: [Bacula-users] [Bacula-devel] Bacula Community Packages Debian Outdated

2018-10-25 Thread Wanderlei Huttel
Any News Davide?

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em ter, 16 de out de 2018 às 08:03, Davide Franco 
escreveu:

> Hello Wanderlei,
>
> I’ve been too busy over the last few weeks to produce binary packages for
> latest Bacula version. Sorry for that.
>
> Bacula 9.2.1 packages will be available within the next few days
>
> Best regards
>
> Davide
>
> On Thu, 4 Oct 2018 at 15:37, Wanderlei Huttel 
> wrote:
>
>> Hello
>>
>> The latest version of Bacula Community (9.2.1) was released in August 14,
>> 2018,
>> but in the Bacula Community Packages Repository there isn't still the
>> updated packages.
>> The last one is 9.0.8 for Debian 9 stretch.
>>
>>
>> Best regards
>>
>> *Wanderlei Hüttel*
>> http://www.bacula.com.br
>> ___
>> Bacula-devel mailing list
>> bacula-de...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>>
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Community Packages Debian Outdated

2018-10-16 Thread Wanderlei Huttel
Hello Kern

Can you help?

Em qui, 4 de out de 2018 às 10:32, Wanderlei Huttel <
wanderleihut...@gmail.com> escreveu:

> Hello
>
> The latest version of Bacula Community (9.2.1) was released in August 14,
> 2018,
> but in the Bacula Community Packages Repository there isn't still the
> updated packages.
> The last one is 9.0.8 for Debian 9 stretch.
>
>
> Best regards
>
> *Wanderlei Hüttel*
> http://www.bacula.com.br
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Community Packages Debian Outdated

2018-10-04 Thread Wanderlei Huttel
Hello

The latest version of Bacula Community (9.2.1) was released in August 14,
2018,
but in the Bacula Community Packages Repository there isn't still the
updated packages.
The last one is 9.0.8 for Debian 9 stretch.


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mass delete volumes with status "Error"

2018-09-19 Thread Wanderlei Huttel
Hello Bill

You can use a shell script to do this.

Take a look

#!/bin/bash
clear
echo "list pools" | bconsole | grep "[+|\|]"
read -p "Type the name of Pool you want to exclude the volumes:: " pool
echo "Pool selected: $pool"
echo ""
read -p "Enter the status of the volumes you would like to check (Error,
Used, Full, Append, Recycled): " volstatus

arraysize=$(echo "list media pool=$pool" | bconsole  | grep "|" | grep -v
"MediaId" | grep "$volstatus" | cut -d "|" -f3 | sed 's/ //g' | wc -l)
#volname=$(echo "list media pool=$pool" | bconsole  | grep "|" | grep -v
"MediaId" | grep "$volstatus" | cut -d "|" -f3 | sed 's/ //g')
echo ""
for volname in $(echo "list media pool=$pool" | bconsole  | grep "|" | grep
-v "MediaId" | grep "$volstatus" | cut -d "|" -f3 | sed 's/ //g'); do
   #echo "delete volume=$volname pool=$pool yes" ;
   echo "$volname" ;
done
echo -e "$arraysize volumes were found with status $volstatus\n"

read -p "Are you sure you want to delete all $arraysize volumes? This
operation is irreversible! (Y-Yes / N-No)" confirm

if [ "$confirm" == "s" ] || [ "$confirm" == "S" ]; then
   for volname in $(echo "list media pool=$pool" | bconsole  | grep "|" |
grep -v "MediaId" | grep "$volstatus" | cut -d "|" -f3 | sed 's/ //g'); do
  echo "delete volume=$volname pool=$pool yes" ;
  # Uncomment the line below to exclude the volumes in the catalog
  #echo "delete volume=$volname pool=$pool yes" | bconsole ;

  # If you need to physically delete you can uncomment the command below
  # rm -f /backup/$volname
   done
   echo "Deleting volumes..."
else
   echo "Abort!"
fi


Best Regards

*Wanderlei Hüttel*
http://www.bacula.com.br



Em qua, 19 de set de 2018 às 08:42, Bill Damage via Bacula-users <
bacula-users@lists.sourceforge.net> escreveu:

> We had a disk error with the disk which holds the bacula catalogs, and
> many of the older catalog files themselves are gone. Newer ones are OK, but
> now when we list the pool for that Catalog many of these entries under
> VolStatus are "Error". Is there a safe way to just remove these please?
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-announce] Bacula Release Version 9.2.1

2018-08-15 Thread Wanderlei Huttel
Hello Adolf

Try to install --with-openssl

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 15 de ago de 2018 às 17:28, Adolf Belka 
escreveu:

> Hi Kern,
>
> Just tried to install 9.2.1 and got an error during the make stage. Any
> idea what the problem might be?
>
> make[1]: Entering directory `/home/source/bacula-9.2.1/src/filed'
> Compiling filed.c
> Compiling authenticate.c
> Compiling backup.c
> Compiling crypto.c
> Compiling win_efs.c
> Compiling estimate.c
> Compiling fd_plugins.c
> Compiling accurate.c
> Compiling filed_conf.c
> Compiling heartbeat.c
> Compiling hello.c
> Compiling job.c
> Compiling fd_snapshot.c
> Compiling restore.c
> Compiling status.c
> Compiling verify.c
> Compiling verify_vol.c
> Compiling bacl.c
> Compiling bacl_linux.c
> Compiling bxattr.c
> Compiling bxattr_linux.c
> Linking bacula-fd ...
> /home/source/bacula-9.2.1/libtool --silent --tag=CXX --mode=link
> /usr/bin/g++   -L../lib -L../findlib -o bacula-fd filed.o authenticate.o
> backup.o crypto.o win_efs.o estimate.o fd_plugins.o accurate.o filed_conf.o
> heartbeat.o hello.o job.o fd_snapshot.o restore.o status.o verify.o
> verify_vol.o bacl.o bacl_linux.o bxattr.o bxattr_linux.o \
>-lacl-lz -lbacfind -lbaccfg -lbac -lm -lpthread -ldl
> -ldl  \
> -llzo2
> /home/source/bacula-9.2.1/src/lib/.libs/libbac.so: undefined reference to
> `tls_bsock_shutdown(BSOCKCORE*)'
> collect2: error: ld returned 1 exit status
> make[1]: *** [bacula-fd] Error 1
> make[1]: Leaving directory `/home/source/bacula-9.2.1/src/filed'
>
>
>   == Error in /home/source/bacula-9.2.1/src/filed ==
>
>
> make: *** [all] Error 1
>
>
> My configure is
>
> ./configure \
> --without-openssl \
> --disable-ipv6 \
> --enable-smartalloc \
> --sbindir=/opt/bacula/bin \
> --sysconfdir=/opt/bacula/etc \
> --with-pid-dir=/opt/bacula/working \
> --with-subsys-dir=/opt/bacula/working \
> --with-working-dir=/opt/bacula/working \
> --with-mysql \
> --with-dir-user=bacula \
> --with-dir-group=bacula \
> --with-sd-user=bacula \
> --with-sd-group=bacula
>
> The OS is Ubuntu 14.04.5 LTS. This is old but has worked successfully with
> all previous bacula versions, including 9.2.0.
>
> Also have the same error with another machine I tried running a Bacula
> File Daemon. This machine has a simpler configure profile and is running
> Arch Linux and is fully up to date.
>
> Adolf Belka.
>
> Sent from my Desktop Computer
>
> On 14/08/2018 12:30, Kern Sibbald wrote:
>
> Hello,
>
> We are pleased to announce the minor bug and refactoring release version
> 9.2.1.
>
> This is a bug fix release. It also contains some refactoring. That said,
> there are 10,909 lines of diff between release 9.2.0 and this release.
>
> One major improvement is that this release should eliminate the persistent
> problem we have seen with MySQL unhappy with zero DATETIME fields. If you
> have problems with that, please simply execute the script
> update_bacula_tables
> found in the /src/cats library. It will modify the table default
> values for DATETIME fields to be friendly to the whims of MySQL and
> MariaDB.
> Note, this script should be used only if you have already upgraded to
> Bacula
> version 9.2.0. It will modify the attributes of several of the table
> columns in
> a non-destructive manor, but will not change the Bacula catalog version
> (16).
> If you use the script to create the tables, you do not need to run the
> update
> script.
>
> 12Aug18
> – baculum: Fix saving directives in messages resource
> – Refactoring of BSOCK and introducing BSOCKCORE.
> – baculum: Update API documentation
> – baculum: Add status endpoint to available scopes endpoints
> – Make print_ls_output identify delete files more clearly
> – Backport stored/vbackup.c
> – baculum: Add status director and status storage endpoints
> – baculum: Add type and level filters to jobs endpoint
> – baculum: Add support for .api 2 command in bconsole module
> – Implement a keepalive on bpipe sockets fixes bug #2347
> – Backport bpipe enhancements
> – Permit catalog to contain negative FileIndexes
> – Fix bug #2319 wrong port value stored in bsock giving incorrect error
> messages
> – baculum: Add to jobs endpoint filtering by client and clientid
> – Fix bug #2410 bdirjson output incorrect for day greater than 24
> – Attempt to avoid MySQL complaints about not allowing zero or empty in
> DATETIME
> – Add M_SECURITY when connection is bad + fix bug where invalid probes
> sent to
> Dir
> – baculum: Fix sc

Re: [Bacula-users] Upgrade Bacula from 7.4.2 to 9.2.0. Fatal error: sql_create.c: ... failed. ERR=Field 'StartTime' doesn't have a default value

2018-08-08 Thread Wanderlei Huttel
Hello Georg!

These scripts were based in the manual chapter "*Converting from MySQL to
PostgreSQL*"
http://www.bacula.org/9.2.x-manuals/en/main/Installing_Configuring_Post.html#SECTION00445

I've converted my Bacula database (about 1gb a year ago) and I help another
community user to migrate a database around (5GB) and it worked fine!

I suggest you do this migration in a test environment first.
Then if is OK, run in production environment.

And if you have some difficulties don't hesitate to contact me


Thanks for this words Kern!

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 8 de ago de 2018 às 07:47, Kern Sibbald  escreveu:

> Wonderlei knows Bacula well and does good work, so I imagine his script
> could work well.  However, I have not personally used it.  I have asked
> to get a copy of the Bacula Systems script, but all the key players are
> currently on vacation.
>
> I recommend that you try it.  You can have both MySQL and PostgreSQL
> installed on the same machine, so it is rather trivial to test.  You
> just need to save your current Bacula configuration (trivial if you use
> /opt/bacula as recommended) and install a build of Bacula with posgres.
> Alternatively, simply install the postgres version in a different
> directory.
>
> Best regards,
> Kern
>
> On 08/08/2018 12:51 AM, George Anchev via Bacula-users wrote:
> > On Tue, 7 Aug 2018 14:45:15 -0300 Wanderlei Huttel
> > wrote:
> >
> >> If somebody wants to migrate from MySQL to
> >> PostgreSQL I've created a script to simplify this.
> >>
> https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql
> > Thanks for sharing!
> >
> > Kern, could you please have a look and confirm if this
> > is would work with Bacula 9.2.0 catalog and
> > convert MariaDB to Postgres correctly?
> >
> > --
> > George
> >
> >
> --
> > 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
> >
>
>
>
> --
> 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
>
--
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] Upgrade Bacula from 7.4.2 to 9.2.0. Fatal error: sql_create.c: ... failed. ERR=Field 'StartTime' doesn't have a default value

2018-08-07 Thread Wanderlei Huttel
If somebody wants to migrate from MySQL to PostgreSQL I've created a script
to simplify this.
https://github.com/wanderleihuttel/bacula-utils/tree/master/convert_mysql_to_postgresql

Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em ter, 7 de ago de 2018 às 14:33, Kern Sibbald  escreveu:

> I have already done it for the make_mysql_tables.in script, but I need
> to modify the update_mysql_tables.in to add the new defaults.
>
> On 08/07/2018 04:22 PM, Martin Simmons wrote:
> >> On Tue, 7 Aug 2018 15:49:07 +0200, Kern Sibbald said:
> >> By the way, after switching, I have had zero problems with PostgreSQL.
> > Since Bacula works fine with NULL in these datetime fields (NULL is the
> > implicit default in PostgreSQL), should the MySQL schema be changed to
> say
> > 'DEFAULT NULL' in the Bacula source code?
> >
> > __Martin
> >
>
>
>
> --
> 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
>
--
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] Install Bacula 9.0.8 with rpm ( repo )

2018-07-14 Thread Wanderlei Huttel
 Hello Ken

The comnand in the whitepaper is wrong.
The correct one is:

apt-key Bacula-4096-Distribution-Verification-key.asc


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em sáb, 14 de jul de 2018 às 04:05, KEN SAWADA 
escreveu:

> Hello
>
> I installed Bacula 9.0.8 on CentOS 7.
> I can not install it because the public key is not installed.
>
> The following procedures described in the white paper are carried out.
> -
> cd / tmp
> wget https://www.bacula.org/downloads/Bacula-4096-Distribution- 
> Verification-key.asc
> rpm --import add Bacula - 4096 - Distribution - Verification - key.asc
> rm Bacula-4096-Distribution-Verification-key.asc
> -
>
> Is there anyone who successfully installed Bacula 9.0.8 on CentOS 7?
>
>
>
> 2018-06-29 2:39 GMT+09:00 Davide Franco :
>
>> Hello Wanderlei,
>>
>> Ok, I'll check this tomorrow.
>>
>> Davide
>>
>> On Thu, 28 Jun 2018 at 19:35, Wanderlei Huttel 
>> wrote:
>>
>>> Hello Davide
>>>
>>> But I've installed, as I described in the previous email
>>>
>>> cd /tmp/
>>> wget
>>> https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
>>> apt-key add Bacula-4096-Distribution-Verification-key.asc
>>> apt-get install postgresql postgresql-client
>>>
>>>
>>> Best regards
>>>
>>> *Wanderlei Hüttel*
>>> http://www.bacula.com.br
>>>
>>>
>>> Em qui, 28 de jun de 2018 às 14:32, Davide Franco 
>>> escreveu:
>>>
>>>> Hello Wanderlei,
>>>>
>>>> You need to install Bacula signing key, it’s described in the white
>>>> paper.
>>>>
>>>> Hope it helps
>>>>
>>>> Davide
>>>>
>>>> On Thu, 28 Jun 2018 at 18:10, Wanderlei Huttel <
>>>> wanderleihut...@gmail.com> wrote:
>>>>
>>>>> Hello Davide
>>>>>
>>>>> I've try to run "apt-get update" and now I'm having problem with the
>>>>> Bacula Key.
>>>>>
>>>>> root@debian:/tmp# apt-get update
>>>>> Ign:1 http://ftp.br.debian.org/debian stretch InRelease
>>>>> Atingido:2 http://ftp.br.debian.org/debian stretch-updates InRelease
>>>>> Atingido:3 http://ftp.br.debian.org/debian stretch-backports InRelease
>>>>> Atingido:4 http://ftp.br.debian.org/debian stretch Release
>>>>> Ign:6
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>>> stretch InRelease
>>>>> Atingido:8 http://security.debian.org/debian-security stretch/updates
>>>>> InRelease
>>>>> Obter:7 
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>>> stretch Release [2.553 B]
>>>>> Obter:9 
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>>> stretch Release.gpg [819 B]
>>>>> Err:9 
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>>> stretch Release.gpg
>>>>>   As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C
>>>>> Bacula 4096 Distribution Verification Key (www.bacula.org) <
>>>>> k...@bacula.org>
>>>>> Baixados 3.372 B em 1s (2.370 B/s)
>>>>> Lendo listas de pacotes... Pronto
>>>>> W: An error occurred during the signature verification. The repository
>>>>> is not updated and the previous index files will be used. GPG error:
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>>> stretch Release: As seguintes assinaturas eram inválidas: BADSIG
>>>>> CAA7F07F2911863C Bacula 4096 Distribution Verification Key (
>>>>> www.bacula.org) 
>>>>> W: Falhou ao buscar 
>>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64/dists/stretch/Release.gpg
>>>>> As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C Bacula
>>>>> 4096 Distribution Verification Key (www.bacula.org) 
>>>>> W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou
>>>>> os antigos foram usados em seu lugar.
>>>>> root@debian:/tmp#
>>>>>
>>>>>
>>>>> Best regards
>>>>>
>>>>> *Wanderlei Hüttel*
>>>>> http://www.bacula.com.br
>>&g

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-28 Thread Wanderlei Huttel
Hello Davide

But I've installed, as I described in the previous email

cd /tmp/
wget
https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
apt-key add Bacula-4096-Distribution-Verification-key.asc
apt-get install postgresql postgresql-client


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 28 de jun de 2018 às 14:32, Davide Franco 
escreveu:

> Hello Wanderlei,
>
> You need to install Bacula signing key, it’s described in the white paper.
>
> Hope it helps
>
> Davide
>
> On Thu, 28 Jun 2018 at 18:10, Wanderlei Huttel 
> wrote:
>
>> Hello Davide
>>
>> I've try to run "apt-get update" and now I'm having problem with the
>> Bacula Key.
>>
>> root@debian:/tmp# apt-get update
>> Ign:1 http://ftp.br.debian.org/debian stretch InRelease
>> Atingido:2 http://ftp.br.debian.org/debian stretch-updates InRelease
>> Atingido:3 http://ftp.br.debian.org/debian stretch-backports InRelease
>> Atingido:4 http://ftp.br.debian.org/debian stretch Release
>> Ign:6
>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch InRelease
>> Atingido:8 http://security.debian.org/debian-security stretch/updates
>> InRelease
>> Obter:7 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch Release [2.553 B]
>> Obter:9 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch Release.gpg [819 B]
>> Err:9 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch Release.gpg
>>   As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C Bacula
>> 4096 Distribution Verification Key (www.bacula.org) 
>> Baixados 3.372 B em 1s (2.370 B/s)
>> Lendo listas de pacotes... Pronto
>> W: An error occurred during the signature verification. The repository is
>> not updated and the previous index files will be used. GPG error:
>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch Release: As seguintes assinaturas eram inválidas: BADSIG
>> CAA7F07F2911863C Bacula 4096 Distribution Verification Key (
>> www.bacula.org) 
>> W: Falhou ao buscar 
>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64/dists/stretch/Release.gpg
>> As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C Bacula
>> 4096 Distribution Verification Key (www.bacula.org) 
>> W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os
>> antigos foram usados em seu lugar.
>> root@debian:/tmp#
>>
>>
>> Best regards
>>
>> *Wanderlei Hüttel*
>> http://www.bacula.com.br
>>
>>
>> Em qui, 28 de jun de 2018 às 12:06, Davide Franco 
>> escreveu:
>>
>>> Hello Wanderlei,
>>>
>>> I've experienced the same issue with Debian Stretch.
>>>
>>> A fix on the package dependencies (libssl) solved the problem.
>>> Fixed binary packages for Debian Stretch are available in bacula.org
>>> repo.
>>>
>>> Hope it helps
>>>
>>> Best regards
>>>
>>> Davide
>>>
>>> On Thu, Jun 28, 2018 at 1:46 PM, Wanderlei Huttel <
>>> wanderleihut...@gmail.com> wrote:
>>>
>>>> Hello Davide
>>>>
>>>> I also having problems with packages in Debian 9.4 fresh install
>>>>
>>>> I followed step by step the instructions of whitepaper.
>>>>
>>>> cd /tmp/
>>>> wget
>>>> https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
>>>> apt-key add Bacula-4096-Distribution-Verification-key.asc
>>>> apt-get install postgresql postgresql-client
>>>>
>>>>
>>>> My bacula repo:
>>>> # Bacula Community - Debian 9.4
>>>> deb
>>>> http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>>>> stretch main
>>>>
>>>>
>>>>
>>>> root@debian:/tmp# apt-get install bacula-postgresql
>>>> Lendo listas de pacotes... Pronto
>>>> Construindo árvore de dependências
>>>> Lendo informação de estado... Pronto
>>>> Alguns pacotes não puderam ser instalados. Isto pode significar que
>>>> você solicitou uma situação impossível ou, se você está usando a
>>>> distribuição instável, que alguns pacotes requeridos não foram
>>>> criados ainda ou foram retirados da "Incoming".
>>>> A informação a seguir pode ajudar a resolver a situação:
>>>>
>>>&g

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-28 Thread Wanderlei Huttel
Hello Davide

I've try to run "apt-get update" and now I'm having problem with the Bacula
Key.

root@debian:/tmp# apt-get update
Ign:1 http://ftp.br.debian.org/debian stretch InRelease
Atingido:2 http://ftp.br.debian.org/debian stretch-updates InRelease
Atingido:3 http://ftp.br.debian.org/debian stretch-backports InRelease
Atingido:4 http://ftp.br.debian.org/debian stretch Release
Ign:6 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch InRelease
Atingido:8 http://security.debian.org/debian-security stretch/updates
InRelease
Obter:7 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch Release [2.553 B]
Obter:9 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch Release.gpg [819 B]
Err:9 http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch Release.gpg
  As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C Bacula
4096 Distribution Verification Key (www.bacula.org) 
Baixados 3.372 B em 1s (2.370 B/s)
Lendo listas de pacotes... Pronto
W: An error occurred during the signature verification. The repository is
not updated and the previous index files will be used. GPG error:
http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch Release: As seguintes assinaturas eram inválidas: BADSIG
CAA7F07F2911863C Bacula 4096 Distribution Verification Key (www.bacula.org)

W: Falhou ao buscar
http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64/dists/stretch/Release.gpg
As seguintes assinaturas eram inválidas: BADSIG CAA7F07F2911863C Bacula
4096 Distribution Verification Key (www.bacula.org) 
W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os
antigos foram usados em seu lugar.
root@debian:/tmp#


Best regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qui, 28 de jun de 2018 às 12:06, Davide Franco 
escreveu:

> Hello Wanderlei,
>
> I've experienced the same issue with Debian Stretch.
>
> A fix on the package dependencies (libssl) solved the problem.
> Fixed binary packages for Debian Stretch are available in bacula.org repo.
>
> Hope it helps
>
> Best regards
>
> Davide
>
> On Thu, Jun 28, 2018 at 1:46 PM, Wanderlei Huttel <
> wanderleihut...@gmail.com> wrote:
>
>> Hello Davide
>>
>> I also having problems with packages in Debian 9.4 fresh install
>>
>> I followed step by step the instructions of whitepaper.
>>
>> cd /tmp/
>> wget
>> https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
>> apt-key add Bacula-4096-Distribution-Verification-key.asc
>> apt-get install postgresql postgresql-client
>>
>>
>> My bacula repo:
>> # Bacula Community - Debian 9.4
>> deb http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
>> stretch main
>>
>>
>>
>> root@debian:/tmp# apt-get install bacula-postgresql
>> Lendo listas de pacotes... Pronto
>> Construindo árvore de dependências
>> Lendo informação de estado... Pronto
>> Alguns pacotes não puderam ser instalados. Isto pode significar que
>> você solicitou uma situação impossível ou, se você está usando a
>> distribuição instável, que alguns pacotes requeridos não foram
>> criados ainda ou foram retirados da "Incoming".
>> A informação a seguir pode ajudar a resolver a situação:
>>
>> Os pacotes a seguir têm dependências desencontradas:
>>  bacula-postgresql : Depende: bacula-client (= 9.0.8-1) mas não será
>> instalado
>>  Recomenda: postgresql-9.1 mas não é instalável ou
>> postgresql-9.0 mas não é instalável ou
>> postgresql-8.4 mas não é instalável ou
>>     postgresql-8.3 mas não é instalável
>> E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
>> root@debian:/tmp#
>>
>>
>>
>> Best Regards
>>
>> *Wanderlei Hüttel*
>> http://www.bacula.com.br
>>
>>
>> Em qua, 27 de jun de 2018 às 09:04, Wanderlei Huttel <
>> wanderleihut...@gmail.com> escreveu:
>>
>>> Hello Davide
>>>
>>> Yes. I followed all of your steps.
>>>
>>> Enviado de Motorola Moto X2
>>>
>>> Wanderlei Hüttel
>>>
>>> Em qua, 27 de jun de 2018 08:29, Davide Franco 
>>> escreveu:
>>>
>>>> Hello,
>>>>
>>>> This is really strange ...
>>>>
>>>> Here's below my repo configuration
>>>>
>>>> [Bacula]
>>>> name=Bacula - Community
>>>> baseurl=
>>>> http://www.bacula.org/packages

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-28 Thread Wanderlei Huttel
Hello Davide

I also having problems with packages in Debian 9.4 fresh install

I followed step by step the instructions of whitepaper.

cd /tmp/
wget
https://www.bacula.org/downloads/Bacula-4096-Distribution-Verification-key.asc
apt-key add Bacula-4096-Distribution-Verification-key.asc
apt-get install postgresql postgresql-client


My bacula repo:
# Bacula Community - Debian 9.4
deb http://www.bacula.org/packages/X/debs/9.0.8/stretch/amd64
stretch main



root@debian:/tmp# apt-get install bacula-postgresql
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Alguns pacotes não puderam ser instalados. Isto pode significar que
você solicitou uma situação impossível ou, se você está usando a
distribuição instável, que alguns pacotes requeridos não foram
criados ainda ou foram retirados da "Incoming".
A informação a seguir pode ajudar a resolver a situação:

Os pacotes a seguir têm dependências desencontradas:
 bacula-postgresql : Depende: bacula-client (= 9.0.8-1) mas não será
instalado
 Recomenda: postgresql-9.1 mas não é instalável ou
postgresql-9.0 mas não é instalável ou
postgresql-8.4 mas não é instalável ou
postgresql-8.3 mas não é instalável
E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
root@debian:/tmp#



Best Regards

*Wanderlei Hüttel*
http://www.bacula.com.br


Em qua, 27 de jun de 2018 às 09:04, Wanderlei Huttel <
wanderleihut...@gmail.com> escreveu:

> Hello Davide
>
> Yes. I followed all of your steps.
>
> Enviado de Motorola Moto X2
>
> Wanderlei Hüttel
>
> Em qua, 27 de jun de 2018 08:29, Davide Franco 
> escreveu:
>
>> Hello,
>>
>> This is really strange ...
>>
>> Here's below my repo configuration
>>
>> [Bacula]
>> name=Bacula - Community
>> baseurl=http://www.bacula.org/packages//rpms/9.0.8/el7/x86_64
>> enabled=1
>> protect=0
>> gpgcheck=1
>>
>> Then when I install bacula-postgresql
>>
>> # yum install bacula-postgresql
>> Loaded plugins: fastestmirror
>> Repository 'Bacula-Community' is missing name in configuration, using id
>> Loading mirror speeds from cached hostfile
>>  * base: mirror1.hs-esslingen.de
>>  * extras: centos.bio.lmu.de
>>  * updates: centos.bio.lmu.de
>> Bacula-Community
>> | 2.9 kB  00:00:00
>> Bacula-Community/primary_db
>> |  15 kB  00:00:00
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package bacula-postgresql.x86_64 0:9.0.8-2.el7 will be installed
>> --> Processing Dependency: bacula-libs for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbacfind-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbaccfg-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbac-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Running transaction check
>> ---> Package bacula-libs.x86_64 0:9.0.8-2.el7 will be installed
>> --> Finished Dependency Resolution
>>
>> Dependencies Resolved
>>
>>
>> ===
>>  Package
>> Arch
>> Version
>> Repository Size
>>
>> ===
>> Installing:
>>  bacula-postgresql
>> x86_64
>> 9.0.8-2.el7
>> Bacula-Community  3.0 M
>> Installing for dependencies:
>>  bacula-libs
>> x86_64
>> 9.0.8-2.el7
>> Bacula-Community  772 k
>>
>> Transaction Summary
>>
>> ===
>> Install  1 Package (+1 Dependent package)
>>
>> Total download size: 3.8 M
>> Installed size: 3.8 M
>> Is this ok [y/d/N]:
>>
>> Did you clear up your yum cache ?
>>
>> Best regards
>>
>> Davide
>>
>> On Wed, Jun 27, 2018 at 12:44 PM, Wanderlei Huttel <
>> wanderleihut...@gmail.com> wrote:
>>
>>> Hello
>>>
>>> 

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-27 Thread Wanderlei Huttel
Hello Davide

Yes. I followed all of your steps.

Enviado de Motorola Moto X2

Wanderlei Hüttel

Em qua, 27 de jun de 2018 08:29, Davide Franco 
escreveu:

> Hello,
>
> This is really strange ...
>
> Here's below my repo configuration
>
> [Bacula]
> name=Bacula - Community
> baseurl=http://www.bacula.org/packages//rpms/9.0.8/el7/x86_64
> enabled=1
> protect=0
> gpgcheck=1
>
> Then when I install bacula-postgresql
>
> # yum install bacula-postgresql
> Loaded plugins: fastestmirror
> Repository 'Bacula-Community' is missing name in configuration, using id
> Loading mirror speeds from cached hostfile
>  * base: mirror1.hs-esslingen.de
>  * extras: centos.bio.lmu.de
>  * updates: centos.bio.lmu.de
> Bacula-Community
> | 2.9 kB  00:00:00
> Bacula-Community/primary_db
> |  15 kB  00:00:00
> Resolving Dependencies
> --> Running transaction check
> ---> Package bacula-postgresql.x86_64 0:9.0.8-2.el7 will be installed
> --> Processing Dependency: bacula-libs for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbacfind-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbaccfg-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbac-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Running transaction check
> ---> Package bacula-libs.x86_64 0:9.0.8-2.el7 will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
>
> ===
>  Package
> Arch
> Version
> Repository Size
>
> ===
> Installing:
>  bacula-postgresql
> x86_64
> 9.0.8-2.el7
> Bacula-Community  3.0 M
> Installing for dependencies:
>  bacula-libs
> x86_64
> 9.0.8-2.el7
> Bacula-Community  772 k
>
> Transaction Summary
>
> ===
> Install  1 Package (+1 Dependent package)
>
> Total download size: 3.8 M
> Installed size: 3.8 M
> Is this ok [y/d/N]:
>
> Did you clear up your yum cache ?
>
> Best regards
>
> Davide
>
> On Wed, Jun 27, 2018 at 12:44 PM, Wanderlei Huttel <
> wanderleihut...@gmail.com> wrote:
>
>> Hello
>>
>> In the chapter 15, the correct command to import bacula key is:
>> rpm --import Bacula-4096-Distribution-Verification-key.asc
>>
>> Instead:  rpm --import add Bacula-4096-Distribution-Verification-key.asc
>>
>>
>> I've followed Davide steps but MariaDB packages are still been showed as
>> dependencies
>>
>>
>> [root@bacula yum.repos.d]# yum install bacula-postgresql
>> Plugins carregados: fastestmirror
>> Loading mirror speeds from cached hostfile
>>  * base: mirror.ci.ifes.edu.br
>>  * epel: mirror.ci.ifes.edu.br
>>  * extras: mirror.ci.ifes.edu.br
>>  * updates: mirror.ci.ifes.edu.br
>> Resolvendo dependências
>> --> Executando verificação da transação
>> ---> O pacote bacula-postgresql.x86_64 0:9.0.8-2.el7 será instalado
>> --> Processando dependência: bacula-libs para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: perl(Logwatch) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbac-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbaccfg-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbacfind-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Executando verificação da transação
>> ---> O pacote bacula-libs.x86_64 0:9.0.8-2.el7 será instalado
>> ---> O pacote bacula-mysql.x86_64 0:9.0.8-2.el7 será instalado
>> --> Processando dependência: mysql para o pacote:
>> bacula-mysql-9.0.8-2.el7.x86_64
>> --> Executando verificação da 

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-27 Thread Wanderlei Huttel
Hello Davide

Yes. I followed all of your Stela.

Enviado de Motorola Moto X2

Wanderlei Hüttel

Em qua, 27 de jun de 2018 08:29, Davide Franco 
escreveu:

> Hello,
>
> This is really strange ...
>
> Here's below my repo configuration
>
> [Bacula]
> name=Bacula - Community
> baseurl=http://www.bacula.org/packages//rpms/9.0.8/el7/x86_64
> enabled=1
> protect=0
> gpgcheck=1
>
> Then when I install bacula-postgresql
>
> # yum install bacula-postgresql
> Loaded plugins: fastestmirror
> Repository 'Bacula-Community' is missing name in configuration, using id
> Loading mirror speeds from cached hostfile
>  * base: mirror1.hs-esslingen.de
>  * extras: centos.bio.lmu.de
>  * updates: centos.bio.lmu.de
> Bacula-Community
> | 2.9 kB  00:00:00
> Bacula-Community/primary_db
> |  15 kB  00:00:00
> Resolving Dependencies
> --> Running transaction check
> ---> Package bacula-postgresql.x86_64 0:9.0.8-2.el7 will be installed
> --> Processing Dependency: bacula-libs for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbacfind-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbaccfg-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Processing Dependency: libbac-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-2.el7.x86_64
> --> Running transaction check
> ---> Package bacula-libs.x86_64 0:9.0.8-2.el7 will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
>
> ===
>  Package
> Arch
> Version
> Repository Size
>
> ===
> Installing:
>  bacula-postgresql
> x86_64
> 9.0.8-2.el7
> Bacula-Community  3.0 M
> Installing for dependencies:
>  bacula-libs
> x86_64
> 9.0.8-2.el7
> Bacula-Community  772 k
>
> Transaction Summary
>
> ===
> Install  1 Package (+1 Dependent package)
>
> Total download size: 3.8 M
> Installed size: 3.8 M
> Is this ok [y/d/N]:
>
> Did you clear up your yum cache ?
>
> Best regards
>
> Davide
>
> On Wed, Jun 27, 2018 at 12:44 PM, Wanderlei Huttel <
> wanderleihut...@gmail.com> wrote:
>
>> Hello
>>
>> In the chapter 15, the correct command to import bacula key is:
>> rpm --import Bacula-4096-Distribution-Verification-key.asc
>>
>> Instead:  rpm --import add Bacula-4096-Distribution-Verification-key.asc
>>
>>
>> I've followed Davide steps but MariaDB packages are still been showed as
>> dependencies
>>
>>
>> [root@bacula yum.repos.d]# yum install bacula-postgresql
>> Plugins carregados: fastestmirror
>> Loading mirror speeds from cached hostfile
>>  * base: mirror.ci.ifes.edu.br
>>  * epel: mirror.ci.ifes.edu.br
>>  * extras: mirror.ci.ifes.edu.br
>>  * updates: mirror.ci.ifes.edu.br
>> Resolvendo dependências
>> --> Executando verificação da transação
>> ---> O pacote bacula-postgresql.x86_64 0:9.0.8-2.el7 será instalado
>> --> Processando dependência: bacula-libs para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: perl(Logwatch) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbac-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbaccfg-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processando dependência: libbacfind-9.0.8.so()(64bit) para o pacote:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Executando verificação da transação
>> ---> O pacote bacula-libs.x86_64 0:9.0.8-2.el7 será instalado
>> ---> O pacote bacula-mysql.x86_64 0:9.0.8-2.el7 será instalado
>> --> Processando dependência: mysql para o pacote:
>> bacula-mysql-9.0.8-2.el7.x86_64
>> --> Executando verificação da 

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-27 Thread Wanderlei Huttel
Hello

In the chapter 15, the correct command to import bacula key is:
rpm --import Bacula-4096-Distribution-Verification-key.asc

Instead:  rpm --import add Bacula-4096-Distribution-Verification-key.asc


I've followed Davide steps but MariaDB packages are still been showed as
dependencies


[root@bacula yum.repos.d]# yum install bacula-postgresql
Plugins carregados: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ci.ifes.edu.br
 * epel: mirror.ci.ifes.edu.br
 * extras: mirror.ci.ifes.edu.br
 * updates: mirror.ci.ifes.edu.br
Resolvendo dependências
--> Executando verificação da transação
---> O pacote bacula-postgresql.x86_64 0:9.0.8-2.el7 será instalado
--> Processando dependência: bacula-libs para o pacote:
bacula-postgresql-9.0.8-2.el7.x86_64
--> Processando dependência: perl(Logwatch) para o pacote:
bacula-postgresql-9.0.8-2.el7.x86_64
--> Processando dependência: libbac-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-2.el7.x86_64
--> Processando dependência: libbaccfg-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-2.el7.x86_64
--> Processando dependência: libbacfind-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-2.el7.x86_64
--> Executando verificação da transação
---> O pacote bacula-libs.x86_64 0:9.0.8-2.el7 será instalado
---> O pacote bacula-mysql.x86_64 0:9.0.8-2.el7 será instalado
--> Processando dependência: mysql para o pacote:
bacula-mysql-9.0.8-2.el7.x86_64
--> Executando verificação da transação
---> O pacote mariadb.x86_64 1:5.5.56-2.el7 será instalado
--> Resolução de dependências finalizada

Dependências resolvidas

=
 PackageArq.
Versão   Repo
 Tam.
=
Instalando:
 bacula-postgresql  x86_64
9.0.8-2.el7
Bacula-Community  3.0 M
Instalando para as dependências:
 bacula-libsx86_64
9.0.8-2.el7
Bacula-Community  772 k
 bacula-mysql   x86_64
9.0.8-2.el7
Bacula-Community  3.0 M
 mariadbx86_64
1:5.5.56-2.el7   base
8.7 M

Resumo da transação
=
Instalar  1 Package (+3 Dependent packages)

Tamanho total do download: 16 M
Tamanho depois de instalado: 74 M
Is this ok [y/d/N]:



Best Regards

*Wanderlei Hüttel*
www.bacula.com.br

Em qua, 27 de jun de 2018 às 05:59, Davide Franco 
escreveu:

> Hello,
>
> It does works fine for me.
>
> Try to clean up your local yum cache and try again please.
>
> $ sudo yum clean all
> $ sudo rm -rm /var/yum/cache
> & sudo yum check-update
>
> Hope it helps
>
> Davide
>
> On Wed, 27 Jun 2018 at 10:33, Olivier Delestre <
> olivier.deles...@univ-rouen.fr> wrote:
>
>> And i test quickly and :(
>> Thanks for your works :)
>> ---
>> My Bacula.repo
>>
>> [Bacula-Community]
>> name=CentOS - Bacula - Community
>> baseurl=http://bacula.org/packages//rpms/9.0.8/el7/x86_64
>> enabled=1
>> protect=0
>> gpgcheck=0
>>
>>
>>
>> ---
>> yum install bacula-postgresql
>> Loaded plugins: etckeeper, fastestmirror
>> Loading mirror speeds from cached hostfile
>>  * epel: mirrors.ircam.fr
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package bacula-postgresql.x86_64 0:9.0.8-2.el7 will be installed
>> --> Processing Dependency: bacula-libs for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: perl(Logwatch) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbac-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbaccfg-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Processing Dependency: libbacfind-9.0.8.so()(64bit) for package:
>> bacula-postgresql-9.0.8-2.el7.x86_64
>> --> Running transaction check
>> ---> Package bacula-libs.x86_64 0:9.0.8-2.el7 will be installed
>> ---> Package bacula-mysql.x86_64 0:9.0.8-2.el7 will be installed
>> --> Processing Dependency: mysql for package:
>> bacula-mysql-9.0.8-2.el7.x86_64
>> --> Running transaction check
>> ---> Package 

Re: [Bacula-users] Install Bacula 9.0.8 with rpm ( repo )

2018-06-19 Thread Wanderlei Huttel
Hello
I noticed the same "problem" .
In the whitepaper bacula.repo is mentioned as "https" and "www", but this
address is wrong.
The correct address that worked is without "www" and "https".

[Bacula-Community]
name=CentOS - Bacula - Community
#baseurl=https://www.bacula.org/packages/9812439823589/rpms/9.0.6/el7/
baseurl=http://bacula.org/packages/9812439823589/rpms/9.0.8/el7/
enabled=1
protect=0
gpgcheck=1



[root@bacula yum.repos.d]# yum install bacula-postgresql
Plugins carregados: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ufam.edu.br
 * epel: mirror.globo.com
 * extras: mirror.ufam.edu.br
 * updates: mirror.ufam.edu.br
Resolvendo dependências
--> Executando verificação da transação
---> O pacote bacula-postgresql.x86_64 0:9.0.8-1.el7 será instalado
--> Processando dependência: bacula-libs para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Processando dependência: perl(Logwatch) para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Processando dependência: libbac-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Processando dependência: libbaccfg-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Processando dependência: libbacfind-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Processando dependência: libbaccats-9.0.8.so()(64bit) para o pacote:
bacula-postgresql-9.0.8-1.el7.x86_64
--> Executando verificação da transação
---> O pacote bacula-libs.x86_64 0:9.0.8-1.el7 será instalado
---> O pacote bacula-mysql.x86_64 0:9.0.8-1.el7 será instalado
--> Processando dependência: mysql para o pacote:
bacula-mysql-9.0.8-1.el7.x86_64
--> Executando verificação da transação
---> O pacote mariadb.x86_64 1:5.5.56-2.el7 será instalado
--> Resolução de dependências finalizada

Dependências resolvidas

=
 PackageArq.
Versão   Repo
 Tam.
=
Instalando:
 bacula-postgresql  x86_64
9.0.8-1.el7
Bacula-Community  3.0 M
Instalando para as dependências:
 bacula-libsx86_64
9.0.8-1.el7
Bacula-Community  772 k
 bacula-mysql   x86_64
9.0.8-1.el7
Bacula-Community  3.0 M
 mariadbx86_64
1:5.5.56-2.el7   base
8.7 M

Resumo da transação
=
Instalar  1 Package (+3 Dependent packages)

Tamanho total do download: 16 M
Tamanho depois de instalado: 74 M
Is this ok [y/d/N]: n


Best regards

*Wanderlei Hüttel*
www.bacula.com.br



Em ter, 19 de jun de 2018 às 10:18, Kern Sibbald 
escreveu:

> Hello,
>
> Your command for installing Bacula seems a bit odd to me.
>
> Did you follow the instructions in the Bacula Binary Package Installation
> Guide?
>
> Best regards,
> Kern
>
> On 06/19/2018 02:11 PM, Olivier Delestre wrote:
>
> Hi, i have some problem to install bacula 9.0.8 on CentOs 7.5 x64.
> I Want a PostgreSql but when i run the install command, see the result
> below.
>
> Why i have a bacula-mysql dependency ?? ( no gpg check for the moment )
> a problem with the Rpm ??
>
> Thanks for your help.
> ---
>
> bacula.repo :
> [Bacula-Community]
> name=CentOS - Bacula - Community
> baseurl=http://www.bacula.org/packages/x/rpms/9.0.8/el7/
> enabled=1
> protect=0
> gpgcheck=0
>
>
>
> --
> yum install bacula-postgresql
> Loaded plugins: etckeeper, fastestmirror
> Loading mirror speeds from cached hostfile
>  * epel: mirrors.ircam.fr
> Resolving Dependencies
> --> Running transaction check
> ---> Package bacula-postgresql.x86_64 0:9.0.8-1.el7 will be installed
> --> Processing Dependency: bacula-libs for package:
> bacula-postgresql-9.0.8-1.el7.x86_64
> --> Processing Dependency: perl(Logwatch) for package:
> bacula-postgresql-9.0.8-1.el7.x86_64
> --> Processing Dependency: libbac-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-1.el7.x86_64
> --> Processing Dependency: libbaccfg-9.0.8.so()(64bit) for package:
> bacula-postgresql-9.0.8-1.el7.x86_64
> 

Re: [Bacula-users] [Bacula-devel] Bacula Status Report -- 9 June 2018

2018-06-10 Thread Wanderlei Huttel
Hello Kern

Can you take a look in the debian repo.
It looks that the debian directory are "duplicated" (too many folders
comparing with centos repository)

Debian:
http://bacula.org/packages/X/debs/9.0.8/stretch/amd64/dists/stretch/main/binary-amd64/

CentOS
http://bacula.org/packages/ X/ rpms/9.0.8/el7/x86_64/


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br


Em sáb, 9 de jun de 2018 às 10:33, Kern Sibbald  escreveu:

> Hello,
>
> It has been a while since the last status report, so it is now time.
>
> I would like to discuss the following subjects:
>
> 1. Bacula Release Status
>
> 2. Bacula Binaries (New)
>
> 3. Windows Binaries (more coming)
>
> 4. Next Bacula Version
>
> ===
>
> 1. Bacula Release Status
> As probably know, the latest Bacula version 9.0.8 was released recently
> to Source Forge and will be released to www.bacula.org shortly. Mostly
> this release corrects some copyright oversights. However, since version
> 9.0.0, we have had several minor releases, so most of the minor
> annoyances, including a few long time bugs are behind us. Just the same
> there are quite a few additional fixes and many new features coming in
> the next release (see below).
>
> 2. Bacula Binaries
> We are pleased to announce that Bacula binaries have been built for a
> few of the most popular platforms. This is thanks to the build support
> from Bacula Systems. We will start with a small number most popular
> binaries and over time expand it to include a broader base of OS
> releases.  In this release is the Aligned driver plugin for the Storage
> daemon, which permits Bacula to write an archive volume that is properly
> aligned so that it can bee deduplicated by filesystems such as ZFS and
> NetApp.
>
> Please note that the release format is with standard packaging using
> debs rpms, ... that are specific to each system. However, unlike most
> Linux distributions, we install the Community Binaries into the
> directory /opt/bacula as recommended in the Bacula manual and as used by
> the Bacula Enterprise Edition. This Bacula file release standard is not
> uncommon and vastly simplifies installation, support, backup and
> recovery of Bacula itself. Basically, most of the release will be
> installed into /opt/bacula except for the few system files that must be
> placed in certain locations such as the start/stop scripts and the man
> text.
>
> One change is that we ask you to register to get access to the binaries.
> This is very similar to signing up for the email lists. We have always
> been interested in who is using Bacula, and provided you supply correct
> information, this registration will help. You will be asked a few simple
> questions and also be given an opportunity to receive the Bacula
> Enterprise Newsletter. If you decline the newsletter, you will not be
> bothered. The advantage of getting the newsletter is you will be
> informed what is coming in the next Enterprise releases, which means
> that most of those features will follow into a subsequent community
> release.
>
> To register and get access to Bacula pre-built binaries please go to
> www.bacula.org and on the main menu bar select Downloads -> Bacula
> Binary Package Download, then fill out the registration.
>
> 3. Windows Binaries
> Since version 9.0.0, we have re-integrated the Windows File daemon
> source code, and built Windows Binaries packages.  They can be found in
> www.bacula.org -> Downloads -> Binary Download Center. Version 9.0.8
> binaries will be uploaded shortly.
>
> 4. Next Bacula Version
> We have begun working on the next version of Bacula. It may be released
> as version 9.2.0 or possibly 11.0.0. The major part of this new release
> consists of backporting more Bacula Enterprise features -- for example,
> getting the tray-monitor to build correctly as well as many performance
> improvements.
>
> Thanks for using Bacula — be happy.
>
> Kern
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Bacula-devel mailing list
> bacula-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
--
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] bad response to job command

2018-05-23 Thread Wanderlei Huttel
Hello Ian

Can you inform the version of all daemons (bacula-dir, bacula-sd and
bacula-fd) ? bacula-dir and bacula-sd always must be in the same version,
and bacula-fd never can't be in a higher version o bacula-dir

Is interesting include heartbeat interval in all bacula configuration, like
below:

Heartbeat Interval = time interval
To enable this option, you must include an option above in the previous
resources:

--
File bacula-dir.conf (servidor)
Director{
   ...
   Heartbeat Interval = 300 seconds
   ...
}

Storage{
   ...
   Heartbeat Interval = 300 seconds
   ...
}

Client{
   ...
   Heartbeat Interval = 300 seconds
   ...
}

File bacula-sd.conf (servidor)
Storage{
   ...
   Heartbeat Interval = 300 seconds
   ...
}

File bacula-fd.conf (cliente)
FileDaemon{
   ...
   Heartbeat Interval = 300 seconds
   ...
}
--


Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-05-23 9:16 GMT-03:00 Ian Douglas :

> hi
>
> Google won't tell me the answer so I need to ask the experts...
>
> Looks like my Bacula on this box (director, fd, and database via Postgres)
> updated.
>
> Now I get errors like this:
>
> 23-May 14:09 trooper-dir JobId 18205: Start Backup JobId 18205,
> Job=BackupCatalog.2018-05-23_14.09.13_08
>
> 23-May 14:09 trooper-dir JobId 18205: Fatal error:  to
> Job command: Connection reset by peer
>
> 23-May 14:09 trooper-dir JobId 18205: Error: Bacula trooper-dir 9.0.6
> (20Nov17):
>
> So which peer is resetting the command? The storage director? I have tried
> rebooting that server. It's still on an older version of Bacula, running
> Centos.
>
> Any ideas gratefully received, thanks.
>
> Cheers, Ian
> --
> i...@zti.co.za http://www.zti.co.za
> Zero 2 Infinity - The net.works
> Phone +27-21-975-7273
>
>
>
> 
> --
> 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
>
--
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] Missing jsons

2018-05-18 Thread Wanderlei Huttel
Hello Chris

This version is too old. Please uninstall and install the current version
(9.0.7) by compiling.
http://bacula.us/compilation/

Enviado de Motorola Moto X2

Wanderlei Hüttel

Em sex, 18 de mai de 2018 04:09, Chris Wilkinson <winstonia...@gmail.com>
escreveu:

> 5.2.6.
>
> I installed from the Debian wheezy repo.
>
> Best
> Chris
>
>
> On Thu, 17 May 2018, 11:41 p.m. Wanderlei Huttel, <
> wanderleihut...@gmail.com> wrote:
>
>> Hello Chris
>>
>> What version of bacula are you using?
>>
>> Enviado de Motorola Moto X2
>>
>> Wanderlei Hüttel
>>
>> Em qui, 17 de mai de 2018 17:07, Chris Wilkinson <winstonia...@gmail.com>
>> escreveu:
>>
>>> I have installed Bacula and Baculum on Debian wheezy but seem to be
>>> missing the jsons (/usr/sbin/bsdjson etc.). Consequently Baculum complains
>>> during config that they are not found.
>>>
>>> I must have messed up an install. Could anyone tell me how these get
>>> installed?
>>>
>>> Best
>>>
>>> Chris
>>>
>>> --
>>> 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
>>>
>>
--
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] Missing jsons

2018-05-17 Thread Wanderlei Huttel
Hello Chris

What version of bacula are you using?

Enviado de Motorola Moto X2

Wanderlei Hüttel

Em qui, 17 de mai de 2018 17:07, Chris Wilkinson 
escreveu:

> I have installed Bacula and Baculum on Debian wheezy but seem to be
> missing the jsons (/usr/sbin/bsdjson etc.). Consequently Baculum complains
> during config that they are not found.
>
> I must have messed up an install. Could anyone tell me how these get
> installed?
>
> Best
>
> Chris
>
> --
> 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
>
--
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] [Bacula-devel] New Bacula web site

2018-05-07 Thread Wanderlei Huttel
Hello

What a great job!.

I've found some things that need to be fixed!

- The binary download center doesn't contain the new windows binaries 9.0.7
http://new.bacula.org/binary-download-center/

- The source download center doesn't contain the sources from the last
release 9.0.7
http://new.bacula.org/source-download-center/


Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-05-07 2:07 GMT-03:00 Kern Sibbald :

> Hello,
>
> Some of you may be interested to take a preview of the new Bacula.org web
> site.  Of course, you are also encouraged to make comments and suggestions
> before it goes live.  Type the following into your browser's URL:
>
> new.bacula.org
>
> No https at the moment.
>
> FYI: Bacula Systems sponsored this new web site to help bring the project
> web site up to current "standards".
>
> Looking forward to hearing from you.
>
> Best regards,
>
> Kern
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Bacula-devel mailing list
> bacula-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
--
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] Bacula cannot create new Jobs - incorrect Datetime value

2018-05-03 Thread Wanderlei Huttel
Hello Peter

This is a problem of MySQL 5.7.
There was another question on the list a few days ago with a solution.

Take a look in this link
https://github.com/wanderleihuttel/bacula-utils/blob/master/dicas/mysql_sql-mode.md

Enviado de Motorola Moto X2

Wanderlei Hüttel


Em qui, 3 de mai de 2018 04:57, Peter Grupe <
grup...@iup.physik.uni-bremen.de> escreveu:

> Since a few days Bacula isn't able to create new jobs.
>
> I got this error:
>
> 25-Apr 23:15 ftirtaper-dir JobId 0: Fatal error: sql_create.c:90 Create
> DB Job record INSERT INTO Job
> (Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment)
> VALUES
> ('Ftirrd02_2-Backup.2018-04-25_23.15.00_53','Ftirrd02_2-Backup','B','F','C','2018-04-25
>
> 23:15:00',1524690900,3,'') failed. ERR=Incorrect datetime value:
> '-00-00 00:00:00' for column 'StartTime' at row 1
>
> I run Bacula 7.0.5 with MySQL 5.7.22 on Ubuntu Server 16.04.4 LTS.
>
> I tried to create a table job in a test database with this command from
> make_mysql_tables
>
> CREATE TABLE Job (
> JobId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
> Job TINYBLOB NOT NULL,
> Name TINYBLOB NOT NULL,
> Type BINARY(1) NOT NULL,
> Level BINARY(1) NOT NULL,
> ClientId INTEGER DEFAULT 0 REFERENCES Client,
> JobStatus BINARY(1) NOT NULL,
> SchedTime DATETIME DEFAULT 0,
> StartTime DATETIME DEFAULT 0,
> EndTime DATETIME DEFAULT 0,
> RealEndTime DATETIME DEFAULT 0,
> JobTDate BIGINT UNSIGNED DEFAULT 0,
> VolSessionId INTEGER UNSIGNED DEFAULT 0,
> VolSessionTime INTEGER UNSIGNED DEFAULT 0,
> JobFiles INTEGER UNSIGNED DEFAULT 0,
> JobBytes BIGINT UNSIGNED DEFAULT 0,
> ReadBytes BIGINT UNSIGNED DEFAULT 0,
> JobErrors INTEGER UNSIGNED DEFAULT 0,
> JobMissingFiles INTEGER UNSIGNED DEFAULT 0,
> PoolId INTEGER UNSIGNED DEFAULT 0 REFERENCES Pool,
> FileSetId INTEGER UNSIGNED DEFAULT 0 REFERENCES FileSet,
> PriorJobId INTEGER UNSIGNED DEFAULT 0 REFERENCES Job,
> PurgedFiles TINYINT DEFAULT 0,
> HasBase TINYINT DEFAULT 0,
> HasCache TINYINT DEFAULT 0,
> Reviewed TINYINT DEFAULT 0,
> Comment BLOB,
> PRIMARY KEY(JobId),
> INDEX (Name(128))
> );
>
> It doesn't work. An error occurs:
>
> ERROR 1067 (42000): Invalid default value for 'SchedTime'
>
> When I alter the default value of ShedTime to '1970-01-01 00:00:00' this
> entry works but the error occurs with the next DATETIME entry StartTime.
>
> Could you please help me to overcome this error in Bacula.
>
> Many thanks in advance for your help.
>
> Bye, Peter Grupe
>
> --
> Peter Grupe
> Universität Bremen
> Institut für Fernerkundung
> Otto-Hahn-Alle 1, NW1, U3240
> D-28359 Bremen
>
>
>
> --
> 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
>
--
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] [Bacula-devel] Release version 9.0.7 of Bacula

2018-04-19 Thread Wanderlei Huttel
Hello Kern

Thanks for release again Windows Binaries for community! This is a great
news!

I've made some tests in Windows Server 2012 / Windows 10 and I noticed that
the installation is keeping some installation files in the folder "working"
and doesn't include a password in bacula-fd.conf and is not saving the
template Client.conf

And another test that I've realized is that I've already had a Full Backup
on Friday 13th, and Differential in Monday 16th, Tuesday 17th, and
yesterday Wednesday 18th, after I've upgraded Bacula Binaries Windows to
version 9.0.7 it looks the the mode accurate=yes (accurate= pins5) doesn't
work, because my entire backup had about 40GB and bacula copied everything
again.



-
PS C:\Program Files\Bacula\working> Get-ChildItem
Diretório: C:\Program Files\Bacula\working

ModeLastWriteTime Length Name
- -- 
-a   19/04/2018 11:02   1183 bacula-fd.conf.in
-a   19/04/2018 11:02   1199 bacula-fd.conf.in.bak
-a   19/04/2018 11:02295 bconsole.conf.in
-a   19/04/2018 11:02293 bconsole.conf.in.bak
-a   17/04/2018 13:59463 client.conf.in
-a   19/04/2018 11:02874 config.sed
-a   18/04/2018 05:342766728 libeay32.dll
-a   18/04/2018 05:34 904176 openssl.exe
-a   18/04/2018 05:34 740228 sed.exe
-a   18/04/2018 05:34 598795 ssleay32.dll
-a   19/04/2018 11:03159 WriteTemplates.ini
-




-

bacula-fd.conf
#
# Default  Bacula File Daemon Configuration file
#
# Copyright (C) 2000-2018 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
#  For Bacula release 9.0.7 (04/18/18) -- Windows MinGW64
#
# There is not much to change here except perhaps the
# File daemon Name
#

#
# "Global" File daemon configuration specifications
#
FileDaemon {# this is me
  Name = wanderlei-fd
  FDport = 9102# where we listen for the director
  WorkingDirectory = "C:\\Program Files\\Bacula\\working"
  Pid Directory = "C:\\Program Files\\Bacula\\working"
  Plugin Directory = "C:\\Program Files\\Bacula\\plugins"
  Maximum Concurrent Jobs = 10
}

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = bacula-dir
  Password = ""# Director must know this password
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = wanderlei-mon
  Password = ""
  Monitor = yes
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = bacula-dir = all, !skipped, !restored
}

-


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-04-19 10:30 GMT-03:00 Kern Sibbald :

> Hello,
>
> I am sorry, but my previous communication on this had a typo in the
> subject line, and a rogue paragraph that came from release 9.0.6, which
> simply caused confusion.  This is a re-done version of the prior
> announcement.
>
> We are pleased to announce the release of version 9.0.7 of Bacula, in
> particular new community Windows binaries.
> This is a significant release because it now has the Windows source code
> reintegrated and updated to work with this version.  Other than Baculum
> updates and the new Windows community implementation, there is no
> significant change from the prior release (9.0.6).
>
> If you wish to use the Windows 9.0.7 File daemon binaries with your
> existing 9.0.x Bacula Director and Storage daemon it should work fine but
> has not been tested.
>
> The 64 bit version of the Windows binaries has been installed and very
> quickly tested, as a consequence, please test it carefully before putting
> into production.  There seem to be some minor installation errors that are
> probably related to .conf files.  Also the Windows binaries do not yet
> contain the tray-monitor or the old Exchange plug.  Both currently fail to
> build.
>
> 18Apr18
>  - Remove NSIS debug
>  - baculum: Fix opening configuration tabs bug reported by Heitor Faria
>  - Restore win32 dir from Branch-5.2 and update it
>  - Add Phil Stracchino's fix for Qt5
>  - baculum: Fix saving boolean values in schedule Run directive
>  - rpm: Add Fedora26-64 platform
>  - baculum: Add link to go back from job configuration window
>  - Use correct SQL table encoding for Postgresql 10.x
>  - baculum: Add listbox control and use it for base and device directives
>  - baculum: Fix showing verify job fields in job run configuration window
>  - 

[Bacula-users] Bacula Windows Client 7.4.4 unavailable to download

2018-04-16 Thread Wanderlei Huttel
Hello Kern

Can you check why the Windows Clients 7.4.4 are unavailable in
www.bacula.org?


Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br
--
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] Can't find bacula.sql?

2018-04-03 Thread Wanderlei Huttel
Hello Thomas

You will not see any bacula.sql, because the script use "$args{db_name}.sql"


Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-04-03 12:42 GMT-03:00 Tom Plancon <tplan...@bkaarchs.com>:

> Wanderlei,
>
> Thank you for the instructions! The paths were different. I set the path
> in the catalog "fileset" to match the script.
>
> However, when I ran "make_catalog_backup.pl", I didn't see a "bacula.sql"
> file in the script's wd, should I have?
> Thomas Plancon
> CAD/IT MANAGER
>
> E:  tplan...@bkaarchs.com
> W: www.bkaarchitects.com <http://www.bkaarchs.com>
>
> [image: BKA/LOGO]
> On 4/2/2018 10:33 AM, Wanderlei Huttel wrote:
>
> Hello Thomas
>
> Go to folder where the script " make_catalog_backup.pl " generate the
> backup and execute the following command:
> cat make_catalog_backup.pl | grep "my \$wd
>
> Verify if the path of the script is the same of CatalogBackup FileSet.
>
> Best Regards
>
> *Wanderlei Hüttel*
> http://www.huttel.com.br
>
> 2018-04-02 10:43 GMT-03:00 Tom Plancon <tplan...@bkaarchs.com>:
>
>> Hi All,
>>
>> I keep getting an error on my jobs:
>>
>>  "Could not stat "/var/spool/bacula/bacula.sql": ERR=No such file or 
>> directory"
>>
>> The jobs do complete, but I'm not sure what "Bacula.sql" is supposed to be 
>> doing and so what may be missing from my backups.
>> This is a recent Bacula 7.4.7 setup installed from source from Bacula.org. A 
>> search of the appropriate installation folders does not find any bacula.sql.
>>
>> Any information here is greatly appreciated! Thanks!
>>
>> --
>> Thomas Plancon
>> CAD/IT MANAGER
>>
>> E:  tplan...@bkaarchs.com
>> W: www.bkaarchitects.com <http://www.bkaarchs.com>
>>
>> [image: BKA/LOGO]
>>
>> 
>> --
>> 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
>>
>>
>
>
--
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] Can't find bacula.sql?

2018-04-02 Thread Wanderlei Huttel
Hello Thomas

Go to folder where the script " make_catalog_backup.pl " generate the
backup and execute the following command:
cat make_catalog_backup.pl | grep "my \$wd

Verify if the path of the script is the same of CatalogBackup FileSet.

Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-04-02 10:43 GMT-03:00 Tom Plancon :

> Hi All,
>
> I keep getting an error on my jobs:
>
>  "Could not stat "/var/spool/bacula/bacula.sql": ERR=No such file or 
> directory"
>
> The jobs do complete, but I'm not sure what "Bacula.sql" is supposed to be 
> doing and so what may be missing from my backups.
> This is a recent Bacula 7.4.7 setup installed from source from Bacula.org. A 
> search of the appropriate installation folders does not find any bacula.sql.
>
> Any information here is greatly appreciated! Thanks!
>
> --
> Thomas Plancon
> CAD/IT MANAGER
>
> E:  tplan...@bkaarchs.com
> W: www.bkaarchitects.com 
>
> [image: BKA/LOGO]
>
> 
> --
> 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
>
>
--
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] Windows server restore problem

2018-03-14 Thread Wanderlei Huttel
Hello Shawn

It's been probably that the files are hidden. Try to give the correct
permissions to this folder, or try to remove "c:\tmp\bacula-restores" and
do another restore.

Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-03-14 14:11 GMT-03:00 Shawn Rappaport :

> I’m running into a strange issue when trying to restore files to Windows
> clients running version 7.4.4 (the Director and Storage Daemons are running
> 9.0.6). I have 34 Windows clients, running a mix of Windows 2008 R2 and
> 2012 R2. All of them appear to be backing up just fine. However, when I did
> test restores on all of the servers, 17 of them were unsuccessful. This is
> what I mean by “unsuccessful”: The c:\tmp\bacula-restores folder gets
> created on the restore client but none of the files I selected for restore
> appear in the folder, i.e., it’s empty. However, according to the logs, the
> restore was successful. Example:
>
>   Job:RestoreFiles.2018-03-13_16.22.11_07
>
>   Restore Client: redhulk-px-fd
>
>   Start time: 13-Mar-2018 16:22:12
>
>   End time:   13-Mar-2018 16:22:45
>
>   Files Expected: 699
>
>   Files Restored: 699
>
>   Bytes Restored: 138,483,263
>
>   Rate:   4196.5 KB/s
>
>   FD Errors:  0
>
>   FD termination status:  OK
>
>   SD termination status:  OK
>
>   Termination:Restore OK
>
>
>
> I’m seeing this behavior with both 2008 R2 and 2012 R2 so the issue
> doesn’t appear to be isolated to OS version.
>
>
>
> This is the relevant information from the log for the last Full backup of
> the redhulk-px-fd client that I’m trying to restore files to in the
> example above:
>
>   FD Files Written:   289,986
>
>   SD Files Written:   289,986
>
>   FD Bytes Written:   1,047,957,634,385 (1.047 TB)
>
>   SD Bytes Written:   1,048,025,091,180 (1.048 TB)
>
>  …
>
>   Non-fatal FD errors:0
>
>   SD Errors:  0
>
>   FD termination status:  OK
>
>   SD termination status:  OK
>
>   Termination:Backup OK
>
>
>
> Has anyone seen this problem before or know how to go about
> troubleshooting it?
>
>
>
> --Shawn
>
>
>
> PS: FWIW, I just finished testing restores of 20 Linux clients and all
> were successful.
>
> 
> --
> 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
>
>
--
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] Run Job Script not Replacing %f Character Substitution

2018-03-13 Thread Wanderlei Huttel
Hello Heitor

I guess the option "%f" only work in the director side, It must be only on
RunBeforeJob or RunAfterJob.

Before submitting the specified command to the operating system, Bacula
performs character substitution of the following characters:

%% = %
%b = Job Bytes
%c = Client's name
%C = If the job is a Cloned job (Only on director side)
%d = Daemon's name (Such as host-dir or host-fd)
%D = Director's name (Also valid on file daemon)
%e = Job Exit Status
%f = Job FileSet (Only on director side)
%F = Job Files
%h = Client address
%i = JobId
%j = Unique Job id
%l = Job Level
%n = Job name
%p = Pool name (Only on director side)
%P = Current PID
%s = Since time
%t = Job type (Backup, ...)
%v = Volume name (Only on director side)
%w = Storage name (Only on director side)
%x = Spooling enabled? ("yes" or "no")



Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-03-12 21:10 GMT-03:00 Heitor Faria :

>
>
> >> Hello, Bill,
> >>
> >> Just FIY, I'm using Bacula 9.0.3.
> >>
> >> Regards,
> >
> > Hi Heitor,
> >
> > Do you think this could be considered a bug?   I mean, what if you
> actually
> > wanted to run this script on the client and pass the Fileset to get some
> task
> > done?
> >
> > Can you try it in a RunScript{} stanza with RunsOnClient=yes (the
> default if
> > not specified)
> >
> > Would be interesting to know the result.
>
> RunScript{
>   RunsOnClient=yes
>   RunsWhen = After
>   Command = "/etc/bacula/scripts/monit.sh %i %c %f %n %b %e"
> }
>
> Returns:
>
> 12-mar 21:09 hfaria-asus-i5-fd JobId 141: shell command: run
> ClientAfterJob "/etc/bacula/scripts/monit.sh 141 hfaria-asus-i5-fd %f
> BackupClient1 0 OK"
>
> > Best regards,
>
> Regards,
>
> > Bill
> >
> >
> > --
> > Bill Arlofski
> > http://www.revpol.com/bacula
> > -- Not responsible for anything below this line --
>
> --
> 
> ===
> Heitor Medrado de Faria | CEO Bacula do Brasil & USA | Visto EB-1 |
> LPIC-III | EMC 05-001 | ITIL-F
> • Não seja tarifado pelo tamanho dos seus backups, conheça o Bacula
> Enterprise http://www.bacula.com.br/enterprise/
> • Ministro treinamento e implementação in-company do Bacula Community
> http://www.bacula.com.br/in-company/
> • Compre o novo livro do Bacula http://www.bacula.com.br/livro
> Brazil +55 (61) 98268-4220 | USA +1 (323) 300-5387 | www.bacula.com.br
> 
> 
> Indicamos as capacitações complementares:
> Shell básico e Programação em Shell com Julio Neves | Zabbix com Adail
> Host.
> 
> 
>
> 
> --
> 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
>
--
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] Backup of large volumes never completes - keeps restarting

2018-02-23 Thread Wanderlei Huttel
Hello Fouri

Please, inform your Bacula version?

Atenciosamente

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-02-23 5:32 GMT-03:00 Fourie Joubert :

> Hi Folks
>
> I know similar topics have been addressed before in many posts, but none
> of them provide me with a workable solution…
>
> - We are backing up fairly large volumes: 250TB up to 1.5 PB over 40Gbps
> Infiniband
> - Bacula backups up to a target PB-scale ZFS pool
> - The volumes created are each 100GB in size
>
> We are having trouble getting the first full backups to finish
> successfully in one job (due to various IT issues that we do not have
> control over).
>
> The result is that although the backups are configured as incrementals,
> there is never a successful full backup in a single job, and the next job
> starts backing up everything all over again. This happens over and over so
> we never get a backup of all the content and we fill up our ZFS backup
> target pool with all the uncompleted attempts.
>
> Is there a way to prevent this, so that despite a backup job being flagged
> as unsuccessfully terminated, the next session will be forced to only be
> incremental?
>
> Any advice would be sincerely appreciated!
>
> Best regards,
>
> Fourie
>
>
>
> This message and attachments are subject to a disclaimer.
> Please refer to http://upnet.up.ac.za/services/it/documentation/docs/
> 004167.pdf for full details.
>
> 
> --
> 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
>
>
--
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


  1   2   3   >