Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: ASPerience on January 11, 2010, 02:29:53 PM

Title: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on January 11, 2010, 02:29:53 PM
Hi there !

We, ASPerience, just released the 1.3 version of a contrib called smeserver-bacula.
This contrib aims at simplifying configuration of Bacula server on a 7.4 SME.

This project is hosted on sourceforge : smeserverbacula.sourceforge.net
It also hosts bacula rpm compiled for SME 7 (3.0.3).Contribs.org
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: jester on January 11, 2010, 03:41:08 PM
Hi ASPerience,
Sounds interesting, any docs/howto's ?!
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: fpausp on January 13, 2010, 01:27:59 PM
Hi,

I try to test bacula, under templateClient i get the following msg:

Code: [Select]
Not Found

The requested URL /bweb/cgi-bin/bweb.pl was not found on this server.

do you have smeserver specific infos/howtos ?

i have installed that files:

Code: [Select]
[root@fpausp bacula]# ls
bacula-mtx-3.0.3-ASP1.i386.rpm    smeserver-bacula-1.3-0.2.i386.rpm
bacula-mysql-3.0.3-ASP1.i386.rpm
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: cactus on January 13, 2010, 09:30:53 PM
I just had a look at your SRPMs and you seem to do some things in the RPM that are in violation with the SME Server Developers Guide linked from the wiki, e. g. supplying template fragments in the templates-custom tree. This is a no-no for RPMs, custom template fragments are for user configurations. You are actually putting a perl file there which is another bad thing to do.
The db directory in your SRPM holds all kind of files that should not be there IMHO as well as in formats that are not expected there.
Furthermore you are setting a user with a default password in your package, this is a serious security flaw.
As a last part you make extensive use of pre/post macros which should be kept to a bare minimum. A lot of it can be done in a different and more robust method. This way you are creating files that are not owned by the RPM and will not be removed from the system once your package is removed.

Please read up on the SME Server Developers Guide and adjust and fix your RPM accordingly.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: fpausp on January 13, 2010, 10:35:49 PM
Hi cactus,

How can i cleanly remove that ?
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: Stefano on January 13, 2010, 10:48:31 PM
Please read up on the SME Server Developers Guide and adjust and fix your RPM accordingly.

I would suggest to OP to subscribe devs' ML and to share his src rpms
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: cactus on January 13, 2010, 10:51:51 PM
I would suggest to OP to subscribe devs' ML and to share his src rpms
SRPS are available at http://sourceforge.net/projects/smeserverbacula/files/
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: cactus on January 13, 2010, 10:56:04 PM
Hi cactus,

How can i cleanly remove that ?
Start by subscribing to the devinfo mailinglist (http://lists.contribs.org/mailman/listinfo/devinfo) like Stepfano already suggested. Then read through the SME Server Developers Guide and try and iron out some of the issues I stated. If you can not get it fixed or have questions regarding the process raise them on the devinfo mailinglist.

When raising questions be specific to what you do not understand or what is failing as I have pointed out a list of things you should take care of. I can not state all the solutions here (in detail), let alone that it would take me over a day to guide you through the forums. I suggest you study first, then have a go at it and when you fail ask help on devinfo.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: fpausp on January 13, 2010, 10:59:07 PM
OK, thanks !
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: Stefano on January 13, 2010, 11:05:01 PM
SRPS are available at http://sourceforge.net/projects/smeserverbacula/files/

ops.. you are right :-)
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: Bud on January 19, 2010, 06:47:44 AM
hi guys hope you can help

i have installed the following contribs for sme server bacula in the following order:

1. yum localinstalll bacula-mtx-3.0.3-ASP1.i386.rpm
2. yum localinstall bacula-mysql-3.0.3-ASP1.i386.rpm
3. yum localinstall bacula-updatedb-3.0.3-ASP1.i386.rpm (don't know if i needed this but installed it anyway?)
4. yum localinstall smeserver-bacula-1.3-0.2.i386.rpm

all went fine then i tried to install the client contrib

5. yum localinstall bacula-client-3.0.3-ASP1.i386.rpm (this is the error code i get when trying to install the client contrib)

# Error: bacula-mysql conflicts with bacula-client
# Error: bacula-client conflicts with bacula-mysql

i can see the bacula menu option in server-manager with all the bacula menu options (without the client option that is)
how do i install the client contrib?

any help greatly appreciated


Title: Re: [ANNOUNCE] smeserver-bacula
Post by: pearless on May 26, 2010, 12:26:17 AM
I too am very interested in using this with my Compaq MSL5026SL, is there any progress?
Cheers
Douglas
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: pearless on June 01, 2010, 04:56:45 AM
Well I have given up on smeserver-bacula, it was too broken to get working and there was NO response from the author to this thread.

Instead I have compiled, installed and configured bacula on my SMEserver beta 8 (certainly not straight forward!), and I have it running.

I can backup the same files are smeserver uses - I found this out by going:
perl -e 'use esmith::Backup; $b = new esmith::Backup;print join("\n/",$b->restore_list)'
which gave me:

/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root
/etc/sudoers
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/samba/secrets.tdb
/etc/samba/smbpasswd
/etc/smbpasswd

and I added these into the /etc/bacula/bacula-dir.conf file - see part of this file below:
Note: I used the following to preformat it:

perl -e 'use esmith::Backup; $b = new esmith::Backup;print "\n  File = /";print join("\n  File = /",$b->restore_list)'= /",$b->restore

which gave me:

  File = /home/e-smith
  File = /etc/e-smith/templates-custom
  File = /etc/e-smith/templates-user-custom
  File = /etc/ssh
  File = /root
  File = /etc/sudoers
  File = /etc/passwd
  File = /etc/shadow
  File = /etc/group
  File = /etc/gshadow
  File = /etc/samba/secrets.tdb
  File = /etc/samba/smbpasswd
  File = /etc/smbpasswd

so my bacula-dir.conf includes:

======start snip========
# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
#
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitions such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula binary
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
#    File = /sbin
#
# e-smith only backs up these files:
     File = /home/e-smith
     File = /etc/e-smith/templates-custom
     File = /etc/e-smith/templates-user-custom
     File = /etc/ssh
     File = /root
     File = /etc/sudoers
     File = /etc/passwd
     File = /etc/shadow
     File = /etc/group
     File = /etc/gshadow
     File = /etc/samba/secrets.tdb
     File = /etc/samba/smbpasswd
     File = /etc/smbpasswd
  }


# If you backup the root directory, the following two excluded
#   files can be useful
#   
  Exclude {
    File = /var/bacula/working
    File = /tmp
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}
========end snip========

I have configured a tape loader and I have used bconsole to set up the running of the backups (including the bacula catalog so it knows what to restore!), and I have restored various files (e.g. contects of ibays, etc).

I am intending to also try to get the bare-metal recovery going, when time permits

Ideally I'd like to replace flexbackup in my SMEserver as it offers a lot of very useful features, including multiple clients, tape spanning, being able to restore just certain files, etc etc; however I have never developed an interface to SMEserver and I am not too sure where to start; I guess I might either have to read the developers guide, or simply continue to SSH and use bconsole.  I have found the Windows BAT client too buggy and it seems to die all the time on my workstation.

Is anyone else interested?  If so, I may write a HOWTO.

Cheers
Douglas.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: daniel on June 01, 2010, 03:50:44 PM
I am interested in your howto.  I've needed a backup solution that will span multiple tapes and allow me easy redirected restores of select files, either by a text based GUI or a command line.  Flexbackup is good, but when backing up 300-500GB of data each night for off site system recovery as part of Risk Managment, flexbackup just doesn't work with multiple tapes or mounted data drive spaces.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: pearless on June 07, 2010, 07:25:55 AM
I have started a new thread here http://forums.contribs.org/index.php/topic,46118.0.html
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on June 07, 2010, 11:28:15 PM
Hi,

I'm afraid none of the team didn't respond to this thread. I have never saw this thread before today.
There was someone in our team that left us that had to publish the code and documentation, and respond to questions.
I think he didn't had enough time to do all his missions.
I'll try to respond to some questions. We'll try to make some updates as well in the next months.


"Sounds interesting, any docs/howto's ?!"
I'm afraid there aren't many. We tried to make the plugin as friendly as possible and we've put most of documentation in the screens.


"Not Found
The requested URL /bweb/cgi-bin/bweb.pl was not found on this server."
Yes, we must delete the frame

"supplying template fragments in the templates-custom tree"
Could you be more precise?

"As a last part you make extensive use of pre/post macros which should be kept to a bare minimum."
In fact, making a full working configuration and having the ability to restore an old configuration has lead us to write the plugin as it is.
Even if it's not like other plugins. But this plugin is far more consequent as some other plugins because bacula is a very complex tool

"Please read up on the SME Server Developers Guide and adjust and fix your RPM accordingly."
We can evolve a little, but we won't rewrite the plugin. We've no budget for that. This plugin is installed for many client where we just use the plugin.

"SRPS are available at http://sourceforge.net/projects/smeserverbacula/files/"
Yes. Full open source. You know, if you want to correct the plugin to add features or be more "SME Server Developers Guide" friendly, I can put some hours in our budgets to re-read, test and release the new code

To install on SME:

yum install smeserver-bacula bacula-mysql bacula-mtx
signal-event post-upgrade; signal-event reboot

There is a note in corrections to do:
sed -i 's/DomainName/domainName/g' /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/misajourBacula.pm

mkdir /bacula
chown bacula:bacula /bacula

mkdir dist /backup
chown bacula:bacula /backup/dist/
mkdir local /backup
chown bacula:bacula /backup/local/

verify server date


I'm ready to respond to new questions
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on June 08, 2010, 12:19:26 AM
Hi,
The db directory in your SRPM holds all kind of files that should not be there IMHO as well as in formats that are not expected there.

Just looked. As bacula is far more complex to configure as some other tools, we've pre-filled databases with datas in order to help users. I we delete this, I'm afraid the plugin wouldn't serve anymore.

What do you think? bacula-fileset is the most useful
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: pearless on June 08, 2010, 12:44:15 AM
Hi,

Thanks for taking the time to reply in this forum to my direct email to yourself.

I am more than happy to assist in getting your contrib cleaned up (caveat: I am not very familiar with the inner workings of SME Server - yet), is it possible to have your contrib re-released so that the when installing the client, we don't get a message that that it conflicts with the other files in you contrib? (I am trialing it on SMEServer Beta 8.05.)

What data did you need to pre-load into SQL tables?

Cheers
Douglas.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on June 08, 2010, 01:00:47 AM
Hi,

Thanks for taking the time to reply in this forum to my direct email to yourself.

I am more than happy to assist in getting your contrib cleaned up (caveat: I am not very familiar with the inner workings of SME Server - yet), is it possible to have your contrib re-released so that the when installing the client, we don't get a message that that it conflicts with the other files in you contrib? (I am trialing it on SMEServer Beta 8.05.)

What data did you need to pre-load into SQL tables?

Cheers
Douglas.


you don't need to install a client."yum install smeserver-bacula bacula-mysql bacula-mtx" should be the only installation needed. no data to pre-load neither. data is in SME db files

i'll try next to install in SME 8.0
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: pearless on June 08, 2010, 02:13:25 AM
I have managed to get the client installed, (not sure how, it was on an older VMware image I had)  :-)

Would it be possible to also provide the en-us locale information, not just the french so the forms display properly, for example, the form title just shows 'FORM_TITLE", etc, as I note that the en-us locale is the default - I use en-nz which would default to en-us but there are not locale files there.

Cheers
Douglas.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: cactus on June 08, 2010, 07:34:15 AM
Would it be possible to also provide the en-us locale information, not just the french so the forms display properly, for example, the form title just shows 'FORM_TITLE", etc, as I note that the en-us locale is the default - I use en-nz which would default to en-us but there are not locale files there.
Perhaps it would be a good thing to add it to SME Server CVS, benefits are that the package can be translated using the translation interface we have as well as it being distributed through the SME Server SME Contribs repository, simplifying installation.
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on June 08, 2010, 11:11:05 AM
I have managed to get the client installed, (not sure how, it was on an older VMware image I had)  :-)

Would it be possible to also provide the en-us locale information, not just the french so the forms display properly, for example, the form title just shows 'FORM_TITLE", etc, as I note that the en-us locale is the default - I use en-nz which would default to en-us but there are not locale files there.

Cheers
Douglas.

If you want to make the translations, you're welcome... I'll try to do it this summer if not overbooked
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: ASPerience on June 08, 2010, 11:14:14 AM
Perhaps it would be a good thing to add it to SME Server CVS, benefits are that the package can be translated using the translation interface we have as well as it being distributed through the SME Server SME Contribs repository, simplifying installation.

Why not. Could you mail me the link how to create an account
Title: Re: [ANNOUNCE] smeserver-bacula
Post by: byte on June 08, 2010, 01:13:03 PM
Why not. Could you mail me the link how to create an account

Please read and follow the steps below:

http://wiki.contribs.org/Package_Modification

Thanks