Re: [Bacula-users] Bacula 2.0.0 goodness, RPM SPEC building

2007-01-05 Thread Michael Lang
On Thu, Jan 04, 2007 at 08:23:31PM +0100, Kern Sibbald wrote:
> On Thursday 04 January 2007 19:53, Dan Trainor wrote:
> > Hi, all -
> > 
> > Now, Kern, I noticed that you're noted as the RPM package maintainer for 
> > the 1.38 series - should the same be assumed about the 2.0 series, as 
> > well?
> 
> Well, I may be "listed" as the maintainer, but Scott Barninger is the guy who 
> does the work.
> 
> > 
> > I guess what I'm getting at is, I'm sure there are a few people who are 
> > plenty eager to find a nice SRPM for the 2.0 series, because we use RPMs 
> > a lot more frequently than we use tarballs and such.  Are there any 
> > plans to package and distribute a SRPM or spec file within the next few 
> > days?
> 
> I covered that in my release announcement -- it is up to the packager not me.
> 
> > 
> > Is any help needed for creating a 2.0 SPEC file for building RPMs with? 
> >   If work has not already started, I can surely hack one up and give it 
> > to you guys - however, I'm not so sure if it would be up to Kern's 
> > expectations :)
> 
> I believe that the .spec file that is in the source code is perfectly fine 
> with the exception of updating the version numbers of everything, ...

*urgh* 
i've strangled around with these specs in 1.38 too. They aren't checked
correctly for all defined Variables which are defined. I'm running
Centos4 and without modifying the spec you'll never build a package as
the 'if no os defined exit' check simply doesnt take care of centos4 ...

I've already successfully build bacula-2.0.0 for Centos4 using the
plague build system, but the System isn't gratious on flexible
commandline params, i've defined the Centos4 default params which then
means i need 3 different source RPMs to get postgresql/mysql/sqlite
Versions, but thats okay ...
you can grab the SRPMs and Arch Packages for Centos4 from 

http://rpms.jackal-net.at/yum/repodata/ 
(it will take a time until mysql and sqlite will be there as i'm using
postgresql it was build first)

additional the bacula-web package(spec) seems to be messedup too ...

Kind regards
Michael Lang

> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


pgpIcNUepqopU.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula-2.0 big problem with the client FileSets

2007-01-06 Thread Michael Lang
Hi, 

i've switched from bacula 1.38.11 to bacula 2.0 on Centos4.
the config stayed, but the expected backups didnt work.

non of the defined backups do recursion, it simply sees the 
File = .. as directory and saves only this entry as file
<<<
  FD Files Written:   1
  SD Files Written:   1
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   77 (77 B)
>>>

Fileset definition 
FileSet {
Name= "FileSet-Mail"
Ignore FileSet Changes  = no
Include {
File= /var/spool/imap
File= /var/lib/imap
Options {
compression = gzip
signature   = sha1
verify  = Level=DiskToCatalog pins1
onefs   = yes
recurse = yes
sparse  = no
readfifo= no
aclsupport  = no
recurse = yes
}
}
}

on the 1.38.11 client (reproduceable) the command produces
* status client
* 4 # number of the client
...
lmtp-fd Version: 1.38.11 (28 June 2006)  i686-redhat-linux-gnu redhat 

* est listing 
* 9 # job number for the fileset 
...
-rw---   1 cyrusmail  8840 2007-01-05
22:05:20  /var/lib/imap/mailboxes.db
-rw---   1 cyrusmail   1134592 2007-01-06
18:13:01  /var/lib/imap/tls_sessions.db
drwxr-x---  15 cyrusmail  4096 2007-01-06
18:13:01  /var/lib/imap
2000 OK estimate files=96676 bytes=3,807,553,818

on the same machine with the 2.0 client 
* status client
* 4
...
lmtp-fd Version: 2.0.0 (04 January 2007)  i686-redhat-linux-gnu redhat 

* est listing
* 9
drwx--   7 cyrusmail  4096 2006-08-31
16:17:56  /var/spool/imap
drwxr-x---  15 cyrusmail  4096 2007-01-06
18:13:01  /var/lib/imap
2000 OK estimate files=2 bytes=0


whats the problem ?? is there a need to change the configs ?
Kind regards
Michael Lang

-- 
Michael Lang <[EMAIL PROTECTED]>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems with 'Automatic Volume Labeling'

2007-10-23 Thread Michael Lang
Hi everyone,

i have a question regarding 'Automatic Volume Labeling', a short 
explanation of what i'm trying to do ...

i'm responsible for a small company, the backup is done to external 
disks. There are different Pools writing
the Backup to specific disks labeling them with a syntax like:

Label Format= 
"Pool-Weekly-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${NumVols:+1:p/4/0/r}"

which if no use able media exists is labeled on the device like 
'Pool-Weekly-2007-10-23-0001'. So far so good,
but this only happens once, means the 'Maximum Volume Bytes' is set to 
204800 (2GB) to ensure, it doesn't
matter where the external Disk is attached, the files are readable.
If a Backup Job requires more than one Media, the first get's labeled 
and for every new Media required during the
Backup Job, Bacula asks the Operator to label a new Media.

My only solution for this right now is to estimate how much space the 
Backup will use, and label the Volumes
before the Job runs, but as you can imagine thats annoying ...

is there anything i'm missing that this happens ?
thanks for any hint ...

kind regards
Michael Lang

the necessary configurations are :

 Pool{
Name= "Pool-Weekly"
Pool Type   = Backup
Maximum Volume Bytes= 204800
AutoPrune   = yes
Volume Retention= 365 days
Recycle = yes
Recycle Oldest Volume   = yes
Purge Oldest Volume = no
Label Format= 
"Pool-Weekly-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${NumVols:+1:p/4/0/r}"
Storage = "Storage-Weekly"
}


Device {
  Name  = Storage-Weekly
  Media Type= File
  Archive Device= /media/backup02
  LabelMedia= yes; 
  Random Access = Yes;
  AutomaticMount= yes; 
  RemovableMedia= no;
  AlwaysOpen= no;
} 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with 'Automatic Volume Labeling'

2007-11-01 Thread Michael Lang
Arno Lehmann wrote:
> Hi,
>
> 23.10.2007 12:14,, Rich wrote::
>   
>> On 2007.10.23. 11:40, Arno Lehmann wrote:
>> 
>>> Hello,
>>>   
>> ...
>> 
 My only solution for this right now is to estimate how much space the 
 Backup will use, and label the Volumes
 before the Job runs, but as you can imagine thats annoying ...
 
>>> Yes.
>>>
>>>   
 is there anything i'm missing that this happens ?
 thanks for any hint ...
 
>>> I'd first suggest to drop the "LabelFormat" directive. It's deprecated 
>>> and will vanish some day.
>>>
>>> Instead, use a python event to provide names for new volumes.
>>>   
>> umh. i must have missed this... will it really be dropped ? as i am 
>> using it, i don't fancy learning python just to replicate its functionality.
>> 
>
> Well... it won't be dropped anytime soon, but I recall Kern stating 
> that he won't touch that code anymore, so once he needs to rework the 
> code related to automatic volume labeling, it might be gone.
>
> I couldn't say how likely that is, though - might be tomorrow, or in 
> ten years.
>
>   
>> i am using this parameter to create single file per backup job and give 
>> them meaningful names - would it indeed at some point get replaced by a 
>> requirement to script in python ?
>> 
>
> That requirement, by the way, is not very problematic. The sample 
> given in the manual should almost work out of the box, and python is 
> easier to learn than Baculas variable substitution language :-)
>
>   
>>> This is described in the manual, for example 
>>> http://www.bacula.org/dev-manual/Python_Scripting.html#SECTION00356
>>>   
>> ...
>> 
>
> Anyway - I'm operating Bacula installations using the LabelFormat 
> option as well, and those work correctly. But then, these 
> installations haven't labeled a volume for more than a year now, as 
> their pools have reached their maximum number of volumes by now. It 
> might be that there is a bug somewhere, which noone noticed yet.
>
> You could try to set up a test pool and job, where you limit the 
> volumes to, say, 10MB, use the most simple form of LabelFormat, i.e. 
> "Label-" or something, and assign a newly created storage device to it.
>
> Then, run a job, preferrably with debug output enabled, and see what 
> happens.
>
> That should eliminate the chance that some misconfiguration crept into 
> your catalog, and it should give a good set of debug files to analyze 
> quickly.
>   
dont shoot, but ill try to use the python way you recommended :)
but thanks anyway.

Greetz mIke

> Arno
>
>   


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Webbased Report / Logviewer for bacula

2007-11-10 Thread Michael Lang
Hi,

due some requirements in my company, i need a web based (no OS 
limitation, no Application limitation) for
viewing the processed Bacula Jobs status and Logs.
Since i need authentication for sending Mail, i already replace bsmtp 
with a Script written in python.
I found bacula-web right useful except, i'm not sure if it's still under 
development and will be maintained in the
future, so i took a look in django (python web framework) and it wasn't 
to hard to get a simple Online Report.
No changing the bsmtp script to not only mail but in addition add the 
contents to the Database for online
reviewing in one place (no switching between Browser/MUA) wouldn't be a 
big challenge i started to do some
more with django.

A first look alike can be seen at http://193.154.151.162/bacula/ , but 
please notice that viewing the File List can
take a longer time or even time out, depending on your time out settings.

Please feel free to let me know what you think about and what could be 
improved/implemented,
as i consider licensing it under the GPL.

Currently the dependencies are as follows (running on RHEL4/CentOS4):
- access to the Catalog Database
- python2.3
- python- (postgresql, mysql, sqlite3) # depending on your Catalog 
Database
- django Web Framework

kind regards
Michael Lang


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Plugins and ACL support

2009-04-22 Thread Michael Lang
Hi,

when adding a "command" plugin to a fileset with aclsupport enabled the 
backup job will fail with for example following error message:

2-Apr 15:25 server01-fd JobId 1: Error: acl.c:427 acl_get_file error on 
file "/@LDAP@/dc=jackal-net,dc=at": ERR=No such file or directory
22-Apr 15:25 server01-sd JobId 1: Fatal error: fd_cmds.c:181 FD command 
not found: 12549 19 0

the plugin used is "bpipe" plugin getting a LDAP database ...
is there a way to handle both (plugins and aclsupport) within one 
Fileset definition  ?

kind regards

Michael Lang


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] copy jobs between different storage resources

2009-04-27 Thread Michael Lang
Hi,

i didn't find any restriction about copying Jobs (Type "C") between two 
storage resources located on different SD's.
I tried but the job always get canceled telling the the SD is not aware 
of the resource (original pool storage)

i already found that the copy jobs cant be on the same SD within the 
same storage resource, but nothing when the
resources are not located on the same SD, or am i doing something wrong ?
any hints welcome ...

regards
Michael Lang

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users