Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-bacula

Offline ASPerience

  • 14
  • +0/-0
    • ASPerience
[ANNOUNCE] smeserver-bacula
« 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
« Last Edit: January 11, 2010, 02:31:52 PM by ASPerience »

Offline jester

  • *
  • 496
  • +1/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #1 on: January 11, 2010, 03:41:08 PM »
Hi ASPerience,
Sounds interesting, any docs/howto's ?!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #2 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
Viribus unitis

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [ANNOUNCE] smeserver-bacula
« Reply #3 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #4 on: January 13, 2010, 10:35:49 PM »
Hi cactus,

How can i cleanly remove that ?
Viribus unitis

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #5 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [ANNOUNCE] smeserver-bacula
« Reply #6 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/
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [ANNOUNCE] smeserver-bacula
« Reply #7 on: January 13, 2010, 10:56:04 PM »
Hi cactus,

How can i cleanly remove that ?
Start by subscribing to the devinfo mailinglist 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline fpausp

  • *
  • 728
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #8 on: January 13, 2010, 10:59:07 PM »
OK, thanks !
Viribus unitis

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #9 on: January 13, 2010, 11:05:01 PM »

Offline Bud

  • *
  • 487
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #10 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


« Last Edit: January 19, 2010, 06:51:21 AM by Bud »

Offline pearless

  • *
  • 38
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #11 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

Offline pearless

  • *
  • 38
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #12 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.
« Last Edit: June 01, 2010, 05:51:34 AM by pearless »

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: [ANNOUNCE] smeserver-bacula
« Reply #13 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.

Offline pearless

  • *
  • 38
  • +0/-0
Re: [ANNOUNCE] smeserver-bacula
« Reply #14 on: June 07, 2010, 07:25:55 AM »