Re: [Bacula-users] Bacula + MS SQLServer + Shadow Copy

2015-08-11 Thread E.L.L. Assoua

Dear Gilberto,

Place the following option in your FileSet configuration:

Enable VSS = yes

This option will allow Bacula to backup open files.
Use this option only when you are trying to backup Windows machine with 
a OS not prior to Windows XP.


Quoting the Bacula Main Reference - 09112014:

Technically Bacula creates a shadow copy as soon as the backup process 
starts. It does then backup all files from the shadow copy and destroys 
the shadow copy after the backup process.


In short:

- Bacula will start the VSS service on you Windows Server to create a 
backup.

- After the backup is done, Bacula will stop the VSS service.



Here is an example of a FileSet with VSS enabled:

FileSet {
 Name = Windows FileSet
Enable VSS = yes
 Include {
Options {
  signature = MD5
  compression = GZIP
  }
File = C:/
  }
 Exclude {
File = C:/pagefile.sys
File = C:/hiberfil.sys
  }

}


Best regards,

Luc Assoua.


Gilberto Nunes mailto:gilberto.nune...@gmail.com
Friday, August 7, 2015 2:03 PMvia Postbox 
https://www.postbox-inc.com/?utm_source=emailutm_medium=sumlinkutm_campaign=reach

Hello friends...

Is there anybody here know something about make backup with bacula in 
a MS Windows with SQL Server??

I try it, but I get error that Shadow Copy is not active!
So I ask because I am afraid that active Shadow Copy will interfere 
with SQL Server in same way...


I hope that I am clear about this issue!

Thanks for any kind of help.

Best regards

--

Gilberto Ferreira
+55 (47) 9676-7530
Skype: gilberto.nunes36

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


--
Sent from Postbox 
https://www.postbox-inc.com/?utm_source=emailutm_medium=siglinkutm_campaign=reach
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Ana Emília M . Arruda
Hello Michael,

​From your first post, the header of the email shows a 6:00 AM time, not
the 11:00 AM. Are your sure they are the same e-mails? Is there any other
e-mail in bac...@example.com mailbox that arrived at 11:00 AM?

-- Forwarded message --
From: Bacula backup@
​example​
.com
Date: Sun, Aug 9, 2015 at 6:00 AM
Subject: Bacula daemon message
To: it@
​example.com

​Best regards,
Ana​


Looking carefully your first post, the e-mail sent with the authentication
error took place at 6 am and not 11 am. This log register do not seems to
be the log for your error message. Instead it seems to be an e-mail sent by
bacula after restarting.
Em ter, 11 de ago de 2015 às 15:21, Michael Schwager 
mschwa...@mochotrading.com escreveu:

 On Tue, Aug 11, 2015 at 8:49 AM, Martin Simmons mar...@lispworks.com
 wrote:


 Looks like a bug to me (I've just created
 http://bugs.bacula.org/view.php?id=2159).


 ​Thanks. I have contributed to your bug report.


 *- Mike Schwager​ (aka, The Most Greyish of Gnomes)​*

 *  Linux Network Engineer, Mocho Trading LLC*
 *  312-646-4783 312-646-4783 Phone312-637-0011 312-637-0011
 Cell312-957-9804 312-957-9804 Fax*


 This message is for the named person(s) use only. It may contain
 confidential proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and notify the
 sender. You must not, directly or indirectly use, disclose, distribute,
 print, or copy any part of this message if you are not the intended
 recipient. Mocho Trading LLC reserves the right to monitor all e-mail
 communications through its networks. Any views expressed in this message
 are those of the individual sender, except where the message states
 otherwise and the sender is authorized to state them to be the views of any
 such
 entity.--
 ___
 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 + MS SQLServer + Shadow Copy

2015-08-11 Thread Gilberto Nunes
Hello guys
I am very sorry!
It was my mistake... I had installed 32 bits version with Windows 64 bits!

Sorry for the mess!

Thanks

2015-08-11 18:06 GMT-03:00 E.L.L. Assoua ellass...@gmail.com:

 Dear Gilberto,

 Place the following option in your FileSet configuration:

 Enable VSS = yes

 This option will allow Bacula to backup open files.
 Use this option only when you are trying to backup Windows machine with a
 OS not prior to Windows XP.

 Quoting the Bacula Main Reference - 09112014:

 Technically Bacula creates a shadow copy as soon as the backup process
 starts. It does then backup all files from the shadow copy and destroys the
 shadow copy after the backup process.

 In short:

 - Bacula will start the VSS service on you Windows Server to create a
 backup.
 - After the backup is done, Bacula will stop the VSS service.


 

 Here is an example of a FileSet with VSS enabled:

 FileSet {
  Name = Windows FileSet
  Enable VSS = yes
  Include {
 Options {
   signature = MD5
   compression = GZIP
   }
 File = C:/
   }
  Exclude {
 File = C:/pagefile.sys
 File = C:/hiberfil.sys
   }

 }


 Best regards,

 Luc Assoua.

 Gilberto Nunes gilberto.nune...@gmail.com
 Friday, August 7, 2015 2:03 PM via Postbox
 https://www.postbox-inc.com/?utm_source=emailutm_medium=sumlinkutm_campaign=reach
 Hello friends...

 Is there anybody here know something about make backup with bacula in a MS
 Windows with SQL Server??
 I try it, but I get error that Shadow Copy is not active!
 So I ask because I am afraid that active Shadow Copy will interfere with
 SQL Server in same way...

 I hope that I am clear about this issue!

 Thanks for any kind of help.

 Best regards

 --

 Gilberto Ferreira
 +55 (47) 9676-7530
 Skype: gilberto.nunes36


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


 --
 Sent from Postbox
 https://www.postbox-inc.com/?utm_source=emailutm_medium=siglinkutm_campaign=reach




-- 

Gilberto Ferreira
+55 (47) 9676-7530
Skype: gilberto.nunes36
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula-fd cannot access files from the system still getting [permission denied]

2015-08-11 Thread Jing Yang
Hi,
  I have been searching around a lot about “permission denied” errors, 
however, none of them matches my case. I am keeping getting Permission denied 
error on bacula-fd daemon. In the manual, it says that run the file system 
daemon as root. I am assuming it means the following,
-rw-r- 1 root   bacula 1012 Mar  6  2013 bacula-fd.conf”
However, it seems not working at all. In addition, I keep other configuration 
files with user as bacula and group as bacula. Is this the correct? How can I 
check whether the daemon is running as root user or some others? What does the 
manual mean by “run file system daemon as root”? 

Thanks,
Jing



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


Re: [Bacula-users] bacula-fd cannot access files from the system still getting [permission denied]

2015-08-11 Thread Josip Deanovic
On Tuesday 2015-08-11 02:40:01 Jing Yang wrote:
 Hi,
   I have been searching around a lot about “permission denied”
 errors, however, none of them matches my case. I am keeping getting
 Permission denied error on bacula-fd daemon. In the manual, it says
 that run the file system daemon as root. I am assuming it means the
 following, -rw-r- 1 root   bacula 1012 Mar  6  2013
 bacula-fd.conf”
 However, it seems not working at all. In addition, I keep other
 configuration files with user as bacula and group as bacula. Is this
 the correct? How can I check whether the daemon is running as root user
 or some others? What does the manual mean by “run file system daemon as
 root”?
 
 Thanks,
 Jing


It means that the bacula-fd process should be owned by root.
You can check that with ps command, e.g. ps aux | grep bacula-fd

It might be a good idea to get to know how unix works and get
familiarize with the basic and common unix/linux commands before
you continue playing with backup systems.

bacula-fd binary itself supports the option -u which is used to
specify the user bacula-fd should use.

You are probably going to use init script provided for easier
bacula-fd starting/stopping and looking into that init script might
give you an idea how to specify the user for the bacula-fd.

For example, on RHEL/Centos, bacula-fd init script would source the
file /etc/sysconfig/bacula-fd which contains variables used to define
the user for the bacula-fd daemon.

Almost certainly you want bacula-fd to run as root but this depends on
your specific needs. In any case you should ensure that bacula-fd
init script is executed by root (like any other init script on the
system).


-- 
Josip Deanovic

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


Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Andreas Nastke
hi,

check the mail-headers ('received-from' etc.) to find out
which servers were involved.


Michael Schwager schrieb:
 Hello,
 Yesterday (Sunday) I received an email from bacula-dir but I don't know
 why. It contains old authentication error messages from a week ago (see
 below) that I'd rectified on the 03 August later in the day. I don't know
 why I received this message now, and I'd like to prevent it from recurring.
 ...It makes my boss anxious. :-)
 
 The mail was sent at 11:00 UTC. There is no other job scheduled in
 bacula-dir or in cron that would take place at the time this email was
 sent. My maillog is consistent with that. I have verified that the mail
 came from bacula-dir
 
 I wonder if a start of the bacula director would send an email, but I just
 tried it and it did not send the email again (see the cron operations that
 are performed, below). Does bacula-dir send error messages that are = 1
 week old, upon startup?
 
 At 11:00 UTC my system performs the following from cron, in order to
 perform a binary backup:
 ​systemctl stop bacula-dir
 ​systemctl stop bacula-sd
 ​systemctl stop bacula-fd​
 systemctl stop mysqld
 ​(copy database dir)
 ​systemctl start mysqld
 systemctl start bacula-fd
 ​systemctl stop bacula-sd
 ​systemctl stop bacula-dir
 
 ​Thanks for any help.
 
 
 *- Mike Schwager*
 
 *  Linux Network Engineer, Mocho Trading LLC*
 *  312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax*
 
 
 -- Forwarded message --
 From: Bacula backup@
 ​example​
 .com
 Date: Sun, Aug 9, 2015 at 6:00 AM
 Subject: Bacula daemon message
 To: it@
 ​example.com
 
 
 02-Aug 22:24 bacula-dir JobId 0: Fatal error: authenticate.c:114 Director
 unable to authenticate with Storage daemon at -backup-01.example.com:9103
 http://backup-01.example.com:9103. Possible causes:
 Passwords or names not the same or
 Maximum Concurrent Jobs exceeded on the SD or
 SD networking messed up (restart daemon).
 Please see
 http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION0026
 for help.
 03-Aug 02:38 bacula-dir JobId 0: Fatal error: authenticate.c:114 Director
 unable to authenticate with Storage daemon at 
 http://backup-01.example.com:9103;. Possible causes:
 Passwords or names not the same or
 Maximum Concurrent Jobs exceeded on the SD or
 SD networking messed up (restart daemon).
 Please see
 http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION0026
 for help.
 03-Aug 02:49 bacula-dir JobId 0: Fatal error: authenticate.c:114 Director
 unable to authenticate with Storage daemon at 
 http://backup-01.example.com:9103;. Possible causes:
 Passwords or names not the same or
 Maximum Concurrent Jobs exceeded on the SD or
 SD networking messed up (restart daemon).
 Please see
 http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION0026
 for help.
 
 
 
 
 
 --
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Mit besten Grüßen / Kind Regards

Andreas Nastke
IT System Management

g/d/p Markt- und Sozialforschung GmbH
Ein Unternehmen der Forschungsgruppe g/d/p
Richardstr. 18
D-22081 Hamburg
Fon: +49 (0)40 / 29876-117
Fax: +49 (0)40 / 29876-127
nas...@gdp-group.com
www.gdp-group.com

Sitz der Gesellschaft ist Hamburg, Handelsregister Hamburg, HRB 40482
Geschäftsführer: Christa Braaß, Volker Rohweder

---
This e-mail may contain confidential and/or privileged information.  If
you are not the intended recipient please notify the sender and  delete
this e-mail from your whole system. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.
---

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


[Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Andrey Tataranovich
Hello all,

I'm using bacula 5.2.6 to backup several servers to HDD storage.
Recently I tried to restore a backup job which is about a week old and
encounter problem:

Error: block.c:318 Volume data error at 2:1331430350!
Block checksum mismatch in block=153792 len=64512: calc=782b2290
blk=5201271d

What can I use on regular basis to ensure that bacula still can read
volume? Unfortunately verify job checks only the last job but data
corruption could happen later.

Thanks in advance.

-- 
WBR, Andrey Tataranovich

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


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Heitor Faria
Error: block.c:318 Volume data error at 2:1331430350!
Block checksum mismatch in block=153792 len=64512: calc=782b2290
blk=5201271d

Those are not filesystem errors but lack of sync between what Bacula Catalog 
expects and the actual file volumes.
You could run a preventive bscan to fix that, but I think it's much better to 
deal with the root cause of this, that would be abruptly terminating backup 
jobs (e.g.: restart daemons with jobs running on it, power shortage etc.).
You should check Bacula logs to figure it out.

Regards,
=== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Treinamento Telepresencial Bacula Início 5 de agosto: 
http://www.bacula.com.br/?p=2174 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 


- Original Message -
 From: Andrey Tataranovich tataranov...@gmail.com
 To: bacula-users@lists.sourceforge.net
 Sent: Tuesday, August 11, 2015 8:46:24 AM
 Subject: Re: [Bacula-users] Way to check ANY bacula volume on disk

 On Tue, 11 Aug 2015 07:05:14 -0400
 Josh Fisher jfis...@pvct.com wrote:
 
 Bacula volumes are just normal files. You could periodically check
 the filesystem with e2fsck or whatever tool is used for the
 filesystem you are using.
 
 I already tried to run fsck on bacula volume when error occured, but
 found no error. e2fsck checks only filesystem metadata consistency but
 not data. So errors inside volume files (uncorrectable bit errors as
 example) will be not found by this tool.
 
 --
 WBR, Andrey Tataranovich
 
 --
 ___
 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] Way to check ANY bacula volume on disk

2015-08-11 Thread Heitor Faria
 Hello Heitor,

 Sorry, but in this case, this is a checksum error (the checksum in the
 header of the block does not correspond to the checksum of the actual
 block data that was read) and not a number of EOF marks error. The EOF
 mismatch is basically a synchronization error between the volume and the
 catalog. However, in this case, it is most likely a disk corruption
 problem.
Yes. Sorry about that. I read the word mismatch and started to write. =P 

 Best regards,
 Kern

 On 11.08.2015 14:18, Heitor Faria wrote:
  Error: block.c:318 Volume data error at 2:1331430350!
  Block checksum mismatch in block=153792 len=64512: calc=782b2290
  blk=5201271d

 Those are not filesystem errors but lack of sync between what Bacula Catalog
  expects and the actual file volumes.
 You could run a preventive bscan to fix that, but I think it's much better to
 deal with the root cause of this, that would be abruptly terminating backup
  jobs (e.g.: restart daemons with jobs running on it, power shortage etc.).
  You should check Bacula logs to figure it out.

  Regards,
  ===
 Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified
  Administrator II
 Treinamento Telepresencial Bacula Início 5 de agosto:
  http://www.bacula.com.br/?p=2174
  61 8268-4220
  Site: www.bacula.com.br | Facebook: heitor.faria
  

  - Original Message -
  From: Andrey Tataranovich tataranov...@gmail.com
  To: bacula-users@lists.sourceforge.net
  Sent: Tuesday, August 11, 2015 8:46:24 AM
  Subject: Re: [Bacula-users] Way to check ANY bacula volume on disk
  On Tue, 11 Aug 2015 07:05:14 -0400
  Josh Fisher jfis...@pvct.com wrote:

  Bacula volumes are just normal files. You could periodically check
  the filesystem with e2fsck or whatever tool is used for the
  filesystem you are using.
  I already tried to run fsck on bacula volume when error occured, but
  found no error. e2fsck checks only filesystem metadata consistency but
  not data. So errors inside volume files (uncorrectable bit errors as
  example) will be not found by this tool.

  --
  WBR, Andrey Tataranovich

  --
  ___
  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] Way to check ANY bacula volume on disk

2015-08-11 Thread Josh Fisher


On 8/11/2015 6:43 AM, Andrey Tataranovich wrote:
 Hello all,

 I'm using bacula 5.2.6 to backup several servers to HDD storage.
 Recently I tried to restore a backup job which is about a week old and
 encounter problem:

 Error: block.c:318 Volume data error at 2:1331430350!
 Block checksum mismatch in block=153792 len=64512: calc=782b2290
 blk=5201271d

 What can I use on regular basis to ensure that bacula still can read
 volume? Unfortunately verify job checks only the last job but data
 corruption could happen later.

Bacula volumes are just normal files. You could periodically check the 
filesystem with e2fsck or whatever tool is used for the filesystem you 
are using.

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


Re: [Bacula-users] Specified slot ignored

2015-08-11 Thread Iban Cabrillo
Hi,
  One think more..I see these jobs running on catalog 1 (the default
catalog=MyCatalog) and not in 2

*use catalog=Preservation
Using Catalog Preservation
Using Catalog name=Preservation DB=bacula_longterm


  326 | Cab47   | 2015-06-13 01:07:55 | B| I | 0
| 0 | T |
|   327 | Cab48   | 2015-06-13 01:07:59 | B| I | 0
| 0 | T |
|   328 | Cab49   | 2015-06-13 01:08:01 | B| I | 0
| 0 | T |
|   329 | Cab50   | 2015-06-13 01:08:03 | B| I | 0
| 0 | T |
|   330 | CabSub  | 2015-06-13 01:08:05 | B| I |10,473 |
241,931,499,589 | T |



*use catalog=MyCatalog
Using Catalog MyCatalog
Using Catalog name=MyCatalog DB=bacula




| 17,107 | Cab21| 2015-08-11 10:45:57 | B| F
| 0 | 0 | f |
| 17,191 | CabSub   | 2015-08-11 11:20:51 | B| F
| 0 | 0 | R |
+++-+--+---+---+---+---+

How can i force to run in Catalog 2??

Cheers, I

2015-08-11 13:15 GMT+02:00 Iban Cabrillo cabri...@ifca.unican.es:

 Dear Bacula Admins,
   Since a couple of weeks I have some troubles trying to backup some files.

I have two catalogs one for sort cycled backups and other for long time
 backup. each one of them with their respective pools it has been working
 fine for year.

   but since a couple of weeks I can not make incremental backs for
 longtime catalog.
   The pool has appendable volumes:
 ...
   |  58 | B01036LV   | Full  |   1 | 1,338,922,180,608 |
 1,383 |  630,720,000 |   0 |   84 | 1 | LTO-5 | 2015-03-15
 07:05:15 |
 |  59 | B01037LV   | Full  |   1 | 1,420,738,785,280 |
 1,443 |  630,720,000 |   0 |   85 | 1 | LTO-5 | 2015-04-12
 03:52:47 |
 |  60 | B01038LV   | Append|   1 |   453,005,337,600 |
 495 |  630,720,000 |   0 |8 | 1 | LTO-5 | 2015-06-13
 07:37:21 |
 |  61 | B01039LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   87 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  62 | B01040LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   88 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  63 | B01041LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   89 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  64 | B01042LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   90 | 1 | LTO-5 | -00-00
 00:00:00 |

 +-++---+-+---+--+--+-+--+---+---+-+
 *

 Device status:
 Autochanger TSM3500 with devices:
ULT3580-TD3 (/dev/nst1)
ULT3580-TD5 (/dev/nst0)
 Device FileStorage (/data/Bacula/Default) is not open.
 Device ULT3580-TD3 (/dev/nst1) is not open.
 Drive 1 is not loaded.
 Device ULT3580-TD5 (/dev/nst0) is not open.
 Device is BLOCKED waiting to create a volume for:
Pool:Cabas
Media type:  LTO-5
 Drive 0 is not loaded.


 Even mounting the tape using mtx command and (*mount slot=8...) It does
 not work.

 Any idea?

 Regards, I
 --

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

 
 Bertrand Russell:
 *El problema con el mundo es que los estúpidos están seguros de todo y
 los inteligentes están llenos de dudas*




-- 

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

Bertrand Russell:
*El problema con el mundo es que los estúpidos están seguros de todo y los
inteligentes están llenos de dudas*
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Andrey Tataranovich
On Tue, 11 Aug 2015 08:40:30 -0400
Bill Arlofski waa-bac...@revpol.com wrote:

 As of v5.2.x, you have the ability to specify any jobid to be
 verified on the command line. From the v5.2.1 main.pdf manual:
 
 8
 New Features in 5.2.x
 3.6 Ability to Verify any specified Job
 
 You now have the ability to tell Bacula which Job should verify
 instead of automatically verify just the last one.
 
 This feature can be used with VolumeToCatalog, DiskToCatalog and
 Catalog level.
 
 To verify a given job, just specify the Job jobid in argument when
 starting the job.
 
 * run job=VerifyVolume jobid=1 level=VolumeToCatalog
 8
 
 So, if you really wanted to periodically check (a|any|random) Bacula
 file volume(s) you could easily script it by piping such a run
 command to bconsole with the required jobid.

Thanks a lot! I will try this solution. Seems I need to reread New
Features in bacula documentation.

-- 
WBR, Andrey Tataranovich

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


[Bacula-users] Specified slot ignored

2015-08-11 Thread Iban Cabrillo
Dear Bacula Admins,
  Since a couple of weeks I have some troubles trying to backup some files.

   I have two catalogs one for sort cycled backups and other for long time
backup. each one of them with their respective pools it has been working
fine for year.

  but since a couple of weeks I can not make incremental backs for longtime
catalog.
  The pool has appendable volumes:
...
  |  58 | B01036LV   | Full  |   1 | 1,338,922,180,608 |
1,383 |  630,720,000 |   0 |   84 | 1 | LTO-5 | 2015-03-15
07:05:15 |
|  59 | B01037LV   | Full  |   1 | 1,420,738,785,280 |1,443
|  630,720,000 |   0 |   85 | 1 | LTO-5 | 2015-04-12
03:52:47 |
|  60 | B01038LV   | Append|   1 |   453,005,337,600 |  495
|  630,720,000 |   0 |8 | 1 | LTO-5 | 2015-06-13
07:37:21 |
|  61 | B01039LV   | Append|   1 | 1,024 |0
|  630,720,000 |   0 |   87 | 1 | LTO-5 | -00-00
00:00:00 |
|  62 | B01040LV   | Append|   1 | 1,024 |0
|  630,720,000 |   0 |   88 | 1 | LTO-5 | -00-00
00:00:00 |
|  63 | B01041LV   | Append|   1 | 1,024 |0
|  630,720,000 |   0 |   89 | 1 | LTO-5 | -00-00
00:00:00 |
|  64 | B01042LV   | Append|   1 | 1,024 |0
|  630,720,000 |   0 |   90 | 1 | LTO-5 | -00-00
00:00:00 |
+-++---+-+---+--+--+-+--+---+---+-+
*

Device status:
Autochanger TSM3500 with devices:
   ULT3580-TD3 (/dev/nst1)
   ULT3580-TD5 (/dev/nst0)
Device FileStorage (/data/Bacula/Default) is not open.
Device ULT3580-TD3 (/dev/nst1) is not open.
Drive 1 is not loaded.
Device ULT3580-TD5 (/dev/nst0) is not open.
Device is BLOCKED waiting to create a volume for:
   Pool:Cabas
   Media type:  LTO-5
Drive 0 is not loaded.


Even mounting the tape using mtx command and (*mount slot=8...) It does not
work.

Any idea?

Regards, I
-- 

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

Bertrand Russell:
*El problema con el mundo es que los estúpidos están seguros de todo y los
inteligentes están llenos de dudas*
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd cannot access files from the system still getting [permission denied]

2015-08-11 Thread Heitor Faria
 Hi,
  I have been searching around a lot about “permission denied” errors, 
 however,
  none of them matches my case. I am keeping getting Permission denied 
 error on
  bacula-fd daemon. In the manual, it says that run the file system daemon 
 as
  root. I am assuming it means the following,
 -rw-r- 1 root   bacula 1012 Mar  6  2013 bacula-fd.conf”
 However, it seems not working at all. In addition, I keep other configuration
 files with user as bacula and group as bacula. Is this the correct? How can I
 check whether the daemon is running as root user or some others? What does the
 manual mean by “run file system daemon as root”?

Hello Jing: vi /etc/init.d/bacula-fd
...
NAME=bacula-fd
DESC=Bacula File Daemon
DAEMON=/usr/sbin/${NAME}
BUSER=
BGROUP=
BOPTIONS=-c /etc/bacula/${NAME}.conf
BPORT=9102
...
Regards,
===
Heitor Medrado de Faria - LPIC-III | ITIL-F |  Bacula Systems Certified 
Administrator II
Do you need Bacula training? 
https://www.udemy.com/bacula-backup-software/?couponCode=bacula-list
+55 61 8268-4220
Site: http://bacula.us FB: heitor.faria 
===


 
 Thanks,
 Jing
 
 
 
 --
 ___
 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] Way to check ANY bacula volume on disk

2015-08-11 Thread Bill Arlofski
On 08/11/2015 06:43 AM, Andrey Tataranovich wrote:
 Hello all,
 
 I'm using bacula 5.2.6 to backup several servers to HDD storage.
 Recently I tried to restore a backup job which is about a week old and
 encounter problem:
 
 Error: block.c:318 Volume data error at 2:1331430350!
 Block checksum mismatch in block=153792 len=64512: calc=782b2290
 blk=5201271d
 
 What can I use on regular basis to ensure that bacula still can read
 volume? Unfortunately verify job checks only the last job but data
 corruption could happen later.
 
 Thanks in advance.
 

Hi Andrey,

As of v5.2.x, you have the ability to specify any jobid to be verified on the
command line. From the v5.2.1 main.pdf manual:

8
New Features in 5.2.x
3.6 Ability to Verify any specified Job

You now have the ability to tell Bacula which Job should verify instead of
automatically verify just the last one.

This feature can be used with VolumeToCatalog, DiskToCatalog and Catalog level.

To verify a given job, just specify the Job jobid in argument when starting
the job.

* run job=VerifyVolume jobid=1 level=VolumeToCatalog
8

So, if you really wanted to periodically check (a|any|random) Bacula file
volume(s) you could easily script it by piping such a run command to bconsole
with the required jobid.

Hope this helps.

Bill


-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --

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


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Andrey Tataranovich
On Tue, 11 Aug 2015 07:05:14 -0400
Josh Fisher jfis...@pvct.com wrote:

 Bacula volumes are just normal files. You could periodically check
 the filesystem with e2fsck or whatever tool is used for the
 filesystem you are using.

I already tried to run fsck on bacula volume when error occured, but
found no error. e2fsck checks only filesystem metadata consistency but
not data. So errors inside volume files (uncorrectable bit errors as
example) will be not found by this tool.

-- 
WBR, Andrey Tataranovich

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


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Kern Sibbald
Hello Heitor,

Sorry, but in this case, this is a checksum error (the checksum in the
header of the block does not correspond to the checksum of the actual
block data that was read) and not a number of EOF marks error.  The EOF
mismatch is basically a synchronization error between the volume and the
catalog.  However, in this case, it is most likely a disk corruption
problem. 

Best regards,
Kern

On 11.08.2015 14:18, Heitor Faria wrote:
 Error: block.c:318 Volume data error at 2:1331430350!
 Block checksum mismatch in block=153792 len=64512: calc=782b2290
 blk=5201271d

 Those are not filesystem errors but lack of sync between what Bacula Catalog 
 expects and the actual file volumes.
 You could run a preventive bscan to fix that, but I think it's much better to 
 deal with the root cause of this, that would be abruptly terminating backup 
 jobs (e.g.: restart daemons with jobs running on it, power shortage etc.).
 You should check Bacula logs to figure it out.

 Regards,
 === 
 Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
 Administrator II 
 Treinamento Telepresencial Bacula Início 5 de agosto: 
 http://www.bacula.com.br/?p=2174 
 61 8268-4220 
 Site: www.bacula.com.br | Facebook: heitor.faria 
 

 - Original Message -
 From: Andrey Tataranovich tataranov...@gmail.com
 To: bacula-users@lists.sourceforge.net
 Sent: Tuesday, August 11, 2015 8:46:24 AM
 Subject: Re: [Bacula-users] Way to check ANY bacula volume on disk
 On Tue, 11 Aug 2015 07:05:14 -0400
 Josh Fisher jfis...@pvct.com wrote:

 Bacula volumes are just normal files. You could periodically check
 the filesystem with e2fsck or whatever tool is used for the
 filesystem you are using.
 I already tried to run fsck on bacula volume when error occured, but
 found no error. e2fsck checks only filesystem metadata consistency but
 not data. So errors inside volume files (uncorrectable bit errors as
 example) will be not found by this tool.

 --
 WBR, Andrey Tataranovich

 --
 ___
 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] Specified slot ignored

2015-08-11 Thread Iban Cabrillo
Hi,
  Solved,
  Sometime time ago I changed the client used to do the backup and it was
pointed out to the default catalog.

Cheers, I

2015-08-11 13:44 GMT+02:00 Iban Cabrillo cabri...@ifca.unican.es:

 Hi,
   One think more..I see these jobs running on catalog 1 (the default
 catalog=MyCatalog) and not in 2

 *use catalog=Preservation
 Using Catalog Preservation
 Using Catalog name=Preservation DB=bacula_longterm

 
   326 | Cab47   | 2015-06-13 01:07:55 | B| I | 0
 | 0 | T |
 |   327 | Cab48   | 2015-06-13 01:07:59 | B| I | 0
 | 0 | T |
 |   328 | Cab49   | 2015-06-13 01:08:01 | B| I | 0
 | 0 | T |
 |   329 | Cab50   | 2015-06-13 01:08:03 | B| I | 0
 | 0 | T |
 |   330 | CabSub  | 2015-06-13 01:08:05 | B| I |10,473 |
 241,931,499,589 | T |



 *use catalog=MyCatalog
 Using Catalog MyCatalog
 Using Catalog name=MyCatalog DB=bacula


 

 | 17,107 | Cab21| 2015-08-11 10:45:57 | B| F
 | 0 | 0 | f |
 | 17,191 | CabSub   | 2015-08-11 11:20:51 | B| F
 | 0 | 0 | R |

 +++-+--+---+---+---+---+

 How can i force to run in Catalog 2??

 Cheers, I

 2015-08-11 13:15 GMT+02:00 Iban Cabrillo cabri...@ifca.unican.es:

 Dear Bacula Admins,
   Since a couple of weeks I have some troubles trying to backup some
 files.

I have two catalogs one for sort cycled backups and other for long
 time backup. each one of them with their respective pools it has been
 working fine for year.

   but since a couple of weeks I can not make incremental backs for
 longtime catalog.
   The pool has appendable volumes:
 ...
   |  58 | B01036LV   | Full  |   1 | 1,338,922,180,608 |
 1,383 |  630,720,000 |   0 |   84 | 1 | LTO-5 | 2015-03-15
 07:05:15 |
 |  59 | B01037LV   | Full  |   1 | 1,420,738,785,280 |
 1,443 |  630,720,000 |   0 |   85 | 1 | LTO-5 | 2015-04-12
 03:52:47 |
 |  60 | B01038LV   | Append|   1 |   453,005,337,600 |
 495 |  630,720,000 |   0 |8 | 1 | LTO-5 | 2015-06-13
 07:37:21 |
 |  61 | B01039LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   87 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  62 | B01040LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   88 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  63 | B01041LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   89 | 1 | LTO-5 | -00-00
 00:00:00 |
 |  64 | B01042LV   | Append|   1 | 1,024 |
 0 |  630,720,000 |   0 |   90 | 1 | LTO-5 | -00-00
 00:00:00 |

 +-++---+-+---+--+--+-+--+---+---+-+
 *

 Device status:
 Autochanger TSM3500 with devices:
ULT3580-TD3 (/dev/nst1)
ULT3580-TD5 (/dev/nst0)
 Device FileStorage (/data/Bacula/Default) is not open.
 Device ULT3580-TD3 (/dev/nst1) is not open.
 Drive 1 is not loaded.
 Device ULT3580-TD5 (/dev/nst0) is not open.
 Device is BLOCKED waiting to create a volume for:
Pool:Cabas
Media type:  LTO-5
 Drive 0 is not loaded.


 Even mounting the tape using mtx command and (*mount slot=8...) It does
 not work.

 Any idea?

 Regards, I
 --

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

 
 Bertrand Russell:
 *El problema con el mundo es que los estúpidos están seguros de todo y
 los inteligentes están llenos de dudas*




 --

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

 
 Bertrand Russell:
 *El problema con el mundo es que los estúpidos están seguros de todo y
 los inteligentes están llenos de dudas*




-- 

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

Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Martin Simmons
 On Tue, 11 Aug 2015 13:43:52 +0300, Andrey Tataranovich said:
 
 Hello all,
 
 I'm using bacula 5.2.6 to backup several servers to HDD storage.
 Recently I tried to restore a backup job which is about a week old and
 encounter problem:
 
 Error: block.c:318 Volume data error at 2:1331430350!
 Block checksum mismatch in block=153792 len=64512: calc=782b2290
 blk=5201271d
 
 What can I use on regular basis to ensure that bacula still can read
 volume? Unfortunately verify job checks only the last job but data
 corruption could happen later.

You could use bls -j with the volume file to scan the whole volume.

I recomend use a more secure fileserver to store your backups (RAID, or ZFS).

__Martin

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


Re: [Bacula-users] copy jobs

2015-08-11 Thread Lukas Hejtmanek
On Tue, Aug 11, 2015 at 01:01:35AM -0300, Ana Emília M. Arruda wrote:
 Hello Lukas,
 
 I was wondering if this could be solved using cloned copy jobs :)

can you give me some pointers what are cloned copy jobs and how to setup them?

otherwise, correct solution is to have separated pools and copy complete pool? 

-- 
Lukáš Hejtmánek

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


Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Martin Simmons
 On Mon, 10 Aug 2015 09:01:43 -0500, Michael Schwager said:
 
 Hello,
 Yesterday (Sunday) I received an email from bacula-dir but I don't know
 why. It contains old authentication error messages from a week ago (see
 below) that I'd rectified on the 03 August later in the day. I don't know
 why I received this message now, and I'd like to prevent it from recurring.
 ...It makes my boss anxious. :-)
 
 The mail was sent at 11:00 UTC. There is no other job scheduled in
 bacula-dir or in cron that would take place at the time this email was
 sent. My maillog is consistent with that. I have verified that the mail
 came from bacula-dir

Looks like a bug to me (I've just created
http://bugs.bacula.org/view.php?id=2159).

__Martin

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


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Andrey Tataranovich
On Tue, 11 Aug 2015 15:47:40 +0100
Martin Simmons mar...@lispworks.com wrote:

 You could use bls -j with the volume file to scan the whole volume.
 
 I recomend use a more secure fileserver to store your backups (RAID,
 or ZFS).

This error has happened on mirror raid, so maybe only filesystems
like zfs/btrfs could solve such problem on system level. I do not
remember if raid5/6 protect from situation when disk read operation
return incorrect data without error.

-- 
WBR, Andrey Tataranovich

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


Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Michael Schwager
Thanks for the reply, Ana. But the mail *was* from Bacula. My
bacula-dir.conf looks like this:

Messages {
  Name = Daemon
  mailcommand = /usr/local/bin/my_smtp -h mailhub -f \\(Bacula\) \
bac...@example.com\\ -s \Bacula daemon message\ %r

...so I can debug those sneaky mail problems :-) . /usr/local/bin/my_smtp
logs the behavior; here is its code:

echo ARGUMENTS: 1:'$1' 2:'$2' 3:'$3' 4:'$4' 5:'$5' 6:'$6'
7:'$7' 8: '$8' | logger -p mail.info
/usr/sbin/bsmtp -d 10 $@ 21 | logger -p mail.info

And indeed, the mail log shows the event taking place at 11:00, the time
the mail was sent:

Aug  9 11:00:01 ch0-backup-01 logger: ARGUMENTS: 1:'-h' 2:'mailhub' 3:'-f'
4:'(Bacula) bac...@example.com' 5:'-s' 6:'Bacula daemon message'
7:'i...@example.com' 8: ''
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 220 mailhub.example.com
ESMTP Postfix
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 220
mailhub.example.com ESMTP Postfix
Aug  9 11:00:01 ch0-backup-01 logger: mailhub.example.com -- HELO
ch0-backup-01
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 250 mailhub.example.com
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 250
mailhub.example.com
Aug  9 11:00:01 ch0-backup-01 logger: ch0-backup-01 -- MAIL FROM:
bac...@example.com
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 250 2.1.0 Ok
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 250
2.1.0 Ok
Aug  9 11:00:01 ch0-backup-01 logger: ch0-backup-01 -- RCPT TO:
i...@example.com
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 250 2.1.5 Ok
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 250
2.1.5 Ok
Aug  9 11:00:01 ch0-backup-01 logger: ch0-backup-01 -- DATA
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 354 End data with
CRLF.CRLF
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 354
End data with CRLF.CRLF
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:594-0 From: (Bacula) 
bac...@example.com
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:597-0 Subject: Bacula
daemon message
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:625-0 Sender:
bacula@ch0-backup-01
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:630-0 To:
i...@example.com bsmtp: bsmtp.c:637-0
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:650-0 Date: Sun, 09
Aug 2015 11:00:01 + (UTC)
Aug  9 11:00:01 ch0-backup-01 logger: ch0-backup-01 -- .
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 250 2.0.0 Ok: queued as
921D72056F
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 250
2.0.0 Ok: queued as 921D72056F
Aug  9 11:00:01 ch0-backup-01 logger: ch0-backup-01 -- QUIT
Aug  9 11:00:01 ch0-backup-01 logger: mailhub -- 221 2.0.0 Bye
Aug  9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub -- 221
2.0.0 Bye




*- Mike Schwager*

*  Linux Network Engineer, Mocho Trading LLC*
*  312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax*


On Mon, Aug 10, 2015 at 9:00 PM, Ana Emília M. Arruda 
emiliaarr...@gmail.com wrote:

 Hello Michael,

 It seems not to be an issue with Bacula. Instead, maybe this mail had been
 queued in your system and relayed at a later time.

 Best regards,
 Ana

 On Mon, Aug 10, 2015 at 11:01 AM, Michael Schwager 
 mschwa...@mochotrading.com wrote:

 Hello,
 Yesterday (Sunday) I received an email from bacula-dir but I don't know
 why. It contains old authentication error messages from a week ago (see
 below) that I'd rectified on the 03 August later in the day. I don't know
 why I received this message now, and I'd like to prevent it from recurring.
 ...It makes my boss anxious. :-)

 The mail was sent at 11:00 UTC. There is no other job scheduled in
 bacula-dir or in cron that would take place at the time this email was
 sent. My maillog is consistent with that. I have verified that the mail
 came from bacula-dir

 I wonder if a start of the bacula director would send an email, but I
 just tried it and it did not send the email again (see the cron operations
 that are performed, below). Does bacula-dir send error messages that are =
 1 week old, upon startup?

 At 11:00 UTC my system performs the following from cron, in order to
 perform a binary backup:
 ​systemctl stop bacula-dir
 ​systemctl stop bacula-sd
 ​systemctl stop bacula-fd​
 systemctl stop mysqld
 ​(copy database dir)
 ​systemctl start mysqld
 systemctl start bacula-fd
 ​systemctl stop bacula-sd
 ​systemctl stop bacula-dir

 ​Thanks for any help.


 *- Mike Schwager*

 *  Linux Network Engineer, Mocho Trading LLC*
 *  312-646-4783 312-646-4783 Phone312-637-0011 312-637-0011
 Cell312-957-9804 312-957-9804 Fax*


 -- Forwarded message --
 From: Bacula backup@
 ​example​
 .com
 Date: Sun, Aug 9, 2015 at 6:00 AM
 Subject: Bacula daemon message
 To: it@
 ​example.com


 02-Aug 22:24 bacula-dir JobId 0: Fatal error: authenticate.c:114 Director
 unable to authenticate with Storage daemon at 
 -backup-01.example.com:9103 

Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Michael Schwager
On Tue, Aug 11, 2015 at 8:49 AM, Martin Simmons mar...@lispworks.com
wrote:


 Looks like a bug to me (I've just created
 http://bugs.bacula.org/view.php?id=2159).


​Thanks. I have contributed to your bug report.


*- Mike Schwager​ (aka, The Most Greyish of Gnomes)​*

*  Linux Network Engineer, Mocho Trading LLC*
*  312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax*

-- 
This message is for the named person(s) use only. It may contain 
confidential proprietary or legally privileged information. No 
confidentiality or privilege is waived or lost by any mistransmission. If 
you receive this message in error, please immediately delete it and all 
copies of it from your system, destroy any hard copies of it and notify the 
sender. You must not, directly or indirectly use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. Mocho Trading LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this message 
are those of the individual sender, except where the message states 
otherwise and the sender is authorized to state them to be the views of any 
such entity.
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-11 Thread Michael Schwager
On Tue, Aug 11, 2015 at 1:21 AM, Andreas Nastke nas...@gdp-group.com
wrote:

 check the mail-headers ('received-from' etc.) to find out
 which servers were involved.


​I did that, but in any event my own logging (see my reply to Ana on this
thread) shows that Bacula certainly sent a message, and it was at that time.


*- Mike Schwager*

*  Linux Network Engineer, Mocho Trading LLC*
*  312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax*

-- 
This message is for the named person(s) use only. It may contain 
confidential proprietary or legally privileged information. No 
confidentiality or privilege is waived or lost by any mistransmission. If 
you receive this message in error, please immediately delete it and all 
copies of it from your system, destroy any hard copies of it and notify the 
sender. You must not, directly or indirectly use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. Mocho Trading LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this message 
are those of the individual sender, except where the message states 
otherwise and the sender is authorized to state them to be the views of any 
such entity.
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-11 Thread Phil Stracchino
On 08/11/15 13:52, Andrey Tataranovich wrote:
 On Tue, 11 Aug 2015 15:47:40 +0100
 Martin Simmons mar...@lispworks.com wrote:
 
 You could use bls -j with the volume file to scan the whole volume.

 I recomend use a more secure fileserver to store your backups (RAID,
 or ZFS).
 
 This error has happened on mirror raid, so maybe only filesystems
 like zfs/btrfs could solve such problem on system level. I do not
 remember if raid5/6 protect from situation when disk read operation
 return incorrect data without error.

All conventional RAID5/6 implementations that are not copy-on-write and
do not feature periodic scrubbing are potentially vulnerable to silent
disk corruption, aka the RAID5 write hole.  ZFS is the only RAID
implementation which I know to be not vulnerable to this potential
failure mode.  https://btrfs.wiki.kernel.org/index.php/RAID56 confirms
that btrfs RAID5/6 is still vulnerable to the RAID5 write hole.  btrfs
also cannot yet recover data from parity, and suffers badly from
fragmentation.  The honest truth is that btrfs is still an experimental
filesystem that is not nearly stable enough or mature enough for
production use yet, much less for backup storage which absolutely MUST
be reliable.


-- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: 603.293.8485

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


Re: [Bacula-users] bacula-fd cannot access files from the system still getting [permission denied]

2015-08-11 Thread Josip Deanovic
On Tuesday 2015-08-11 11:24:49 JING YANG wrote:
 Dear Josip,
Thank you for your reply. ps aux | grep bacula-fd gives me the
 following:
 
 bacula   31630  0.0  0.1 198364  2936 ?Ssl  11:09   0:00
 /usr/bin/bacula-fd -c /etc/bacula/bacula-fd.conf
 
 Does this look right? I have checked all the possible places for
 bacula-fd, all the permissions seem correct. I tried Heitor's way, but
 no luck. I am considering reinstall the bacula. If I do that, will all
 the previous backup be lost? Or, is there any other way I can somehow
 solve this problem?
 
 Thanks,
 
 Jing

Hi Jing,

There is no need for reinstallation of the bacula (unless you really
messed up something with its binaries and libraries).

Have you checked your bacula init script for clues where additional
initscript configuration could be found?
For example, on RHEL/Centos and bacula 7.x I have file 
/etc/sysconfig/bacula-fd which contains variables that can define a
user you want bacula to run with.

About the ps aux...
The line you have posted clearly shows that your bacula-fd daemon
is running as user called bacula.
That is fine if you only need to backup files readable by the user called
bacula but if you want to backup complete system you almost certainly
want your bacula-fd daemon to be run as root.

So, check your initscript /etc/init.d/bacula-fd. Look for variables
that are used as a parameter for the bacula-fd's -u option and look
for the files that might be included (sourced) from the initscript.
It is likely that the sourced file will contain few variables which
could be used to specify a user and a group your want your bacula-fd
daemon to run as.

-- 
Josip Deanovic

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


Re: [Bacula-users] copy jobs

2015-08-11 Thread Ana Emília M . Arruda
Hello Lukas,

Regarding your first post, could you give more details about is it
possible to setup copy job for a single client so that all the jobs data
is stored on two different volumes
​? Do you mean the same data being replicated into two different volumes
in the same pool? Sorry, I cannot see the goal here. I see copy jobs
intended for offline backups. So the data goes to a different pool from the
original ones.

​I tried some configurations with the cloned copy job, but if you have more
than one job to be copied, lets say 2 jobs, you will have the original copy
job and its clone each one copying each one of the original jobs. This is
not the objective here.

On Mon, Aug 10, 2015 at 11:36 AM, Lukas Hejtmanek xhejt...@ics.muni.cz
wrote:

 Hello,

 is it possible to setup copy job for a single client so that all the jobs
 data
 is stored on two different volumes? But without specifying an extra pool
 for
 such a client. If I specify an extra pool, I can specify PoolUncopiedJobs.
 That works but not for a single client only.

 If I specify e.g. Client as a selection rule, I'm lost in a recursion
 because
 all copy jobs are selected for copy next time as they match a client name.


​Maybe you could use an SQLQuery for this. ​

  Selection Type = SQLQuery
  Selection Pattern = SELECT DISTINCT Job.JobId FROM
​\
   ​
Client,Job,JobMedia,Media WHERE Client.Name='
​myclient​
-fd'
​\
   ​
AND Client.ClientId=Job.ClientId AND Job.Type='B'
​\
   ​
AND JobStatus IN ('T') AND JobMedia.JobId=Job.JobId
​\
   ​
AND JobMedia.MediaId=Media.MediaId ORDER BY Job.StartTime DESC LIMIT
​X​
;

​This will include all your jobs for a specific client, just the backups
jobs (not the copy jobs), and if you know hoy many jobs for this client
will be copied (every time your copy job runs) you can set this value in
'X' at the end of the query.

Best regards,
Ana



 So any change here?

 --
 Lukáš Hejtmánek


 --
 ___
 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] bsmtp failing to connect to mail server

2015-08-11 Thread Jerry Lowry
Thank you all for the pointers and information regarding postfix and google
mail.  I have not determined which way I am going to proceed yet.  To many
other fires, which makes me check on the backups rather than check the
email.

Kind regards,

jerry

On Sun, Aug 9, 2015 at 11:37 AM, Dimitri Maziuk dmaz...@bmrb.wisc.edu
wrote:

 On 2015-08-08 14:23, Jerry Lowry wrote:
  Heitor,  Sorry for not saying this in the original text.  It does the
  same thing when I specify 'localhost'.
 
  I don't really need 'tls' that is just what gmail is looking for when I
  try to use them as the sending mail server.

 Send-only postfix setup that also accepts mail on 127.0.0.1:

   /etc/postfix/main.cf:

 myorigin = $mydomain
 inet_interfaces = localhost
 inet_protocols = ipv4
 mydestination =
 relayhost = $mydomain
 local_transport = error:local mail delivery is disabled

 -- change myorigin and relayhost as appropriate. Plus,

   /etc/postfix/master.cf:

 #local unix  -   n   n   -   -   local

 (i.e. the local line commented out).

 Make sure iptables isn't blocking port 25 on localhost.

 To test:

 telnet localhost 25

 -- if you get connected and 220 code from postfix you should be good
 to go. Note that sending mail from command line is not a useful test
 since it doesn't necessarily work the same way. It's calling the
 sendmail binary directly instead of talking to the server on port 25.

 And then there's gmail. It delivers some messages to all mail instead
 of inbox, messages whose From and To addresses are the same just vanish,
 and so on. So check the postfix log after running a test job: it may
 well be there's nothing wrong with your bsmtp or postfix config.

 Dima


 --
 ___
 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