Changesets: bareos

master 83b449e3

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Update README.md
mod - README.md Diff File

master c17a30e1

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Reverse data channel initialization

It would be nice if the initialization of the data channel could be
reversed, so that the SD connects to the FD. This would make the
network setup and firewalling much easier in many cases, and make
tricks like ssh tunnels no longer necessary. For Example things like
SDs being situated behind a NAT gateway would be no problem anymore.

We can also tag this as the firewall friendly solution. The default
for all clients is still active mode e.g. FD contacts SD but when
the DIR and SD are within a firewalled site and the FD is in a DMZ
or out on the Internet you can define the client as a passive client
and the DIR and SD will contact the FD so you have only socket
connections being initiated from the secure site without the need for
special resolving tricks (like a split DNS) and/or portforwarders on the
firewall that tunnel the traffic from the DMZ or Internet to your SD.

This passive mode is implemented for Backups, Restores and Verifies
of Jobs. The Director checks the version of the client to make sure
it supports the new passive protocol features.

Fixes 0000061: reverse data channel initialization
Affected Issues
0000061
mod - src/stored/stored_conf.h Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/sd_cmds.c Diff File
mod - src/stored/protos.h Diff File
mod - src/stored/fd_cmds.c Diff File
mod - src/stored/authenticate.c Diff File
mod - src/stored/Makefile.in Diff File
mod - src/include/jcr.h Diff File
mod - src/filed/verify_vol.c Diff File
add - src/filed/sd_cmds.c Diff File
mod - src/filed/protos.h Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed.c Diff File
mod - src/filed/authenticate.c Diff File
mod - src/filed/Makefile.in Diff File
mod - src/dird/verify.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/sd_cmds.c Diff File
mod - src/dird/restore.c Diff File
mod - src/dird/fd_cmds.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/bsr.c Diff File
mod - src/dird/backup.c Diff File

master 0582f4b8

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Upgrade config.guess and config.sub to autoconf-2.69
mod - autoconf/config.sub Diff File
mod - autoconf/config.guess Diff File

master f5213af7

2013-05-04 21:13

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Reject incorrect modulo specifications

Now the parser rejects incorrect modulo specifications
with an error and a hint to the correct format.

Fixes 0000135: modulo scheduler does not work with weeks

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000135
mod - src/dird/run_conf.c Diff File

master cabe90c9

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Rename global resource in director,

Rename the global director variable to the same name used in the storage
daemon and filedaemon which is me. Also drop the two global variables
for the FD and SD timeout as those are part of the global resource
anyway so we can reference the me variable and don't need to polute the
global naming space of the binary with them.
mod - src/dird/verify.c Diff File
mod - src/dird/vbackup.c Diff File
mod - src/dird/ua_tree.c Diff File
mod - src/dird/ua_server.c Diff File
mod - src/dird/ua_query.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/sd_cmds.c Diff File
mod - src/dird/restore.c Diff File
mod - src/dird/ndmp_dma.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/job.c Diff File
mod - src/dird/fd_cmds.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/backup.c Diff File
mod - src/dird/authenticate.c Diff File

master 682b2923

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Tweak set boolean values to true or false.
mod - src/stored/dircmd.c Diff File
mod - src/filed/job.c Diff File

master 70c544f7

2013-05-04 21:13

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
add fastzlib to windows

this patch enables the use of fastlzlib
for the windows version of bareos.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - src/win32/filed/Makefile Diff File
mod - src/win32/compat/include/mingwconfig.h Diff File
mod - platforms/win32/winbareos64.spec Diff File
mod - platforms/win32/winbareos32.spec Diff File
mod - platforms/win32/winbareos.nsi Diff File
mod - platforms/win32/winbareos-nsi.spec Diff File

master acce0253

2013-05-04 21:13

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
added BuildRequires: libfastlz-devel to spec

as we now support the fastlz library, we also want
to build support for it into our rpm packages.
As configure already checks for it, we only have
to add the devel package to the buildrequires.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - platforms/rpms/bareos.spec Diff File

master f51c511c

2013-05-04 21:13

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
fixed typo in bareos-dir startscript

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - platforms/suse/bareos-dir.in Diff File

master c709d45d

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Fix statistics retention default value.

60s * 60m * 24h * 31d * 12m * 5 != 5 years
60s * 60m * 365d * 5 != 5 years

But the second value is much closer then using 12 months with
31 days of which 4 months have 30 days and one has either 28
e.g. 3 days less or at best 29 days so 2 days less. When multiplied
with 5 years this mean you calculate something 30+ days to much.
mod - src/dird/dird_conf.c Diff File

master 735cc85f

2013-05-04 21:13

mvwieringen adm

Ported: N/A

Details Diff
Fix comments so that we know what the value actually means.
mod - src/stored/stored_conf.c Diff File
mod - src/include/host.h.in Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/dird/dird_conf.c Diff File

master d2120868

2013-05-04 21:12

mvwieringen adm

Ported: N/A

Details Diff
Fix wrong default timeouts.

When converting the default timeouts in the config engine set them
to 180 instead of the wanted 1800 seconds.
mod - src/stored/stored_conf.c Diff File
mod - src/filed/filed_conf.c Diff File

master b6fd4778

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Rebuild configure and config.h.in
mod - configure Diff File
mod - autoconf/config.h.in Diff File

master 8ffc55fb

2013-05-04 21:11

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Implementation of LZ4 and LZ4HC compression

Currently we support ZLIB based gzip compression and LZO2 compression.
LZ4 and LZ4HC (High Compression) are like LZO2 but are much faster on
decompression and are implemented as a single source file per compressor.

As we don't want to handle things like uncompressable data etc ourself
we settled for a wrapper library which mimics the zlib API and supports
the following compression algorithms:

- FASTLZ
- LZ4
- LZ4HC

The library is available at https://github.com/exalead/fastlzlib
and the few fixes needed to make it work with Bareos are currently
in a pullrequest to the original project.

For the period until the patches merge we have a clone under the bareos project
on github.

Fixes 0000033: Implementation of LZ4 and LZ4HC compression

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000033
mod - src/stored/bextract.c Diff File
mod - src/stored/Makefile.in Diff File
mod - src/include/jcr.h Diff File
mod - src/include/ch.h Diff File
mod - src/findlib/match.c Diff File
mod - src/filed/protos.h Diff File
mod - src/filed/fileset.c Diff File
mod - src/filed/compression.c Diff File
mod - src/filed/backup.c Diff File
mod - src/filed/Makefile.in Diff File
mod - src/dird/inc_conf.c Diff File
mod - autoconf/configure.in Diff File

master 1df761d5

2013-05-04 21:11

joergs


Committer: mvwieringen adm

Ported: N/A

Details Diff
bugfix: init scripts status on SUSE systems

init scripts have been broken.
This patch makes small adjustments, to fix these problems.

Fixes 0000069: /etc/init.d/bareos-* status always return "running", even if daemon does not run

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000069
mod - platforms/suse/bareos-sd.in Diff File
mod - platforms/suse/bareos-fd.in Diff File
mod - platforms/suse/bareos-dir.in Diff File

master 588563ce

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Fix MaxRunSchedTime to cancel Job in time.

Modified the code so MaxRunSchedTime will use the new
initial_sched_time when checking to see if a job should be canceled.

We have a set of jobs that we want to definitely end at a known
time - Z hours after they've been initially scheduled - no matter what
state the job is in.

Patch by Thomas Lohman from bacula devel mailinglist.
mod - src/lib/jcr.c Diff File
mod - src/include/jcr.h Diff File
mod - src/dird/jobq.c Diff File
mod - src/dird/job.c Diff File
mod - AUTHORS Diff File

master 20ccfb1a

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Sync some fixes from Amanda.
mod - src/ndmp/ndmjob_job.c Diff File
mod - src/ndmp/ndma_noti_calls.c Diff File

master e82b5edf

2013-05-04 21:11

joergs


Committer: mvwieringen adm

Ported: N/A

Details Diff
initscripts: use debian 6.0 skeleton

recreate Debian and Ubuntu init scripts based on Debian/Ubuntu skeleton file.
Advantages:
- use standard skeleton
- "status" is now implemented and working, see bug 0000050
- start order: if a database is installed, it is started before the bareos-director
- Debian and Ubuntu are using the same init scripts
- bareos-dir, bareos-sd and bareos-fd are based on the same skeleton and differ only at the variables values
Changed:
- Debian standard skeleton utilise the VERBOSE variable.
By default, VERBOSE equals "no" and init script are completly quiet.
We follow this standard, even so we don't like it.
This behavior can be changed by setting "VERBOSE=yes" in /etc/defaults/rcS

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000050
add - platforms/ubuntu/bareos-sd.in Diff File
rm - platforms/ubuntu/bareos-sd.in Diff File
add - platforms/ubuntu/bareos-fd.in Diff File
rm - platforms/ubuntu/bareos-fd.in Diff File
add - platforms/ubuntu/bareos-dir.in Diff File
rm - platforms/ubuntu/bareos-dir.in Diff File
mod - platforms/debian/bareos-sd.in Diff File
mod - platforms/debian/bareos-fd.in Diff File
mod - platforms/debian/bareos-dir.in Diff File
mod - debian/control Diff File

bareos-12.4 2a6523a9

2013-05-04 21:11

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
initscripts: use debian 6.0 skeleton

recreate Debian and Ubuntu init scripts based on Debian/Ubuntu skeleton file.
Advantages:
- use standard skeleton
- "status" is now implemented and working, see bug 0000050
- start order: if a database is installed, it is started before the bareos-director
- Debian and Ubuntu are using the same init scripts
- bareos-dir, bareos-sd and bareos-fd are based on the same skeleton and differ only at the variables values
Changed:
- Debian standard skeleton utilise the VERBOSE variable.
By default, VERBOSE equals "no" and init script are completly quiet.
We follow this standard, even so we don't like it.
This behavior can be changed by setting "VERBOSE=yes" in /etc/defaults/rcS

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000050, 0000218
mod - debian/control Diff File
mod - platforms/debian/bareos-dir.in Diff File
mod - platforms/debian/bareos-fd.in Diff File
mod - platforms/debian/bareos-sd.in Diff File
rm - platforms/ubuntu/bareos-dir.in Diff File
add - platforms/ubuntu/bareos-dir.in Diff File
rm - platforms/ubuntu/bareos-fd.in Diff File
add - platforms/ubuntu/bareos-fd.in Diff File
rm - platforms/ubuntu/bareos-sd.in Diff File
add - platforms/ubuntu/bareos-sd.in Diff File

master b765842f

2013-05-04 21:11

joergs


Committer: mvwieringen adm

Ported: N/A

Details Diff
more deterministic

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - test/all Diff File

master 251a8bcf

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Rebuild configure.
mod - configure Diff File

master 4b5f1db7

2013-05-04 21:11

joergs


Committer: mvwieringen adm

Ported: N/A

Details Diff
travis: update to preinst script modified by configure

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - .travis.yml Diff File

master 86b7b807

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
add daemon user to required groups

bareos storage daemon user must be in groups tape and/or disk
to be able to access tape devices.
Due to different behavior of different distributions
(install order if not always the same),
every package that requires a specific group/user set this up on its own.

preinstall:
bareos-common: setup default daemon group bareos and user bareos
bareos-filedaemon: setup fd group (bareos) and user (root)
bareos-storage: setup sd group (bareos) and user (bareos)
bareos-director: setup dir group (bareos) and user (bareos)

postinstall:
bareos-storage:
call bareos-config setup_sd_user, which
checks if sd group and user exists, otherwise it creates them,
and add the sd user (bareos) to the groups tape and disk, if they exists.

Tested on: Debian 6, Ubuntu 12.04 (32bit), SLES11SP2, Centos5

Fixes 0000099: user bareos unable to operate tape changer due to wrong permissions

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000099
mod - scripts/bareos-config.in Diff File
mod - platforms/rpms/bareos.spec Diff File
add - debian/bareos-storage.preinst.in Diff File
rm - debian/bareos-storage.preinst Diff File
mod - debian/bareos-storage.postinst Diff File
add - debian/bareos-filedaemon.preinst.in Diff File
rm - debian/bareos-filedaemon.preinst Diff File
add - debian/bareos-director.preinst.in Diff File
rm - debian/bareos-director.preinst Diff File
mod - autoconf/configure.in Diff File

master c3864814

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Rebuild configure.
mod - configure Diff File

master 26ae9991

2013-05-04 21:11

mvwieringen adm

Ported: N/A

Details Diff
Allow for relaxed TLS configuration.

Current the verify_peer flag is hardcoded to true for the console
programs. It would be nice if we would allow a somewhat relaxed
TLS mode that allows to establish a TLS connection without the
need for very strict certificate checking which is done now. The
default setting is the same as before but the administrator can
relax this setting by setting the "TLS Verify Peer" option to
false in a definition of the client connection.

This doesn't have severe security implications as the authorization
with challenge response (md5 hashes) is done before the TLS handshake.
So this means you can have the same security as a non TLS connection
but with a relaxed config which means you get a encrypted datastream
even when you haven't put the whole certificate enrollment in place
e.g. CA certificate and potentially client certificates. Protocols
like LDAPS and ESMTP also allow this.

This is also the first version of the GNUTLS code that allows an
TLS encrypted session with the GNUTLS library as a replacement for
the openssl code. This currently is only tested with the relaxed
TLS configuration options set e.g. TLS Verify Peer = no

Fixes 0000122: Allow for relaxed TLS configuration.
Affected Issues
0000122
mod - src/stored/stored_conf.h Diff File
mod - src/qt-console/bcomm/dircomm.cpp Diff File
mod - src/qt-console/bat_conf.h Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/lib/tls_openssl.c Diff File
mod - src/lib/tls_nss.c Diff File
mod - src/lib/tls_gnutls.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/console/console_conf.h Diff File
mod - src/console/console_conf.c Diff File
mod - src/console/console.c Diff File
mod - autoconf/configure.in Diff File
 First  Prev  1 2 3 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 682 683 684 685 686 687 688 ... 695 696 697  Next  Last