[Bacula-users] Question about ClientRunBeforeJob

2009-06-30 Thread Jon Schewe
I have a long running job that I want to run before backups. It backs up
the databases on the client. I've added the ClientRunBeforeJob line and
noticed that I was getting errors like this:

29-Jun 09:11 jon-dir JobId 4073: Start Backup JobId 4073, 
Job=mtu.2009-06-29_09.11.03
29-Jun 09:11 jon-dir JobId 4073: Using Device "FileStorage"
29-Jun 09:11 mtu-fd JobId 4073: ClientRunBeforeJob: run command 
"/etc/bacula/before-full-backup.sh"
29-Jun 11:11 jon-dir JobId 4073: Fatal error: Socket error on 
ClientRunBeforeJob command: ERR=Connection reset by peer
29-Jun 11:11 jon-dir JobId 4073: Fatal error: Client "mtu-fd" RunScript failed.
29-Jun 11:11 jon-dir JobId 4073: Error: Bacula jon-dir 2.4.2 (26Jul08): 
29-Jun-2009 11:11:37


I changed my heartbeat interval for the client in bacula-dir.conf to 15
seconds and on the client in it's bacula-fd.conf to 5 seconds. After
restarting all services, I'm still getting the connection reset error.
Between my bacula server and the client is a Linksys router running
DDWRT. The client is a Linux server using iptables for the firewall.

When googling for this error the standard advice is to change the
heartbeat interval, however that doesn't seem to be working. Are there
any other suggestions on how to fix this?

Thanks.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


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


Re: [Bacula-users] efficient disk backups

2009-07-13 Thread Jon Schewe
Gavin McCullagh wrote:
> Hi,
>
> up until now, we've tended to keep backups in a fairly ad hoc manner.
> People looking after a particular system have worked out their own way, be
> it a proprietary backup tool, or a script of some sort.  We've started
> setting up bacula and I hope we'll be in a position to backup nearly every
> system with it, which will have substantial advantages.
>
> For several of the larger systems, the script used is a standard enough
> combination of rsync and hard links.  It's based on ideas used here:
>
>   http://www.mikerubel.org/computers/rsync_snapshots/
>
> As there is no one "full backup", you don't need to keep several full
> backups, you basically just delete the tree of old backups you don't need.
> A number of our servers tend to gradually accumulate files, most of which
> then go unchanged (eg maildirs, video libraries, ...) so this backup method
> tends to be very space efficient.
>
> One server has about 300GB of data. We keep 31 consecutive days and the 1st
> of each month prior to that.  This costs us about 450GB of disk space.  
>
> I'm now looking at setting up bacula for this backup -- initially using
> disk storage.  As a starting point, looking at chapter 25 of the manual, it
> would cost about (300GB*6)*(compression ratio) just for the full backups
> which is a little rough and probably involves a very large amount of
> redundancy.  While SATA disks are pretty cheap, caddies for our Dell MD1000
> disk array aren't :-(
>
> To try and reduce the space requirements, I'm considering more spread out
> schemes such as:
>
>  - full backups on first sunday of the quarter to fullvol-[123]
>-> recycled after 6 months
>  - differential backups on first sunday of the (other) months to 
> diffvol-[1234]
>-> recycled after 3 months
>  - incremental backups every other day to incvol-1
>-> recycled at end of each month
>
> which I think should cost us more like (300GB*3+diffs+incs)*(comp_ratio).
>
> Are there pitfalls in spreading things out this far?  We may move to tape
> at some point (either spooling or migrate), but I don't have a budget to
> buy LTO4 tape drives at the minute.  Is there some other technique I'm
> missing that would more efficiently store these larger data stores?
>   
The first thing I notice is that you're doing incremental backups every
other day. I'd really encourage you to do them everyday if you can,
otherwise on that odd day you're going to be really unhappy when a disk
crashes and you've lots 2 days worth of data rather than just 1.

As far as spreading out the full and differential backups, the only
downside that I can see is that it'll increase your restore time as
you'll need to go back to a differential and a full to do a restore and
a lot can change in there.

One question to think about is how far back do you need to be able to
restore? I'm finding that a lot of places only need to go back 60 to 90
days. If that's the case, then you set your recycle time much lower on
your full backups and you only keep 1 or 2 full backups.


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Alternating two usb disks

2009-09-26 Thread Jon Schewe
Gerald Leier wrote:
>
> hi,
>
> -Original Message-
> From: Fabrizio Reale [mailto:fabrizio.re...@redomino.com]
> Sent: Tue 9/22/2009 10:03 AM
> To: bacula-users@lists.sourceforge.net
> Subject: [Bacula-users] Alternating two usb disks
>
> >Hi all,
> >I would like to store my volumes on two usb disks in order to keep
> one disk
> >in a safe place.
> >I want to exchange the disks once per week.
> >I set up my storage in this way:
>
> by defining Use Volume Once = yes in the matching pool
> configuration you can force bacula to create a new
> backupfile with every job.
>
> here is a configuration snipplet i use:
>
> Pool {
>   Name = Main-Pool
>   Pool Type = Backup
>   Recycle = no
>   AutoPrune = no
>   Volume Retention = 365 days
>   Use Volume Once = yes
>   Maximum Volume Bytes = 4831838208
>   LabelFormat =
> "${Client}_${Job}_${Level}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}:${Second
> :p/2/0/r}"
> }
>
>
Does this also take care of removing the old backup files? Or do you do
that as a separate script?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Alternating two usb disks

2009-10-04 Thread Jon Schewe
If I use the setup below, will bacula automatically delete the old
volumes when the retention period is up? I realize it'll reuse them if
recycle is set to yes, but unsure if it'll delete old volumes.


Jon Schewe wrote:
> Gerald Leier wrote:
>   
>> 
>> by defining Use Volume Once = yes in the matching pool
>> configuration you can force bacula to create a new
>> backupfile with every job.
>>
>> here is a configuration snipplet i use:
>>
>> Pool {
>>   Name = Main-Pool
>>   Pool Type = Backup
>>   Recycle = no
>>   AutoPrune = no
>>   Volume Retention = 365 days
>>   Use Volume Once = yes
>>   Maximum Volume Bytes = 4831838208
>>   LabelFormat =
>> "${Client}_${Job}_${Level}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}:${Second
>> :p/2/0/r}"
>> }
>>
>>
>> 
> Does this also take care of removing the old backup files? Or do you do
> that as a separate script?
>
>   

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem inserting into table "batch"?

2009-10-12 Thread Jon Schewe
I got the error below on my backups this weekend. According to 
make_tables_mysql there is no table named "batch" in the database. What should 
the schema for this table look like? I'm using bacula 2.2.7 under OpenSUSE 11.0.

11-Oct 13:59 mn-server-dir JobId 3419: Fatal error: sql_create.c:732 
sql_create.c:732 insert INSERT INTO batch VALUES 
(2772,3419,'/nfshomes/jschewe/projects/smite/apl/rr2-final/','rtensplit-20090924-0028.scy.log','P0C
 SWQH6 IHA B CcQ CcQ A jZRDgc BAA EbKLw BK0V8B BKziHW BKz2d0 A A 
X','QV3Vz3rvJNMZh8JPcxADow') failed:
Table 'bacula.batch' doesn't exist
11-Oct 13:59 mn-server-dir JobId 3419: Fatal error: catreq.c:482 Attribute 
create error. sql_update.c:454 

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem inserting into table "batch"?

2009-10-12 Thread Jon Schewe
Jari Fredriksson wrote:
>> I got the error below on my backups this weekend.
>> According to make_tables_mysql there is no table named
>> "batch" in the database. What should the schema for this
>> table look like? I'm using bacula 2.2.7 under OpenSUSE
>> 11.0.
>>
>> 11-Oct 13:59 mn-server-dir JobId 3419: Fatal error:
>> sql_create.c:732 sql_create.c:732 insert INSERT INTO
>> batch VALUES
>> (2772,3419,'/nfshomes/jschewe/projects/smite/apl/rr2-final/','rtensplit-20090924-0028.scy.log','P0C
>> SWQH6 IHA B CcQ CcQ A jZRDgc BAA EbKLw BK0V8B BKziHW
>> BKz2d0 A A X','QV3Vz3rvJNMZh8JPcxADow') failed: Table
>> 'bacula.batch' doesn't exist 11-Oct 13:59 mn-server-dir
>> JobId 3419: Fatal error: catreq.c:482 Attribute create
>> error. sql_update.c:454  
>> 
>
> batch is a temporary table that Bacula normally creates and drops on the fly. 
> No idea why it does not exist in your backup.
>
>   
It's done it two days in a row with the same filename specified. Any
ideas on how to debug this?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem inserting into table "batch"?

2009-10-12 Thread Jon Schewe
Frank Sweetser wrote:
> On 10/12/2009 10:51 AM, Jon Schewe wrote:
>> Jari Fredriksson wrote:
>>>> I got the error below on my backups this weekend.
>>>> According to make_tables_mysql there is no table named
>>>> "batch" in the database. What should the schema for this
>>>> table look like? I'm using bacula 2.2.7 under OpenSUSE
>>>> 11.0.
>>>>
>>>> 11-Oct 13:59 mn-server-dir JobId 3419: Fatal error:
>>>> sql_create.c:732 sql_create.c:732 insert INSERT INTO
>>>> batch VALUES
>>>> (2772,3419,'/nfshomes/jschewe/projects/smite/apl/rr2-final/','rtensplit-20090924-0028.scy.log','P0C
>>>>
>>>> SWQH6 IHA B CcQ CcQ A jZRDgc BAA EbKLw BK0V8B BKziHW
>>>> BKz2d0 A A X','QV3Vz3rvJNMZh8JPcxADow') failed: Table
>>>> 'bacula.batch' doesn't exist 11-Oct 13:59 mn-server-dir
>>>> JobId 3419: Fatal error: catreq.c:482 Attribute create
>>>> error. sql_update.c:454
>>>>
>>>
>>> batch is a temporary table that Bacula normally creates and drops on
>>> the fly. No idea why it does not exist in your backup.
>>>
>>>
>> It's done it two days in a row with the same filename specified. Any
>> ideas on how to debug this?
>>
>
> The most common problem seems to be either 1) the mysql account that
> bacula is using doesn't have permission to create the temporary table,
> or 2) the partition mysql is configured to use for for tmp storage
> filled up, leaving no more room for the temp table.
>
I just checked 1 and the account has permissions. I've got 1.4GB
available in /tmp. I would expect this to be enough space. What
information is all put in this table?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Need an opensuse maintainer

2009-11-30 Thread Jon Schewe
It seems that opensuse is in need of a maintainer for bacula. Anyone
interested?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Need an opensuse maintainer

2009-12-01 Thread Jon Schewe
On 12/01/2009 12:25 AM, Bruno Friedmann wrote:
> Jon Schewe wrote:
>   
>> It seems that opensuse is in need of a maintainer for bacula. Anyone
>> interested?
>>
>> 
> Hi Jon,
>
> As fan of opensuse, and Bacula, I'm really interessed about that.
> I've some plan to build recent version with obs (openbuild service).
> But I've need some time (which I'm currently a bit short with :-)
>
>
> Need maintainers where did you get this information ?
> I know released opensuse package are old and only contain one database. Which 
> quiet bad.
> But usually we use packages offered directly on Bacula download website.
>
>   
I posted a bug about no 64-bit RPMs in opensuse 11.2 and noted that
bacula is no longer in the main repository, but in the contrib
repository. Bug is at http://bugzilla.novell.com/show_bug.cgi?id=558707


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Need an opensuse maintainer

2009-12-01 Thread Jon Schewe
On 12/01/2009 07:14 AM, Jon Schewe wrote:
> On 12/01/2009 12:25 AM, Bruno Friedmann wrote:
>   
>> Jon Schewe wrote:
>>   
>> 
>>> It seems that opensuse is in need of a maintainer for bacula. Anyone
>>> interested?
>>>
>>> 
>>>   
>> Hi Jon,
>>
>> As fan of opensuse, and Bacula, I'm really interessed about that.
>> I've some plan to build recent version with obs (openbuild service).
>> But I've need some time (which I'm currently a bit short with :-)
>>
>>
>> Need maintainers where did you get this information ?
>> I know released opensuse package are old and only contain one database. 
>> Which quiet bad.
>> But usually we use packages offered directly on Bacula download website.
>>
>>   
>> 
> I posted a bug about no 64-bit RPMs in opensuse 11.2 and noted that
> bacula is no longer in the main repository, but in the contrib
> repository. Bug is at http://bugzilla.novell.com/show_bug.cgi?id=558707
>   
On a related note, I wouldn't mind helping out with maintenance as well,
just not sure how much time I have either. My particular itch that I'd
like scratched would be separate RPMs for all of the database formats
that bacula supports so that I don't need MySQL running if SQLite will
do or if I already have PostgreSQL running for something else.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Question about recycle = no

2010-01-12 Thread Jon Schewe
So I'm backing data up to an external drive. I have maximum volume jobs
set to 1, to ensure that each job uses a different volume. I would also
like it such that volumes are not reused, so I assume I should set
recycle to no. Now the question is, when the retention period comes up,
will the volumes that are past the retention period be deleted? If they
are not, I'll run out of space on my external drive.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Question about restores and multiple pools

2010-01-12 Thread Jon Schewe
I have standard backups (incremental, differential, full) going to tape
using a pool named Default. I have weekly full backups going to an
external drive using a pool named Offsite. Now when I do a restore I
would like bacula to only consider the backups in the Default pool and
to ignore those in the Offsite pool. Is this possible?

Related question: When bacula is considering which is the most recent
full backup to compute differences for a differential backup will it
consider all job definitions and thus consider my Offsite pool? Or will
it just consider just the currently running Job definition and thus use
only the Default pool (tapes)?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell PV LT2000 supported in Bacula ?

2010-01-13 Thread Jon Schewe
Any reason this is limited to LTO? I would think I could use it for my
DLT tapes too.

On 01/12/2010 11:56 PM, Ken Barclay wrote:
> Regarding Barcode Labels, this is too good not to share.
>
> Free Generator of Barcode Tape Labels for Ultrium LTO Backup Libraries.
> (Nothing to install)
>
> http://tapelabels.librelogiciel.com/
>
> Regards,
> Ken Barclay
>
>
>   
>> -Original Message-
>> From: Ralf Brinkmann [mailto:ralf.brinkm...@wemhoener.de]
>> Sent: Friday, 11 September 2009 4:26 PM
>> To: Bekker
>> Cc: bacula-users@lists.sourceforge.net
>> Subject: Re: [Bacula-users] Dell PV LT2000 supported in Bacula ?
>>
>> Bekker schrieb:
>>
>> 
>>> Does this autochanger work properly with Bacula at the moment ?
>>>   
>> yes, we are working with Bacula release 2.4.2.
>>
>> In the meantime I print the barcode labels (code39) with a special free
>> available Windows based true type font.
>>
>> Info
>> "http://www.logitogo.com/html/barcode39_erstellen.html";
>>
>> Download
>> German version  http://www.logitogo.com/code39.zip
>> English version http://www.logitogo.com/code39_e.zip
>>
>> --
>> Ralf Brinkmann
>>
>>
>>
>> ---
>> ---
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and
>> focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>> 
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-13 Thread Jon Schewe
On 1/12/10 5:40 PM, Timo Neuvonen wrote:
>> So I'm backing data up to an external drive. I have maximum volume jobs
>> set to 1, to ensure that each job uses a different volume. I would also
>> like it such that volumes are not reused, so I assume I should set
>> recycle to no. Now the question is, when the retention period comes up,
>> will the volumes that are past the retention period be deleted? If they
>> are not, I'll run out of space on my external drive.
>>
>> 
> Bacula does not delete the volumes automatically. If recycling were allowed, 
> the volumes would be re-used, but never actually deleted in that case 
> either.
>
> If you need to delete the volumes, you have to do it manually, or using some 
> sort of admin job or script. And before deleting the volume files, also 
> delete the volumes from the catalog to prevent the catalog growing 
> unnecessarily.
>   
Has anyone written such a script to handle this?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Dell PV LT2000 supported in Bacula ?

2010-01-13 Thread Jon Schewe
On 1/13/10 1:49 PM, jerome alet wrote:
> Hi,
>
>   
>> --------
>> From: Jon Schewe 
>> Sent: Wed Jan 13 23:32:14 NCT 2010
>> To: Ken Barclay 
>> Subject: Re: [Bacula-users] Dell PV LT2000 supported in Bacula ?
>>
>>
>> Any reason this is limited to LTO? I would think I could use it for my
>> DLT tapes too.
>> 
> The only reason at the time I wrote this is that I only had the complete 
> specification for LTO labels, not DLT ones.
>
> The second reason right now is that I don't have much time to work on this 
> anymore, so only small modifications will be implemented (like a list of 
> color schemes for alpha characters, for example)
>
>   
Then my guess is that it'll work just fine. I've used generic barcode
creators in the past and they've been OK too, just wondering if there
was something special in there with sizing or something like that.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about restores and multiple pools

2010-01-13 Thread Jon Schewe
On 01/13/2010 02:09 PM, Martin Simmons wrote:
>>>>>> On Tue, 12 Jan 2010 16:38:08 -0600, Jon Schewe said:
>>>>>> 
>> I have standard backups (incremental, differential, full) going to tape
>> using a pool named Default. I have weekly full backups going to an
>> external drive using a pool named Offsite. Now when I do a restore I
>> would like bacula to only consider the backups in the Default pool and
>> to ignore those in the Offsite pool. Is this possible?
>> 
> No.
>
>   
That's too bad. Can it be specified by job? Since I have different jobs
for offsite and standard, one could possibly differentiate based upon that.

>   
>> Related question: When bacula is considering which is the most recent
>> full backup to compute differences for a differential backup will it
>> consider all job definitions and thus consider my Offsite pool? Or will
>> it just consider just the currently running Job definition and thus use
>> only the Default pool (tapes)?
>> 
> It will consider the most recent occurrence of the named job with level Full.
>
> If you have a single job definition doing both standard and offsite backups,
> then there is a danger that the differential will be based relative to the
> offsite backup.  It might be better to define a separate job for the offsite
> backup, using the same client and fileset as the regular job.
>   
I have separate job definitions, so I should OK here.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-15 Thread Jon Schewe
On 01/14/2010 11:05 PM, Phil Stracchino wrote:
> Jon Schewe wrote:
>   
>> On 1/12/10 5:40 PM, Timo Neuvonen wrote:
>> 
>>>> So I'm backing data up to an external drive. I have maximum volume jobs
>>>> set to 1, to ensure that each job uses a different volume. I would also
>>>> like it such that volumes are not reused, so I assume I should set
>>>> recycle to no. Now the question is, when the retention period comes up,
>>>> will the volumes that are past the retention period be deleted? If they
>>>> are not, I'll run out of space on my external drive.
>>>>
>>>> 
>>>> 
>>> Bacula does not delete the volumes automatically. If recycling were 
>>> allowed, 
>>> the volumes would be re-used, but never actually deleted in that case 
>>> either.
>>>
>>> If you need to delete the volumes, you have to do it manually, or using 
>>> some 
>>> sort of admin job or script. And before deleting the volume files, also 
>>> delete the volumes from the catalog to prevent the catalog growing 
>>> unnecessarily.
>>>   
>>>   
>> Has anyone written such a script to handle this?
>> 
> I asked this same question recently.  There isn't a standard one.  I
> will be writing one shortly for my own needs.
>
>   
Turns out it was really easy, I wrote one last night. It's below. You
just want to change the find part of the script to find the appropriate
volumes, then run this as a before or after job script. You will want to
check this by working with a test pool, as I did, just to be sure it's
right.

#!/bin/bash

for file in `find /mnt/mybook/bacula -name 'Test-*'`; do
  volume=`basename ${file}`
  echo "*** Deleting Vol ${volume} from bacula catalog"
  /usr/sbin/bconsole <http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-15 Thread Jon Schewe
On 1/15/10 7:48 AM, John Drescher wrote:
>>> I asked this same question recently.  There isn't a standard one.  I
>>> will be writing one shortly for my own needs.
>>>
>>>
>>>   
>> Turns out it was really easy, I wrote one last night. It's below. You
>> just want to change the find part of the script to find the appropriate
>> volumes, then run this as a before or after job script. You will want to
>> check this by working with a test pool, as I did, just to be sure it's
>> right.
>>
>> #!/bin/bash
>>
>> for file in `find /mnt/mybook/bacula -name 'Test-*'`; do
>>  volume=`basename ${file}`
>>  echo "*** Deleting Vol ${volume} from bacula catalog"
>>  /usr/sbin/bconsole <> delete volume="${volume}" yes
>> quit
>> EOF
>>  echo "*** Deleteing ${file} from disk"
>>  rm -f ${file}
>> done
>>
>> 
> I think others were looking for the more complicated task of deleting
> file volumes automatically after their retention period had expired.
>
>   
That's what I intend to do as well by changing the find to be this:

find /mnt/mybook/bacula -mtime +65

This finds all files that haven't been modified in 65 days or more. If
the retention period is set to 60 days, this would be a pretty safe way
to do it.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-17 Thread Jon Schewe
On 01/15/2010 01:49 PM, Mike Holden wrote:
> John Drescher wrote:
>   
>>>>> That's what I intend to do as well by changing the find to be this:
>>>>>
>>>>> find /mnt/mybook/bacula -mtime +65
>>>>>
>>>>> This finds all files that haven't been modified in 65 days or more. If
>>>>> the retention period is set to 60 days, this would be a pretty safe way
>>>>> to do it.
>>>>>
>>>>>   
>>>> Looks good to me. Some may want different retention periods per pool
>>>> but with labeling the volumes this would be easy to adjust.
>>>> 
>>> True, there is that approach.
>>> What I'm actually thinking of is going the other way:  get Bacula to
>>> tell me what volumes have been pruned and moved into the Scratch pool,
>>> then delete them and their disk files.
>>>
>>>   
>> That would be a little more complicated but more accurate as you are
>> letting bacula decide what gets removed instead of externally forcing
>> the issue.
>>
>> John
>> 
> I posted a script recently on another thread which takes care of purging, 
> deleting
> volumes and deleting the files based on individual retention periods. Check 
> the archives
> over the last couple of weeks or so.
>   
Found your script in the archives. I see you're checking for recycle =
1, so you have recycle set to yes in the conf file? Could you send me
the Pool definition that you use this with?

I don't suppose anyone has written this such that it works with bacula
directly so you don't need to know the database to make it work.

Thanks.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about recycle = no

2010-01-19 Thread Jon Schewe
On 01/18/2010 09:35 PM, Phil Stracchino wrote:
> On 01/15/10 08:48, John Drescher wrote:
>   
>> I think others were looking for the more complicated task of deleting
>> file volumes automatically after their retention period had expired.
>> 
>
> Having now finished the OS reinstallation on my main workstation, I've
> had time to look at this problem.  Here's my working example.
>
>   
Thanks for the example and the script. I really like it. I made some
changes to the script to implement the test parameter and also don't
purge from the catalog unless the file actually exists. This handles the
case where I'm swapping USB drives out every week.


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39



purge.pl
Description: Perl program
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] General backup advice

2010-01-25 Thread Jon Schewe
On 1/24/10 6:23 PM, RYAN vAN GINNEKEN wrote:
> Or should i backup the LVM partitions like this I think then i could make 
> snapshots or something and get my databases too. Also i do not think i would 
> have so much trouble umounting these if necessary the only real draw back i 
> can see is i would have to add creating LVM during restore process which is 
> not really that big of a deal.  I guess i should go off and read the lvm wiki 
> page on the bacula site now!
>
> File = /dev/md0
> File = /dev/mapper/vg0-home on /home type ext3 (rw)
> File = /dev/mapper/vg0-opt on /opt type ext3 (rw)
> File = /dev/mapper/vg0-tmp on /tmp type ext3 (rw)
> File = /dev/mapper/vg0-usr on /usr type ext3 (rw)
> File = /dev/mapper/vg0-var on /var type ext3 (rw)
>
> Or should i just use what i have now and go through the whole make raid then 
> lvm then dump files back then fix databases?
>
>   
Personally I run the bacula-fd client on each virtual machine and don't
bother to backup the raw disks.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula SSL Support

2010-02-12 Thread Jon Schewe

On 02/12/2010 08:30 AM, Prashant Ramhit wrote:
> Hi All,
>
> Ia there a possibility to add PKI Encryption into Bacula Encryption on 
> Ubuntu Bacula Clients.
> As it is not compiled in.
>
>   
It's there, you may need to rebuild to get it. I know that Debian (which
Ubuntu is based on) doesn't ship bacula with SSL support due to
licensing issues.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bad response from stored to open command

2010-04-07 Thread Jon Schewe
The before backup script is empty at this point, so that's not taking any time.
What would cause such an error? This was working until I needed to reload the 
firmware on my router.
mtu-fd is on the internet, jon-dir is behind my router. I've got port 9103 
forwarded from my router
to the computer jon. I've got an entry in /etc/hosts on mtu that has the IP of 
the router associated
with the name jon. Running tcpdump on jon I see traffic in both directions on 
port 9103. Any ideas? 
 

07-Apr 01:23 jon-dir JobId 5312: Start Backup JobId 5312, 
Job=mtu.2010-04-07_01.05.01_00
07-Apr 01:23 jon-dir JobId 5312: Created new Volume 
"mtu-fd_mtu_2010-04-07_01:23:13_Incremental" in catalog.
07-Apr 01:23 jon-dir JobId 5312: Using Device "FileStorage"
07-Apr 01:23 mtu-fd JobId 5312: shell command: run ClientRunBeforeJob 
"/etc/bacula/before-full-backup.sh"
07-Apr 01:23 jon-dir JobId 5312: Sending Accurate information.
07-Apr 03:52 mtu-fd JobId 5312: Fatal error: Bad response from stored to open 
command
07-Apr 03:52 jon-dir JobId 5312: Error: Bacula jon-dir 3.0.3 (18Oct09): 
07-Apr-2010 03:52:48

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-09 Thread Jon Schewe
On 04/08/2010 07:04 AM, Matija Nalis wrote:
> On Wed, Apr 07, 2010 at 02:15:14PM +0100, Prashant Ramhit wrote:
>   
>> 06-Apr 12:54 client-fd JobId 299: Fatal error: backup.c:892 Network send 
>> error to SD. ERR=Connection reset by peer
>>
>> Is it possible to tell me how to enable more debug on client and
>> storage so that i can find more clues to this issue.
>> 
> You can use "-d number" to increase debug level; but in your case it
> should be pretty clear -- something (usually router or firewall)
> between SD and FD (or even local firewalls on themselves) is killing
> TCP connection (usually because it was idle for too long).
>
> See http://tinyurl.com/y8wapdu
> it adding "Heartbeat Interval" helps you.
>
>   
I have heartbeat intervals set at the following:
bacula-dir.conf:
client {
  Heartbeat interval = 15 Seconds
}
storage {
  Heartbeat interval = 1 minutes
}

bacula-sd.conf
storage {
  Heartbeat interval = 1 minute
}

bacula-fd.conf
FileDaemon {
  Heartbeat Interval = 5 seconds
}


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-10 Thread Jon Schewe
On 04/09/2010 02:33 AM, jerry lowry wrote:
> On 4/10/2010 3:30 AM, Jon Schewe wrote:
>   
>> On 04/08/2010 07:04 AM, Matija Nalis wrote:
>>
>> 
>>> On Wed, Apr 07, 2010 at 02:15:14PM +0100, Prashant Ramhit wrote:
>>>
>>>  
>>>   
>>>> 06-Apr 12:54 client-fd JobId 299: Fatal error: backup.c:892 Network 
>>>> send error to SD. ERR=Connection reset by peer
>>>>
>>>> Is it possible to tell me how to enable more debug on client and
>>>> storage so that i can find more clues to this issue.
>>>>
>>>>
>>>> 
>>> You can use "-d number" to increase debug level; but in your case it
>>> should be pretty clear -- something (usually router or firewall)
>>> between SD and FD (or even local firewalls on themselves) is killing
>>> TCP connection (usually because it was idle for too long).
>>>
>>> See http://tinyurl.com/y8wapdu
>>> it adding "Heartbeat Interval" helps you.
>>>
>>>
>>>  
>>>   
>> I have heartbeat intervals set at the following:
>> bacula-dir.conf:
>> client {
>>Heartbeat interval = 15 Seconds
>> }
>> storage {
>>Heartbeat interval = 1 minutes
>> }
>>
>> bacula-sd.conf
>> storage {
>>Heartbeat interval = 1 minute
>> }
>>
>> bacula-fd.conf
>> FileDaemon {
>>Heartbeat Interval = 5 seconds
>> }
>>
>>
>> 
> Hi,  are you backing up through a firewall.  I had this same problem and 
> it tuned out that the firewall has a setup limit on how long a job will 
> last.  Reset the limit and all my backups work as planned.
>
>
>   
Yes, I'm behind a firewall running dd-wrt. Do I just need to increase
the connection timeout? Why doesn't the heartbeat take care of this?


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-10 Thread Jon Schewe
I increased the connection timeout and started another job and got this:

10-Apr 08:11 jon-dir JobId 5334: Start Backup JobId 5334,
Job=mtu.2010-04-10_08.11.11_32
10-Apr 08:11 jon-dir JobId 5334: Using Device "FileStorage"
10-Apr 08:11 mtu-fd JobId 5334: shell command: run ClientRunBeforeJob
"/etc/bacula/before-full-backup.sh"
10-Apr 08:11 jon-dir JobId 5334: Sending Accurate information.
10-Apr 10:51 jon-dir JobId 0: Error: bsock.c:379 Wrote 77 bytes to
client:127.0.0.2:36131, but only 0 accepted.
10-Apr 10:51 jon-dir JobId 0: Error: bsock.c:379 Wrote 77 bytes to
client:127.0.0.2:36131, but only 0 accepted.
10-Apr 10:51 jon-dir JobId 0: Error: openssl.c:86 TLS shutdown failure.:
ERR=error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry
10-Apr 10:51 jon-dir JobId 0: Error: openssl.c:86 TLS shutdown failure.:
ERR=error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry
10-Apr 10:53 mtu-fd JobId 5334: Fatal error: Bad response from stored to
open command
10-Apr 10:53 jon-dir JobId 5334: Error: Bacula jon-dir 3.0.3 (18Oct09):
10-Apr-2010 10:53:23


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-11 Thread Jon Schewe
I got it to work again last night. Changing the firewall time outs
didn't help. What fixed it was turning off Accurate backups.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 04/12/2010 04:17 AM, Matija Nalis wrote:
> On Fri, Apr 09, 2010 at 07:30:19PM -0500, Jon Schewe wrote:
>   
>> I have heartbeat intervals set at the following:
>> bacula-dir.conf:
>> client {
>>   Heartbeat interval = 15 Seconds
>> }
>> storage {
>>   Heartbeat interval = 1 minutes
>> }
>>
>> bacula-sd.conf
>> storage {
>>   Heartbeat interval = 1 minute
>> }
>>
>> bacula-fd.conf
>> FileDaemon {
>>   Heartbeat Interval = 5 seconds
>> }
>> 
> Strange. Are you running GNU/Linux system on all the machines 
> (FD, SD, DIR) ? IIRC, it might not be supported on other systems,
> and/or it may need additional tuning on them.
>
>   
I'm running opensuse Linux for the director and storage daemon and
Debian Linux for the file daemon.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 4/12/10 7:21 AM, Matija Nalis wrote:
> On Mon, Apr 12, 2010 at 05:41:51AM -0500, Jon Schewe wrote:
>   
>>> Strange. Are you running GNU/Linux system on all the machines 
>>> (FD, SD, DIR) ? IIRC, it might not be supported on other systems,
>>> and/or it may need additional tuning on them.
>>>
>>>   
>>>   
>> I'm running opensuse Linux for the director and storage daemon and
>> Debian Linux for the file daemon.
>> 
> that is strange... 
> can you check what are your default SO_KEEPALIVE values with:
>
> grep '' /proc/sys/net/ipv4/tcp_keepalive_*
>
>   
Server:
/proc/sys/net/ipv4/tcp_keepalive_intvl:75
/proc/sys/net/ipv4/tcp_keepalive_probes:9
/proc/sys/net/ipv4/tcp_keepalive_time:7200

Client:
/proc/sys/net/ipv4/tcp_keepalive_intvl:75
/proc/sys/net/ipv4/tcp_keepalive_probes:9
/proc/sys/net/ipv4/tcp_keepalive_time:7200

bacula 3.0.3 on both systems

> and what bacula is using for running connections - start backup first,
> then check if keepalive is enabled (and with what timers) with:
>
> netstat -to
>   
Client:
tcp0  0 client:9102   server:54043  ESTABLISHED
keepalive (7196.36/0/0)
tcp0  0 client:43628  server:9103   ESTABLISHED
keepalive (7197.26/0/0)

Server (behind NAT):
tcp0  0 192.168.42.2:9103   client:43628 
ESTABLISHED keepalive (7199.10/0/0)
tcp0  0 127.0.0.2:9103  127.0.0.2:33218
ESTABLISHED keepalive (7197.84/0/0)
tcp0  0 127.0.0.2:36664 127.0.0.2:9101 
TIME_WAIT   timewait (56.31/0/0)
tcp0  0 192.168.42.2:54043  client:9102  
ESTABLISHED keepalive (7198.18/0/0)

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 4/12/10 8:39 AM, Matija Nalis wrote:
> On Mon, Apr 12, 2010 at 07:59:53AM -0500, Jon Schewe wrote:
>   
>> /proc/sys/net/ipv4/tcp_keepalive_time:7200
>> 
>>> netstat -to
>>>   
>> Client:
>> tcp0  0 client:9102   server:54043  ESTABLISHED
>> keepalive (7196.36/0/0)
>> 
> That's strange. It should've been the timeouts you specified in
> config files, not 7200 seconds (two hours) which is system default.
>
> It looks like bacula does not use TCP_KEEPIDLE setsockopt(2) on your
> system. You might want to report a bug on http://bugs.bacula.org/
>
> IMHO, it should work there. Or if not, it should probably throw a
> warning if you try to use it and it is not supported or fails.
>
> Apart from fixing bacula, you can override system default, for
> example (on both server and client) do :
>
> echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time
>
> (or edit /etc/sysctl.d/* or /etc/sysctl.conf to retain value across
> reboots). Can you try what "netstat -to" says after you lower that
> limit and rerun backups ? 
>   
Now I see the timer down where I expect it. Should I only need this on
the client?
> If "netstat -to" then reports smaller timers (60 or less), than it
> should fix your problem, so you can try turning accurate back to yes.
>
> Does that help ?
>   
It's running, I'll know in a couple of hours.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 4/12/10 2:47 AM, Graham Keeling wrote:
> On Sun, Apr 11, 2010 at 09:32:43AM -0500, Jon Schewe wrote:
>   
>> I got it to work again last night. Changing the firewall time outs
>> didn't help. What fixed it was turning off Accurate backups.
>> 
> Ah, so possibly bacula spent long enough stuck doing an accurate query in the
> catalog that the firewall connection timed out.
> Are you using mysql and bacula-5.0.1?
>
>   
I'm using mysql and bacula 3.0.3.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 4/12/10 9:00 AM, Matija Nalis wrote:
> On Mon, Apr 12, 2010 at 08:45:36AM -0500, Jon Schewe wrote:
>   
>> On 4/12/10 8:39 AM, Matija Nalis wrote:
>> 
>>> echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time
>>>
>>> (or edit /etc/sysctl.d/* or /etc/sysctl.conf to retain value across
>>> reboots). Can you try what "netstat -to" says after you lower that
>>> limit and rerun backups ? 
>>>
>>>   
>> Now I see the timer down where I expect it. Should I only need this on
>> the client?
>> 
> If only that client is having timeout timeout problems, than yes (as
> I understand your Director and SD are on same server, so you should
> not have timeout issues there as no networking is involved).
>
> (SO_KEEPALIVE will work even with only one side of connection having
> it enabled).
>
>   
So I should only need the heartbeat on that client's setup as well,
right? Getting rid of extra heart beats would be nice.

>>> If "netstat -to" then reports smaller timers (60 or less), than it
>>> should fix your problem, so you can try turning accurate back to yes.
>>>
>>> Does that help ?
>>>   
>> It's running, I'll know in a couple of hours.
>> 
> Good, let us know how it fares.
>
>   
It seems to be running, but I've run into a problem with bconsole. Once
I started the job, if I run bconsole and then "status dir", the console
hangs. If I strace the bconsole process it's stuck in a select call.
>strace -p 18452
Process 18452 attached - interrupt to quit
select(4, [3], NULL, NULL, {9, 461287}) = 0 (Timeout)
read(3, 0x655d80, 5)        = -1 EAGAIN (Resource
temporarily unavailable)
select(4, [3], NULL, NULL, {10, 0}) = 0 (Timeout)
read(3, 0x655d80, 5)= -1 EAGAIN (Resource
temporarily unavailable)
select(4, [3], NULL, NULL, {10, 0}


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-12 Thread Jon Schewe
On 4/12/10 9:40 AM, Matija Nalis wrote:
> On Mon, Apr 12, 2010 at 09:23:51AM -0500, Jon Schewe wrote:
>   
>> On 4/12/10 9:00 AM, Matija Nalis wrote:
>> 
>>> Good, let us know how it fares.
>>>   
>>>   
>> It seems to be running, but I've run into a problem with bconsole. Once
>> I started the job, if I run bconsole and then "status dir", the console
>> hangs. If I strace the bconsole process it's stuck in a select call.
>>
>> 
>>> strace -p 18452
>>>   
>> Process 18452 attached - interrupt to quit
>> select(4, [3], NULL, NULL, {9, 461287}) = 0 (Timeout)
>> read(3, 0x655d80, 5)= -1 EAGAIN (Resource
>> temporarily unavailable)
>> 
> That should not be related to SO_KEEPALIVE - it should be completly
> transparent to the applications if the network is working (and even
> when it is not working, it should differ only in always terminating
> the connection instead of sometimes terminating connection and
> sometimes hanging idefinitely).
>
> Anyway, it may be few issues with directory hanging. Most common is
> you are too eager. For example, is SQL server is busy, "status dir"
> will hang until it completes.
>
>   
> It is especially problem with bigger databases and MySQL instead of
> PostgreSQL, see http://bugs.bacula.org/view.php?id=1472, where it can
> take even several hours! (note that while it talks about "restore"
> speed, it is also related to accurate backups which employ similar
> SQL queries)
>
>   
Must be what it is then. I've been thinking about switching to postgres,
but haven't because the opensuse packages for bacula are only for mysql.
This may motivate me more.

The backup finished, so it seems that in version 3.0.3 bacula does NOT
set the socket option SO_KEEPALIVE.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer

2010-04-18 Thread Jon Schewe
On 04/16/2010 08:30 AM, Matija Nalis wrote:
> On Mon, Apr 12, 2010 at 03:59:49PM -0500, Jon Schewe wrote:
>   
>> On 4/12/10 9:40 AM, Matija Nalis wrote:
>> 
>>> It is especially problem with bigger databases and MySQL instead of
>>> PostgreSQL, see http://bugs.bacula.org/view.php?id=1472, where it can
>>> take even several hours! (note that while it talks about "restore"
>>> speed, it is also related to accurate backups which employ similar
>>> SQL queries)
>>>
>>>   
>> Must be what it is then. I've been thinking about switching to postgres,
>> but haven't because the opensuse packages for bacula are only for mysql.
>> This may motivate me more.
>> 
> You should probably switch soon, before you get to like your
> database,,, Exporting bacula mysql tables for import in PostgreSQL
> can be very painful and problematic; it is much better to just drop
> the database and create fresh one.
>
>   
I'll keep that in mind as I go forward.

>> The backup finished, so it seems that in version 3.0.3 bacula does NOT
>> set the socket option SO_KEEPALIVE.
>> 
> Hmm, yeah, I've check the code casually, and it indeed looks like the
> heartbeats are not setting SO_KEEPALIVE timeouts (note that it does
> set SO_KEEPALIVE on the socket, otherwise the advice above wouldn't
> work -- it just doesn't do TCP_KEEPIDLE on that[1] to specify
> user-defined timeouts and instead uses system defaults). 
>
> The heartbeats look like are doing other things though (application-level, 
> not socket-level), but as you saw they are not perfect for fixing network 
> idleness problems - and so you also MUST set system defaults.
>
> I've updated the FAQ at:
> http://wiki.bacula.org/doku.php?id=faq#my_backup_starts_but_dies_after_a_while_with_connection_reset_by_peer_error
>
>
> [1] It actually tries that at one point in src/lib/bsock.c if
> TCP_KEEPIDLE support is detected, but it fails to detect it
> properly because  is not included.
>
> However, even after fixing that (and missing semicolon in 
> 'int opt = heart_beat' line), it still doesn't look like it sets
> TCP_KEEPIDLE correctly on FD->SD connection, so maybe this
> codepath is not used there. 
>
> Anyway I gave up debugging there and just set the system
> defaults. But I just though I'd mention that in case someone
> else wants to continue chasing the bug.
>
>   
Hmm, this sounds like a bug that should be fixed and once it is fixed
may remove a bunch of problems with firewalls.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Errors restoring to an encrypted client from a non-encrypted client

2010-04-20 Thread Jon Schewe
I have most of my clients setup with encryption. One is not setup with
encryption. The one without encryption died and I need to restore the
data. So I'm restoring to one of the clients configured with encryption.
I'm getting a bunch of messages about cryptogrphic signature missing.
However the files appear to be restoring. Is this just a warning? Is
this an error? Do I need to turn off encryption on the client to do the
restore?


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] postgres tuning?

2010-06-04 Thread Jon Schewe
Which filesystem are you on too? I've found that ext3 is significantly
faster than ext4 and xfs.

On 06/04/2010 04:01 PM, Stephen Thompson wrote:
>
> Thanks, yes it is Linux.  I will look at those limits settings.
> And yes, I've built indexes and analyze (nothing to vacuum yet since 
> it's a fresh import).
>
> Stephen
>
> On 06/04/2010 12:16 PM, Alan Brown wrote:
>   
>> On Fri, 4 Jun 2010, Stephen Thompson wrote:
>>
>> 
>>>
>>> Correction:
>>> I didn't notice the 8k per unit settings at first with postgres 8.1.
>>> Should read:
>>> effective_cache_size = 786432# 6Gb
>>>   
>> Assuming this is linux, you need to tweak /etc/sysctl/limits.conf a
>> little:
>>
>> postgres  softmemlock unlimited
>> postgres  hardmemlock unlimited
>> @postgres  hardmemlock unlimited
>> @postgres  softmemlock unlimited
>> bacula  softmemlock unlimited
>> bacula  hardmemlock unlimited
>> @bacula  softmemlock unlimited
>> @bacula  hardmemlock unlimited
>>
>> postgres softrss unlimited
>> postgres hardrss unlimited
>>
>>
>> Don't forget to build the indexes and run analyse/vacuum commands.
>>
>> So far I'm finding Postgres is far more forgiving than MySQL and has far
>> fewer parts to tune...
>>
>>
>>
>> 
>>>
>>> On 06/04/2010 10:58 AM, Stephen Thompson wrote:
>>>   

 Hello everyone,

 We recently attempted a mysql to postgresql migration for our bacula
 5.0.2 server.  The data migration itself was successful, however we are
 disappointly either getting the same or significantly worse performance
 out of the postgres db.

 I was hoping that someone might have some insight into this.

 Here is some background:

 software:
  centos 5.5 (64bit)
  bacula 5.0.2 (64bit)
  postgresql 8.1.21 (64bit)
  (previously... mysql-5.0.77 (64bit) MyISAM)

 database:
  select count(*) from File -->   1,439,626,558
  du -sk /var/lib/pgsql/data -->   346,236,136 /var/lib/pgsql/data

 hardware:
  1Tb EXT3 external fibre-RAID storage
  8Gb RAM
  2Gb SWAP
  2 dual-core [AMD Opteron(tm) Processor 2220] CPUs


 Some of the postgres tuning that I've attempted thus far (comments are
 either default or alternatively settings I've tried without effect):

 #shared_buffers = 1000# min 16 or max_connections*2, 8KB each
 shared_buffers = 262144 # 2Gb
 #work_mem = 1024# min 64, size in KB
 work_mem = 524288   # 512Mb
 #maintenance_work_mem = 16384   # min 1024, size in KB
 maintenance_work_mem = 2097152  # 2Gb
 #checkpoint_segments = 3  # in logfile segments, min 1, 16MB each
 checkpoint_segments = 16
 #checkpoint_warning = 30# in seconds, 0 is off
 checkpoint_warning = 16
 #effective_cache_size = 1000# typically 8KB each
 #effective_cache_size = 262144  # 256Mb
 effective_cache_size = 6291456  # 6Gb
 #random_page_cost = 4 # units are one sequential page fetch cost
 random_page_cost = 2

 Now, as to what I'm 'seeing'.  Building restore trees are on par with my
 previous mysql db, but what I'm seeing as significantly worse are:

mysql   postgresql
 Within Bat:
 1) Version Browser (large sample job)   3min 9min
 2) Restore Tree (average sample job)   40sec25sec
 3) Restore Tree (large sample job) 10min   8.5min
 2) Jobs Run (1000 Records) 10sec 2min

 Within psql/mysql:
 1) select count(*) from File;   1sec30min

 Catalog dump:
 1) mysqldump/pgdump 2hrs 3hrs


 I get a win on building Restore trees, but everywhere else, it's
 painfully slow.  It makes the bat utility virtually unusable as an
 interface.  Why the win (albeit moderate) in some cases but terrible
 responses in others?

 I admit that I am not familiar with postgres at all, but I tried to walk
 through some of the postgres tuning documents, including the notes in
 the bacula manual to arrive at the above settings.  Also note that I've
 tried several variants on the configuration above (including the
 postgres defaults), don't have a detailed play by play of the results,
 but the time results above seemed typical regardless of what settings I
 tweaked.

 Any help would be greatly appreciated!
 Stephen
 
>>>
>>>
>>>   
>> 
>
>   

--
ThinkGeek and WIRED's GeekDad team up for the 

[Bacula-users] converting from MySQL to Postgresql

2010-06-22 Thread Jon Schewe
I've seen quite a bit of discussion on this on the list. It seems
possible, so I figured I'd try. I'm using a combination of
http://www.bacula.org/manuals/en/catalog/catalog/Installi_Configur_PostgreS.html#1107
and
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg40993.html

I did
mysqldump -t -n -c --compatible=postgresql --skip-quote-names --skip-opt
--disable-keys --lock-tables -u bacula -ppass bacula

cat bacula-backup.dmp | sed -e 's/-00-00 00:00:00/1970-01-01
00:00:00/g' > fixed-bacula-backup.sql
psql -h localhost -U bacula bacula fixed-bacula-backup.sql

Then tried to import fixed-bacula-backup.sql into the postgresql tables
created by the bacula setup scripts. Things went along pretty well until
I ran into this:
2010-06-21 22:55:01 CDT bacula bacula WARNING:  nonstandard use of
escape in a string literal at character 89
2010-06-21 22:55:01 CDT bacula bacula HINT:  Use the escape string
syntax for escapes, e.g., E'\r\n'.
2010-06-21 22:55:01 CDT bacula bacula ERROR:  invalid byte sequence for
encoding "SQL_ASCII": 0x00
2010-06-21 22:55:01 CDT bacula bacula HINT:  This error can also happen
if the byte sequence does not match the encoding expected by the server,
which is controlled by "client_encoding".
2010-06-21 22:55:01 CDT bacula bacula STATEMENT:  INSERT INTO Log
(LogId, JobId, Time, LogText) VALUES (456892,5599,'1969-12-31
18:00:01','jon-fd JobId 5599: -rw-rw-r--   1 33   video   727636
2010-02-14 14:51:04 
/mnt/mybook//home/httpd/html/gallery/albums/osseo1994/DSC_0066_066.jpg\n\0');

and then:
2010-06-21 23:01:15 CDT bacula bacula ERROR:  duplicate key value
violates unique constraint "status_pkey"
2010-06-21 23:01:15 CDT bacula bacula STATEMENT:  INSERT INTO Status
(JobStatus, JobStatusLong, Severity) VALUES ('p','Waiting on higher
priority jobs',15);

Any hints?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems running Bacula BAT

2010-06-22 Thread Jon Schewe
On 6/22/10 9:47 AM, Geoff Steer wrote:
> Can you make a connections to the director from bconsole?
> If so, check the bat configuration file to make sure it points to the
> correct director/port. Check the password as well.
>
>   
Note that the bconsole.conf file and the bat.conf file should be
identical, except for comments. So if bconsole works, you may just want
to symlink to bat.conf.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] converting from MySQL to Postgresql

2010-06-22 Thread Jon Schewe


On 06/22/2010 01:47 PM, Martin Simmons wrote:
>>>>>> On Tue, 22 Jun 2010 05:26:18 -0500, Jon Schewe said:
>>>>>> 
>> I've seen quite a bit of discussion on this on the list. It seems
>> possible, so I figured I'd try. I'm using a combination of
>> http://www.bacula.org/manuals/en/catalog/catalog/Installi_Configur_PostgreS.html#1107
>> and
>> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg40993.html
>>
>> I did
>> mysqldump -t -n -c --compatible=postgresql --skip-quote-names --skip-opt
>> --disable-keys --lock-tables -u bacula -ppass bacula
>>
>> cat bacula-backup.dmp | sed -e 's/-00-00 00:00:00/1970-01-01
>> 00:00:00/g' > fixed-bacula-backup.sql
>> psql -h localhost -U bacula bacula fixed-bacula-backup.sql
>>
>> Then tried to import fixed-bacula-backup.sql into the postgresql tables
>> created by the bacula setup scripts. Things went along pretty well until
>> I ran into this:
>> 2010-06-21 22:55:01 CDT bacula bacula WARNING:  nonstandard use of
>> escape in a string literal at character 89
>> 2010-06-21 22:55:01 CDT bacula bacula HINT:  Use the escape string
>> syntax for escapes, e.g., E'\r\n'.
>> 2010-06-21 22:55:01 CDT bacula bacula ERROR:  invalid byte sequence for
>> encoding "SQL_ASCII": 0x00
>> 2010-06-21 22:55:01 CDT bacula bacula HINT:  This error can also happen
>> if the byte sequence does not match the encoding expected by the server,
>> which is controlled by "client_encoding".
>> 2010-06-21 22:55:01 CDT bacula bacula STATEMENT:  INSERT INTO Log
>> (LogId, JobId, Time, LogText) VALUES (456892,5599,'1969-12-31
>> 18:00:01','jon-fd JobId 5599: -rw-rw-r--   1 33   video   727636
>> 2010-02-14 14:51:04 
>> /mnt/mybook//home/httpd/html/gallery/albums/osseo1994/DSC_0066_066.jpg\n\0');
>> 
> Does every line in the Log table contain the \n and/or \0 at the end of the
> text?  That might be a bug.
>
> 1969-12-31 is a rather old timestamp on that log entry too :-)
>
> Simple solution: remove all of the "INSERT INTO Log" lines from the import.
> The rows aren't required for most uses of Bacula.
>
>
>   
It's that what is used to view the log in bat?

>> and then:
>> 2010-06-21 23:01:15 CDT bacula bacula ERROR:  duplicate key value
>> violates unique constraint "status_pkey"
>> 2010-06-21 23:01:15 CDT bacula bacula STATEMENT:  INSERT INTO Status
>> (JobStatus, JobStatusLong, Severity) VALUES ('p','Waiting on higher
>> priority jobs',15);
>> 
> You can remove the Status table from the import because it is created and
> filled by the make_postgresql_tables script.
>
>   
OK, I'll give that a try.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] duplicate key in log table?

2010-06-24 Thread Jon Schewe
So I've got bacula running with postgres and I checked my logs from last
night and I noticed a bunch of errors like those below. This suggests
that bacula has a problem with it's logging.

2010-06-24 01:15:50 CDT bacula bacula ERROR:  duplicate key value
violates unique constraint "log_pkey"
2010-06-24 01:15:50 CDT bacula bacula STATEMENT:  INSERT INTO Log
(JobId, Time, LogText) VALUES (5797,'2010-06-24 01:15:50','bluetooth-fd
JobId 5797:  /home/jpschewe/.VirtualBox is a different filesystem.
Will not descend from /home into /home/jpschewe/.VirtualBox
')
2010-06-24 01:15:50 CDT bacula bacula ERROR:  duplicate key value
violates unique constraint "log_pkey"
2010-06-24 01:15:50 CDT bacula bacula STATEMENT:  INSERT INTO Log
(JobId, Time, LogText) VALUES (5797,'2010-06-24 01:15:50','bluetooth-fd
JobId 5797:  /home/jpschewe/.josm is a different filesystem. Will
not descend from /home into /home/jpschewe/.josm
')

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] duplicate key in log table?

2010-06-24 Thread Jon Schewe
Nevermind, I figured it out. I had migrated from mysql and some
sequences didn't get updated.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] converting from MySQL to Postgresql - FINISHED

2010-06-25 Thread Jon Schewe
I finished my conversion and it everything seems OK after a couple of
days of backups. I wrote up my experiences as I did have to go through a
couple of different web pages to get all of the right commands and
needed some help from the list (thanks to all that replied), plus I
needed to modify commands a bit.

You can see my write up at http://mtu.net/~jpschewe/blog/?p=28
<http://mtu.net/%7Ejpschewe/blog/?p=28> Hopefully this will help others.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.




--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Jobs running twice?

2010-07-01 Thread Jon Schewe
So I've got a job that takes over 48 hours to complete (I'm working on
fixing this), but in the meantime I have a second job scheduled to
happen daily writing to a different pool. 2 odd things happened:
1) The second job couldn't run at the same time as a long job. This
might be because bacula can't spool 2 jobs at once, or I've got to
change something for this.
2) So while the long job was running the daily job was paused until the
long job finished (as I explained in 1), the really annoying thing was
that a second daily job was put in the schedule queue even though there
was one already scheduled and waiting, so when the long job finished,
each of my clients was backed up twice again inside of 6 hours, rather
than the second daily job just being dropped (which I would have
expected). Is there a way to change this behavior?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Jobs running twice?

2010-07-01 Thread Jon Schewe
On 7/1/10 8:29 AM, John Drescher wrote:
> On Thu, Jul 1, 2010 at 9:21 AM, Jon Schewe  wrote:
>   
>> So I've got a job that takes over 48 hours to complete (I'm working on
>> fixing this), but in the meantime I have a second job scheduled to
>> happen daily writing to a different pool. 2 odd things happened:
>> 1) The second job couldn't run at the same time as a long job. This
>> might be because bacula can't spool 2 jobs at once, or I've got to
>> change something for this.
>> 
> Do you have more than 1 drive? Two different bacula volumes can not be
> loaded in a single drive. And this does apply to disk volumes as well.
>
>   
The log running job was going to disk, the daily job was going to tape.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Jobs running twice?

2010-07-01 Thread Jon Schewe
On 7/1/10 9:29 AM, John Drescher wrote:
> On Thu, Jul 1, 2010 at 9:45 AM, Jon Schewe  wrote:
>   
>> On 7/1/10 8:29 AM, John Drescher wrote:
>> 
>>> On Thu, Jul 1, 2010 at 9:21 AM, Jon Schewe  wrote:
>>>
>>>   
>>>> So I've got a job that takes over 48 hours to complete (I'm working on
>>>> fixing this), but in the meantime I have a second job scheduled to
>>>> happen daily writing to a different pool. 2 odd things happened:
>>>> 1) The second job couldn't run at the same time as a long job. This
>>>> might be because bacula can't spool 2 jobs at once, or I've got to
>>>> change something for this.
>>>>
>>>> 
>>> Do you have more than 1 drive? Two different bacula volumes can not be
>>> loaded in a single drive. And this does apply to disk volumes as well.
>>>
>>>
>>>   
>> The log running job was going to disk, the daily job was going to tape.
>>
>> 
> Have you turned on concurrency? This is off by default. Remember when
> turning on concurrency you may have to set "Maximum concurrent Jobs"
> in 5 or more places.
>
>   
No I haven't tried that. I'll look into that. Thanks.

Although the more annoying thing is question 2, any takers?

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] errors from extattr_list_link

2010-07-06 Thread Jon Schewe
Anyone seen this error before?
Error: xattr.c:707 extattr_list_link error on file "/boot":
ERR=Undefined error: 0

I did a quick search on Google and only got foreign sites. The client is
a NetBSD machine and the server is Linux.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] upgrade 2.0.3/3.0.1 -> 5.0.2

2010-07-12 Thread Jon Schewe

On 07/12/2010 08:53 AM, john fish wrote:
> Hi,
>
> I have bacula server (centos 5.3) with bacula (mysql) 3.0.1 and client
> (bacula-fd) with 2.0.3.
>
> Is it save to upgrade both to 5.0.2 ? IS there any changes needed in
> conf/pools/mysql etc ?
There are update scripts that come with the new packages for upgrading
your database. I recently upgraded from 3.0.3-mysql to 5.0.0-postgresql.
Details are here: http://mtu.net/~jpschewe/blog/?p=28

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Jobs running twice?

2010-07-13 Thread Jon Schewe
 On 7/1/10 9:29 AM, Jon Schewe wrote:
> On 7/1/10 9:29 AM, John Drescher wrote:
>> On Thu, Jul 1, 2010 at 9:45 AM, Jon Schewe  wrote:
>>   
>>> On 7/1/10 8:29 AM, John Drescher wrote:
>>> 
>>>> On Thu, Jul 1, 2010 at 9:21 AM, Jon Schewe  wrote:
>>>>
>>>>   
>>>>> So I've got a job that takes over 48 hours to complete (I'm working on
>>>>> fixing this), but in the meantime I have a second job scheduled to
>>>>> happen daily writing to a different pool. 2 odd things happened:
>>>>> 1) The second job couldn't run at the same time as a long job. This
>>>>> might be because bacula can't spool 2 jobs at once, or I've got to
>>>>> change something for this.
>>>>>
>>>>> 
>>>> Do you have more than 1 drive? Two different bacula volumes can not be
>>>> loaded in a single drive. And this does apply to disk volumes as well.
>>>>
>>>>
>>>>   
>>> The log running job was going to disk, the daily job was going to tape.
>>>
>>> 
>> Have you turned on concurrency? This is off by default. Remember when
>> turning on concurrency you may have to set "Maximum concurrent Jobs"
>> in 5 or more places.
>>
>>   
> No I haven't tried that. I'll look into that. Thanks.
>
I looked into the duplicate jobs options and according to the
documentation the default is to not allow duplicate jobs. So why am I
seeing duplicate jobs queued? In this case I have a copy to tape job:
Job {
Name = "CopyToTape"
Type = Copy
#Schedule = "WeeklyCycleAfterBackup"
Priority = 40 # after catalog
Pool = Disk-Pool
    Maximum Concurrent Jobs = 1
Selection Type = PoolUncopiedJobs
Messages = Standard

Level = Full # ignored
Client = mn-server-fd # ignored
FileSet="Standard Full Set" # ignored
}

If one of the copy jobs takes over 24 hours because of something like a
stuck autoloader then the same jobs are queued up again. Why are these
jobs queued up twice?


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] errors from extattr_list_link

2010-07-15 Thread Jon Schewe
On 07/06/2010 05:15 PM, Jon Schewe wrote:
> Anyone seen this error before?
> Error: xattr.c:707 extattr_list_link error on file "/boot":
> ERR=Undefined error: 0
>
> I did a quick search on Google and only got foreign sites. The client is
> a NetBSD machine and the server is Linux.
>
>   
Anyone else seen this?

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Copy jobs running twice

2010-07-15 Thread Jon Schewe
I looked into the duplicate jobs options and according to the
documentation the default is to not allow duplicate jobs. So why am I
seeing duplicate jobs queued? In this case I have a copy to tape job:
Job {
Name = "CopyToTape"
Type = Copy
#Schedule = "WeeklyCycleAfterBackup"
Priority = 40 # after catalog
Pool = Disk-Pool
Maximum Concurrent Jobs = 1
Selection Type = PoolUncopiedJobs
Messages = Standard

Level = Full # ignored
Client = mn-server-fd # ignored
FileSet="Standard Full Set" # ignored
}

If one of the copy jobs takes over 24 hours because of something like a
stuck autoloader then the same jobs are queued up again. Why are these
jobs queued up twice? Is it because the jobs are spawned by the copy job and 
the spawning doesn't take into account jobs that are in queue? Could the copy 
job somehow detect that previously spawned jobs are still in the queue? Or is 
the documentation not accurate and the default is to allow duplicate jobs?


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Copy job question

2010-08-02 Thread Jon Schewe
 I want to setup bacula so that when a job finishes (one that writes to
disk) it then spawns a job that copies itself to tape. I know about
PoolUncopiedJobs and I don't want to do that, as it can cause the same
job to be queued multiple times and will pull all of my old backup jobs,
which I really don't want.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems with multiple drives in changer

2010-08-05 Thread Jon Schewe
 So I've got 2 drives in my tape library. Up until now I've only had
bacula using the first drive. Right now that drive is giving me some
trouble, so I want to tell bacula to switch to the second drive, but
bacula won't do that. When I try to mount a volume with the tape library
I get the following output from bacula-sd (with debug=100):
mn-server-sd: stored.c:552-0 Could not open device "Drive-1" (/dev/nst1)
mn-server-sd: dircmd.c:599-0 Try changer device Drive-0
mn-server-sd: dircmd.c:611-0 Device DLT-changer not autoselect skipped.
mn-server-sd: dircmd.c:599-0 Try changer device Drive-1
mn-server-sd: dircmd.c:620-0 Device DLT-changer drive wrong: want=0
got=1 skipping

Here's my device sections, note that Autoselect is set to "no" on Drive-0.
Autochanger {
  Name = DLT-changer
  Device = Drive-0
  Device = Drive-1
  Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/tape_lib_changer0
}

Device {
  Name = Drive-0  #
  Drive Index = 0
  Media Type = DLT-7000
  Archive Device = /dev/nst0
  AutomaticMount = yes   # when device opened, read it
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  AutoChanger = yes
  Autoselect = no
  # Enable the Alert command only if you have the mtx package loaded
  #Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
Device {
  Name = Drive-1  #
  Drive Index = 1
  Media Type = DLT-7000
  Archive Device = /dev/nst1
  AutomaticMount = yes   # when device opened, read it
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  AutoChanger = yes
  # Enable the Alert command only if you have the mtx package loaded
  #Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

I saw someone with a similar problem awhile back on the list, but they
never got an answer.
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg29543.html

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] offsite backup

2010-08-07 Thread Jon Schewe
 On 8/6/10 12:12 PM, John Drescher wrote:
>> I have a new bacula running and am wondering what do you recommend for an 
>> offsite backup, adding it to the current local storage.
>>
>> I was told by management that they dont want to worry if their servers get 
>> stolen.
>>
> I recommend a tape archive and a suitable container that you can
> physically take the tapes offsite. However you probably are using
> disk.
>
> You could put a SD on a remote site if you want. You could also rsync
> your storage volumes nightly. Both of these are highly dependent on
> how much bandwith you have and how much your data changes per day.

If you're considering a network option like this, I would strongly
recommend using the rsync over a remote SD. I found that bacula doesn't
retry on network errors, so if you have a long backup running offsite
and then your ISP drops for a minute you loose, where as you can pretty
easily have rsync do a retry and pickup where it left off.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Purge all previous incrementals and differentals when full is purged

2010-09-08 Thread Jon Schewe
 When a full backup is purged, does bacula automatically purge the
differentials and incrementals based on that full? What do I need to do
to ensure this happens? Is it just a matter of setting the retention
periods? Can this be done with a single pool that holds all fulls,
differentials and incrementals?


-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Copy job question

2010-09-20 Thread Jon Schewe
 On 9/20/10 8:03 AM, Yuri Timofeev wrote:
> Nobody knows? I also need this feature.
>
This is my solution for now.
I've got a JobDefs for my copy job:
JobDefs {
  Name = "CopyJob"
  Type = Copy
  Priority = 40 # after catalog
  Pool = Full-Pool # ignored when using SQLQuery
  Maximum Concurrent Jobs = 1
  Selection Type = SQLQuery
  Messages = Standard
 
  Level = Full # ignored
  Client = mn-server-fd # ignored
  FileSet="Standard Full Set" # ignored
}

Then each of my regular backup jobs have this RunScript section:
  RunScript {
RunsOnClient = no
RunsWhen = After
FailJobOnError = yes
Command  = "/etc/bacula/start-job mn-server-copy"
  }

Where the body of that script is:
#!/bin/sh

# run the copy job specified as $1

if [ $# -ne 1 ]; then
  echo "You must specify the name of the job to start"
  exit 1
fi

echo "run $1 yes" | /usr/sbin/bconsole
exit $?

And the corresponding copy job for each backup job is this:
Job {
  Name = "mn-server-copy"
  JobDefs = "CopyJob"
  Selection Pattern = "SELECT MAX(jobid) FROM Job WHERE Name = 'mn-server'"
  Write Bootstrap = "/var/lib/bacula/working/mn-server-copy.bsr"
}

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Copy Job conflicts with Allow Duplicate Jobs = no

2010-12-03 Thread Jon Schewe
On 12/02/2010 06:37 PM, Phil Stracchino wrote:
> On 12/02/10 19:22, Dan Langille wrote:
>   
>> An interesting situation arose today.  I had the Copy Job and the 
>> original Job with running on the same schedule but different priorities. 
>>   My goal: copy the original jobs to tape right after the original jobs run.
>>
>> However, with duplicate job control:
>>
>>Allow Higher Duplicates = no
>>Allow Duplicate Jobs = no
>>Cancel Queued Duplicates = yes
>>
>> I saw this happen:
>>
>> 02-Dec 20:00 bacula-dir JobId 40501: No JobIds found to copy.
>>
>> The above message would appear in bconsole before job 40500 started.
>>
>> My conclusion: the check for jobs to copy is done when the job is 
>> queued, not when the job is started.
>>
>> Anyone concur?
>> 
> I seem to recall this has been reported previously, yes.
>
>   
That's correct. I've run into this and my solution has been to have each
job to be copied to explicitly queue the copy job for it by selecting
the last ID with the same job name. This ensures that you don't end up
with 2 copy jobs for the same original job.


--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Copy Job conflicts with Allow Duplicate Jobs = no

2010-12-04 Thread Jon Schewe
On 12/03/2010 09:59 PM, Dan Langille wrote:
> On 12/3/2010 8:20 AM, Jon Schewe wrote:
>   
>> On 12/02/2010 06:37 PM, Phil Stracchino wrote:
>> 
>>> On 12/02/10 19:22, Dan Langille wrote:
>>>
>>>   
>>>> An interesting situation arose today.  I had the Copy Job and the
>>>> original Job with running on the same schedule but different priorities.
>>>>My goal: copy the original jobs to tape right after the original jobs 
>>>> run.
>>>>
>>>> However, with duplicate job control:
>>>>
>>>> Allow Higher Duplicates = no
>>>> Allow Duplicate Jobs = no
>>>> Cancel Queued Duplicates = yes
>>>>
>>>> I saw this happen:
>>>>
>>>> 02-Dec 20:00 bacula-dir JobId 40501: No JobIds found to copy.
>>>>
>>>> The above message would appear in bconsole before job 40500 started.
>>>>
>>>> My conclusion: the check for jobs to copy is done when the job is
>>>> queued, not when the job is started.
>>>>
>>>> Anyone concur?
>>>>
>>>> 
>>> I seem to recall this has been reported previously, yes.
>>>
>>>
>>>   
>> That's correct. I've run into this and my solution has been to have each
>> job to be copied to explicitly queue the copy job for it by selecting
>> the last ID with the same job name. This ensures that you don't end up
>> with 2 copy jobs for the same original job.
>> 
> That is the problem I'm encountering now.  There are two incremental 
> jobs to be copied, both of the same name.  They'll never both get copied 
> over
>
>   
How are the two jobs different then? Don't you have one for each host?
Here's an example from my config. The start-job script just starts the
specified job using bconsole.
Job {
  Name = "ottertail"
  Client = ottertail-fd
  JobDefs = "DefaultJob"
  FileSet = "Standard NetBSD Set"
  Write Bootstrap = "/var/lib/bacula/working/ottertail.bsr"
  RunScript {
RunsOnClient = no
RunsWhen = After
FailJobOnError = yes
Command  = "/etc/bacula/start-job ottertail-copy"
  }
}
Job {
  Name = "ottertail-copy"
  JobDefs = "CopyJob"
  Selection Pattern = "SELECT MAX(jobid) FROM Job WHERE Name = 'ottertail'"
  Write Bootstrap = "/var/lib/bacula/working/ottertail-copy.bsr"
}


--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Every other week schedule

2011-05-25 Thread Jon Schewe
I found a nice solution for an every other week schedule on this list
that uses a script before the job to check if it's the correct week or
not and exits with an appropriate status. This does what I want, except
it generates an error email on the off weeks. Anyone have a solution for
an every other week schedule that doesn't generate error emails on the
off weeks, but still lets me get error emails when there is a real error?

Jon


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-07-28 Thread Jon Schewe
You might also find the following udev rules useful. Put the following in
/etc/udev/rules.d/60-persistent-storage-tape.rules (path may be different
for different distros, this is for opensuse).

# this file must have the same name as the file in /lib/udev/rules.d that
sets up the tape permissions, otherwise this file won't override the
defaults

SUBSYSTEM=="scsi_generic", ATTRS{vendor}=="DELL", ATTRS{model}=="PV-124T",
SYMLINK+="library_pv-124t", GROUP="disk"
KERNEL=="nst[0-9]*", SUBSYSTEM=="scsi_tape", ATTRS{vendor}=="QUANTUM",
ATTRS{model}=="ULTRIUM 5", SYMLINK+="drive0_pv-124t", GROUP="disk"

This creates symlinks for the right devices and sets the group permissions
to disk, which is what the RPMs in the dassit repository for openeuse want
given who the daemons run as. Note that this is only with 1 drive in our
library, you may need to modify for a second drive.

On Thu, Jul 28, 2011 at 4:04 AM, Rory Campbell-Lange <
r...@campbell-lange.net> wrote:

> We have the same setup, running on Debian.
>
> The first things to do are:
>
> * check that you can get your server and library/drive to communicate.
>  you can do that with mtx and mt
>  eg mtx -f /dev/sg4 status
>  eg mt -f /dev/nst0 status
>
> * test your setup with btape
>
> http://www.bacula.org/5.0.x-manuals/en/utility/utility/Volume_Utility_Tools.html#SECTION00291000
>
> * configure the Bacula Storage Daemon
>
>  our Storage Daemon has the folling excerpts that might be relevant to
>  you:
>
>Autochanger {
>  Name = PV-124T
>  Device = LTO4-Drive1
>  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>  Changer Device = /dev/sg4
>}
>
>Device {
>  Name = LTO4-Drive1
>  Drive Index = 0
>  Media Type = LTO4
>  Archive Device = /dev/nst0
>  AutomaticMount = yes;   # when device opened, read it
>  AlwaysOpen = yes;
>  RemovableMedia = yes;
>  RandomAccess = no;
>  AutoChanger = yes
>
>  # The following spool directives come after discussions on the bacula
> list and
>  # with reference to
> http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg36340.html
>  # Also see
> http://www.bacula.org/5.0.x-manuals/en/main/main/Storage_Daemon_Configuratio.html#11812etc
>  Maximum File Size = 5G
>  Maximum Spool Size = 260G
>  Maximum Job Spool Size = 100G # will need this is there are concurrent
> jobs
>  Spool Directory = /tapehold
>
>  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>}
>
>  However please be very wary of just copying these entries. You should
>  read the manual and setup Bacula to meet your specific requirements.
>  See http://www.bacula.org/5.0.x-manuals/en/main/main/index.html
>
> Rory
>
> On 27/07/11, lokinc (bacula-fo...@backupcentral.com) wrote:
> > Hi
> >
> > I've got a Dell Powervault 124T connected to a new server using SAS.
> >
> > On the server I'm running CentOS 6 with Bacula 5.0.0 installed via YUM,
> the current setup can backup to File and restore.
> >
> > Now what I need to know, what is the first step to get the server to
> backup to tape. How to define the Tape changer and drive and where to define
> these things?
> >
> > Thanks in advance
> >
> > +--
> > |This was sent by lok...@gmail.com via Backup Central.
> > |Forward SPAM to ab...@backupcentral.com.
> > +--
> >
> >
> >
> >
> --
> > Got Input?   Slashdot Needs You.
> > Take our quick survey online.  Come on, we don't ask for help often.
> > Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> > http://p.sf.net/sfu/slashdot-survey
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Rory Campbell-Lange
> r...@campbell-lange.net
>
> Campbell-Lange Workshop
> www.campbell-lange.net
> 0207 6311 555
> 3 Tottenham Street London W1T 2AF
> Registered in England No. 04551928
>
>
> --
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Bacula-users

[Bacula-users] Question about order of RunScripts

2011-09-06 Thread Jon Schewe
If I specify multiple RunScripts, in particular one in the job defaults and
one in the job. Can I control the order that the scripts are executed?

Jon
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Encryption keys

2011-10-11 Thread Jon Schewe
Is there any reason (besides good security) that I can't use the same
private key for all bacula clients? Can I use the same pem file as well?

Jon
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] PROBLEM with BACULA TLS

2011-10-31 Thread Jon Schewe
2011/10/31 sabrina bomel 
>
> Hello,
>
> I've got a server on Debian Squeeze. I've put Bacula 5.0.2.
> My config, est that, i've put the Director, the Storage and the Console on 
> the server.
> I've test it, and it's OK. I can backup and restore clients.
> Then, i wanted to secure it. So i've tried to put TLS.
> I follow this doc : 
> http://www.opendoc.net/solutions/comment-sauvegarder-avec-bacula#bacula-tls
> And I follow the doc too :
> http://www.freebsddiary.org/bacula-tls.php
> And i've got this message, when i tape bconsole :
> root@SRVBACULA01:/etc/bacula# bconsole
> Connecting to Director srvbacula01.wmsc.re:9101
> TLS negotiation failed
> Director authorization problem.
> Most likely the passwords do not agree.
> If you are using TLS, there may have been a certificate validation error 
> during the TLS handshake.
> Please see 
> http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00376
>  for help.
>
> So i create a non-password version certificate, as shown on freebsddiary.
> And i've got the same message above.
> And i look in the log (var/log/syslog ), and there's this messages :
> Oct 31 17:37:49 SRVBACULA01 bacula-console: bnet.c:306 TLS host certificate 
> verification failed. Host name "srvbacula01.wmsc.re" did not match presented 
> certificate
> Oct 31 17:37:49 SRVBACULA01 bacula-dir: bnet.c:258 TLS certificate 
> verification failed. Peer certificate did not match a required commonName
>
> So i'm lost.
> I've modificated my host's file.
> I think, that's my certificate. If someone have a procedure, i'll be happy.
>
You need to make sure that the address attribute in the client section
matches the CN of the client's certificate. You also need to make sure
that the name of the director machine matches the CN of it's cert on
the client. Then I have the following. On Director:
Director {                            # define myself
  Name = jon-dir
  DIRport = 9101                # where we listen for UA connections
  ...
  # TLS Security
  TLS Enable = yes
  TLS Require = yes
  TLS Verify Peer = yes
  TLS Allowed CN = "jon" # important if doing NAT Or DNS doesn't
return what you want
  TLS CA Certificate File = /etc/ssl/certs/personal-ca.pem
  TLS Certificate = /etc/bacula/jon-bacula-2011.pem
  TLS Key = /etc/bacula/jon-bacula-2011.key
}
Client {
  Name = jen-fd
  Address = jen
  FDPort = 9102
  ...
  # TLS Security
  TLS Enable = yes
  TLS Require = yes
  TLS CA Certificate File = /etc/ssl/certs/personal-ca.pem
  TLS Certificate = /etc/bacula/jon-bacula-2011.pem
  TLS Key = /etc/bacula/jon-bacula-2011.key
}
On client:
Director {
  Name = jon-dir
  ...
  # TLS Security
  TLS Enable = yes
  TLS Require = yes
  TLS Verify Peer = yes
  # Allow only the Director to connect
  TLS Allowed CN = "jon" # important if doing NAT Or DNS doesn't
return what you want
  TLS CA Certificate File = /etc/bacula/personal-ca.pem
  TLS Certificate = /etc/bacula/jen-bacula-2011.pem
  TLS Key = /etc/bacula/jen-bacula-2011.key
}
FileDaemon {                          # this is me
  Name = jen-fd
  FDport = 9102                  # where we listen for the director
  ...
  # TLS Security
  TLS Enable = yes
  TLS Require = yes
  TLS CA Certificate File = /etc/bacula/personal-ca.pem
  TLS Certificate = /etc/bacula/jen-bacula-2011.pem
  TLS Key = /etc/bacula/jen-bacula-2011.key
}
These are my notes on creating certificates.
Create CA: # only needed once
/usr/share/ssl/misc/CA.pl -newca
Copy cacert.pem to /etc/apache2/ssl.crt and put it somewhere on the web for
others to reference.
Create cert:
/usr/share/ssl/misc/CA.pl -newreq
answer questions
/usr/share/ssl/misc/CA.pl -sign
Enter CA passphrase
Answer questions
Cert is now signed.
Now to setup for Apache, need to take the passphrase off.
openssl rsa < newkey.pem > eggplant.key
Enter passphrase used with -newreq
mv newcert.pem eggplant.pem
Now you have a cert for your host, the cert is in eggplant.crt the key is in
eggplant.key. The key has no password so you can start your service
without entering a password.

If you're going through a NAT for backups, then it's more work. I've
got that going too, but there are a few things that need to be
modified as well.

--
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Delete old Volumes for Filebackup

2011-12-24 Thread Jon Schewe
On Thu, Dec 22, 2011 at 7:52 AM, Robert Heinzmann (reg) wrote:

> Hello Bacula users,
>
> I use s3fs backend with local cache for Amazon Backup for Bacula. Bacula
> is configured to automatically label volumes and to use each volume for
> a single job only (and to limit the size of the files to 5 GB).
>
> Generation of Backups is great, but more and more Volumes are created.
> How can I purge / delete volumes via Bacula to delete the files on the
> s3fs ?
>
> I use the attached perl script that I found on the list a couple of years
ago. I run it from root's crontab nightly. This script assumes that volumes
end up in the scratch pool once they're recycled. You'll also need to edit
the variables at the top of the script to point to where your volumes are
stored. Here is one of my pool definitions that shows the volumes going to
the scratch pool when recycled.

Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = no
  Recycle Oldest Volume = no
  Recycle Current Volume = no
  RecyclePool = Scratch
  AutoPrune = yes
  Volume Retention = 14 days
  Volume Use Duration = 23 hours
  Maximum Volume Jobs = 1
  LabelFormat =
"${Client}_${Job}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}:${Second:p/2/0/r}_${Level}"
}


-- 
Jon Schewe | http://mtu.net/~jpschewe


purge.pl
Description: Binary data
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem with bacula 5.2 and postgresql

2011-12-31 Thread Jon Schewe
My config worked fine with bacula 5.1. I just upgraded to 5.2.3 with
OpenSUSE 12.1. I can connect to my postgres database with the username and
password specified in bacula-dir.conf. However when I try and start
bacula-dir all I get is:

bacula-dir: dird.c:951 Could not open Catalog "MyCatalog", database
"bacula".

There is nothing in the postgres log files. There is no more information
logged. What changed in 5.2 from 5.1 that breaks the authentication?

-- 
Jon Schewe | http://mtu.net/~jpschewe
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with bacula 5.2 and postgresql

2012-01-01 Thread Jon Schewe
On Sun, Jan 1, 2012 at 12:37 AM, Jon Schewe  wrote:

> My config worked fine with bacula 5.1. I just upgraded to 5.2.3 with
> OpenSUSE 12.1. I can connect to my postgres database with the username and
> password specified in bacula-dir.conf. However when I try and start
> bacula-dir all I get is:
>
> bacula-dir: dird.c:951 Could not open Catalog "MyCatalog", database
> "bacula".
>
> There is nothing in the postgres log files. There is no more information
> logged. What changed in 5.2 from 5.1 that breaks the authentication?
>
> Got it working. It's the new packages for OpenSUSE that tripped me up. It
seems that an upgrade didn't catch the fact that the packages changed and I
needed to add bacula-catalog-postgresql for the database to work, so I
didn't have a database backend installed.

-- 
Jon Schewe | http://mtu.net/~jpschewe
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with bacula 5.2 and postgresql

2012-01-01 Thread Jon Schewe
On Sun, Jan 1, 2012 at 10:06 AM, Bruno Friedmann  wrote:

> On 01/01/2012 03:13 PM, Jon Schewe wrote:
> > On Sun, Jan 1, 2012 at 12:37 AM, Jon Schewe  jpsch...@mtu.net>> wrote:
> >
> > My config worked fine with bacula 5.1. I just upgraded to 5.2.3 with
> OpenSUSE 12.1. I can connect to my postgres database
> > with the username and password specified in bacula-dir.conf. However
> when I try and start bacula-dir all I get is:
> >
> > bacula-dir: dird.c:951 Could not open Catalog "MyCatalog", database
> "bacula".
> >
> > There is nothing in the postgres log files. There is no more
> information logged. What changed in 5.2 from 5.1 that breaks
> > the authentication?
> >
> > Got it working. It's the new packages for OpenSUSE that tripped me up.
> It seems that an upgrade didn't catch the fact that the
> > packages changed and I needed to add bacula-catalog-postgresql for the
> database to work, so I didn't have a database backend
> > installed.
> >
> > --
> > Jon Schewe | http://mtu.net/~jpschewe
> >
>
> Jon from where did you get new packages (STABLE) for openSUSE 12.1 ?
> seeing that name bacula-catalog-postgresql just proove me you are using
> the FACTORY (aka highly unstable "in terms of packaging")
>

From
http://ftp.suse.de/pub/opensuse/repositories/Archiving:/Backup:/Factory/openSUSE_12.1This
is where I was told to get the updates for 11.4 as well. Where is
there stable version then? I don't need to have the latest version of
bacula, just a stable one for openSUSE.


> Don't use that in production, at any moment we can break them (and you can
> be assured that we will),
> Did you really understand what (recently) the description of the project
> on obs state : experimental
>
> If you want bacula 5.2.3 you can build it from source, pick any other way
> to have it. Or use those on Factory repo
> be be aware there's no warranty at all !! They are broken at this moment
> and will be broken at least for 2 more weeks
>
> If you reboot ldconfig will destroy the libbaccats symlink done and you
> have to issue
> update-alternative --auto libbaccats-5.2.3.so as a temporary fix
>
> Yeah, I saw that.


-- 
Jon Schewe | http://mtu.net/~jpschewe
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with bacula 5.2 and postgresql

2012-01-01 Thread Jon Schewe
On Sun, Jan 1, 2012 at 12:59 PM, Bruno Friedmann  wrote:

> On 01/01/2012 05:49 PM, Jon Schewe wrote:
> > On Sun, Jan 1, 2012 at 10:06 AM, Bruno Friedmann  br...@ioda-net.ch>> wrote:
> >
> >     On 01/01/2012 03:13 PM, Jon Schewe wrote:
> > > On Sun, Jan 1, 2012 at 12:37 AM, Jon Schewe  jpsch...@mtu.net> <mailto:jpsch...@mtu.net
> > <mailto:jpsch...@mtu.net>>> wrote:
> > >
> > > My config worked fine with bacula 5.1. I just upgraded to
> 5.2.3 with OpenSUSE 12.1. I can connect to my postgres database
> > > with the username and password specified in bacula-dir.conf.
> However when I try and start bacula-dir all I get is:
> > >
> > > bacula-dir: dird.c:951 Could not open Catalog "MyCatalog",
> database "bacula".
> > >
> > > There is nothing in the postgres log files. There is no more
> information logged. What changed in 5.2 from 5.1 that breaks
> > > the authentication?
> > >
> > > Got it working. It's the new packages for OpenSUSE that tripped me
> up. It seems that an upgrade didn't catch the fact that the
> > > packages changed and I needed to add bacula-catalog-postgresql for
> the database to work, so I didn't have a database backend
> > > installed.
> > >
> > > --
> > > Jon Schewe | http://mtu.net/~jpschewe
> > >
> >
> > Jon from where did you get new packages (STABLE) for openSUSE 12.1 ?
> > seeing that name bacula-catalog-postgresql just proove me you are
> using the FACTORY (aka highly unstable "in terms of
> > packaging")
> >
> >
> > From
> http://ftp.suse.de/pub/opensuse/repositories/Archiving:/Backup:/Factory/openSUSE_12.1This
>  is where I was told to get the
> > updates for 11.4 as well. Where is there stable version then? I don't
> need to have the latest version of bacula, just a stable
> > one for openSUSE.
>
> There's none unfortunately.
>
Isn't the point of factory that you experiment with the packages and then
put them into a stable repository at some point? If there is no such stable
repository, then we all end up using factory.


>
> The most stable I know are located here
> http://www.dass-it.de/download/dassit-bacula-rpm-repositories-1

Right, I was using that one and reported some bugs against it and was told
by the maintainer to use the version in factory.
https://bugzilla.novell.com/show_bug.cgi?id=704483



>
>
> and certainly the 5.0.3 version, the 5.2 is inherited for the factory
> repository and are less stable for sure.
> but there's no build actually for the 11.4 nor 12.1
>
> Sorry for that.
>
> >
> > Don't use that in production, at any moment we can break them (and
> you can be assured that we will),
> > Did you really understand what (recently) the description of the
> project on obs state : experimental
> >
> > If you want bacula 5.2.3 you can build it from source, pick any
> other way to have it. Or use those on Factory repo
> > be be aware there's no warranty at all !! They are broken at this
> moment and will be broken at least for 2 more weeks
> >
> > If you reboot ldconfig will destroy the libbaccats symlink done and
> you have to issue
> > update-alternative --auto libbaccats-5.2.3.so <
> http://libbaccats-5.2.3.so> as a temporary fix
> >
> > Yeah, I saw that.
> >
> >
> > --
> > Jon Schewe | http://mtu.net/~jpschewe
> >
> >
>
>
> --
>
> Bruno Friedmann
> Ioda-Net Sàrl www.ioda-net.ch
>
> openSUSE Member & Ambassador
> GPG KEY : D5C9B751C4653227
> irc: tigerfoot
>
>
> ----------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



-- 
Jon Schewe | http://mtu.net/~jpschewe
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Client with multiple addresses

2012-03-22 Thread Jon Schewe
I have a laptop that I want to backup that may be wired or wireless. Is it
possible to tell bacula to try to connected to the wired address first and
if that fails then try the wireless address?  I haven't seen any options
for specifying a list of addresses in the Address field of the Client
resource on the Director.

-- 
Jon Schewe | http://mtu.net/~jpschewe
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client with multiple addresses

2012-03-22 Thread Jon Schewe
On Thu, Mar 22, 2012 at 10:59 AM, Gary Stainburn wrote:

> > I don't know that it's directly possible. The way I would try to achieve
> > this is working with DNS, looking into dynamic registration of your
> > laptop's A record.
> >
> > If that's not feasible, an alternative may be to have the two IP
> > addresses associated with your laptop's A record; perhaps Bacula's
> > network code would try them sequentially. Not to be used with
> > round-robin DNS, though. Also, it won't work if the addresses are
> > dynamically assigned.
> >
> > And if the machines on your wired and wireless networks are assigned
> > different DNS domain suffixes, then this won't work.
>
> I had a go at getting dynamic DNS working and failed.
>
> The way that I managed to get this working was to write a perl script that
> monitors (tail -f basically) the DHCPD logs and then edits the client
> config
> file and forces the director to reload.
>
> This method also means that I can trigger other actions when a user's
> laptop
> is connected, such as updating my inventory database, triggering bacula
> backup jobs depending on which subnet (site) the laptop is on.
>
> If you're interested, I could post some code.
>
> That's one option, however my bacula server and my DHCP server are not the
same box. So I'd rather have a solution that I can just specify both
addresses and then use the reschedule job options for when the computer is
offline.

-- 
Jon Schewe | http://mtu.net/~jpschewe
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bad interaction between cancel duplicates and rerun failed jobs

2012-06-04 Thread Jon Schewe
So I've got a full backup job that takes more than a day to complete. To
keep a second full backup from getting started while the first one is still
completing I've set the following in the Job definitions:
  Allow Duplicate Jobs = no
  Cancel Queued Duplicates = yes

However to handle network connection issues or clients being missing when
their scheduled backup times comes around I have this setting in the Job
definitions as well:
  Rerun Failed Levels = yes

It seems that the duplicate job handling marks the level as failed, so that
when the first backup finishes, the next backup that wants to run should be
an incremental, but gets upgraded to a full because of the duplicate jobs
that were canceled.

Anyone know a way around this?


-- 
Jon Schewe | http://mtu.net/~jpschewe
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users