Subscribe to
Posts
Comments

Backup software

I use a piece of software called Bacula to make backups of the data on our home PC’s and on various websites.

Version 2.0 of Bacula has just been released!

I have built a set of RPMs for fedora core 4. They were built using this spec file in the following procedure.

Installing v2.0

Configure

CFLAGS=”-g -Wall” ./configure \
–prefix=/usr \
–sbindir=/usr/sbin \
–sysconfdir=/etc/bacula \
–with-scriptdir=/etc/bacula \
–enable-smartalloc \
–enable-gnome \
–with-mysql \
–with-working-dir=/var/bacula \
–with-pid-dir=/var/run \
–with-subsys-dir=/var/lock/subsys \
–enable-conio

Then copy bacula.spec to ~/bacula_v2

Then cp bacula-2.0.0.tar.gz ~/rpmbuild/SOURCES/

wget ‘http://switch.dl.sourceforge.net/sourceforge/bacula/depkgs-04Jan07.tar.gz’

Edit bacula.spec to refer to this depkgs version at the top.

[chris@lilac bacula_v2]$ cd bacula-2.0.0
[chris@lilac bacula-2.0.0]$ ls
ABOUT-NLS ChangeLog config.out COPYING kernstodo Makefile.in platforms README scripts technotes-1.39
AUTHORS CheckList config.status examples LICENSE manpages po README.AIX src updatedb
autoconf config.log configure INSTALL Makefile patches projects ReleaseNotes SUPPORT VERIFYING
[chris@lilac bacula-2.0.0]$ mkdir /tmp/tt
[chris@lilac bacula-2.0.0]$ cp ReleaseNotes /tmp/tt/Release_Notes-2.0.0-1.txt
[chris@lilac bacula-2.0.0]$ cd /tmp/tt
[chris@lilac tt]$ tar -czvf Release_Notes-2.0.0-1.tar.gz Release_Notes-2.0.0-1.txt
Release_Notes-2.0.0-1.txt
[chris@lilac tt]$ cp Release_Notes-2.0.0-1.tar.gz ~/rpmbuild/SOURCES/

cp bacula-docs-2.0.0.tar.gz ~/rpmbuild/SOURCES/

cd ~/rpmbuild/SOURCES/
[chris@lilac SOURCES]$ wget ‘http://kent.dl.sourceforge.net/sourceforge/bacula/bacula-rescue-2.0.0.tar.gz’

Edit bacula.spec to refer to this version.

Then rpmbuild -ba –define ‘build_fc4 1′ –define ‘build_mysql 1′ –define ‘build_mysql4 1′ bacula.spec

[root@lilac ~]# /etc/bacula/bacula stop
Stopping the Bacula File daemon
Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word