Re: [Bacula-users] Alternating two usb disks
hi, -Original Message- From: Fabrizio Reale [mailto:fabrizio.re...@redomino.com] Sent: Tue 9/22/2009 10:03 AM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Alternating two usb disks Hi all, I would like to store my volumes on two usb disks in order to keep one disk in a safe place. I want to exchange the disks once per week. I set up my storage in this way: by defining Use Volume Once = yes in the matching pool configuration you can force bacula to create a new backupfile with every job. here is a configuration snipplet i use: Pool { Name = Main-Pool Pool Type = Backup Recycle = no AutoPrune = no Volume Retention = 365 days Use Volume Once = yes Maximum Volume Bytes = 4831838208 LabelFormat = ${Client}_${Job}_${Level}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}:${Second :p/2/0/r} } lg gerald Device { Name = FileStorage Device Type = File Media Type = File Archive Device = /opt/bacula/disk LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = yes AlwaysOpen = no RequiresMount = Yes Mount Point = /opt/bacula/disk Mount Command = /bin/mount /opt/bacula/disk Unmount Command = /bin/umount /opt/bacula/disk } But when I switch the disks Bacula looks for the last Volume which is still appendable. I would like it could start with a new Volume without asking anything. Is that possible? Thank you, Fabrizio -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] allways full even if incremental
hi, On Tue, 2009-09-08 at 19:56 +0100, Martin Simmons wrote: On Tue, 08 Sep 2009 14:05:19 +0200, Gerald Leier said: hello, i noticed some strange behaviour when backing up one of our linux hosts with bacula. bacula allways backs up everything. if i run it 3 times in a row it allways produces the same amount of files (Incremental backup) at first i thought it may be because of some timestamps missing.. but the mount options are the same on hosts that dont do a allways full never incremental even if incremental backup. any suggestions how to debug that, or any ideas what can cause that behaviour? bacula version is 3.0.1 the filesystem taht makes trouble: / type ext3 (rw,acl,user_xattr) kernel: 2.6.16.60 Does Bacula upgrade all of the jobs to Full or is it running them as Incremental? The log output shows this. it is running them as incremental. Are you using the same fileset for working and broken hosts? yes its the same fileset for the other linux hosts. gerald __Martin -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] allways full even if incremental
hello, i noticed some strange behaviour when backing up one of our linux hosts with bacula. bacula allways backs up everything. if i run it 3 times in a row it allways produces the same amount of files (Incremental backup) at first i thought it may be because of some timestamps missing.. but the mount options are the same on hosts that dont do a allways full never incremental even if incremental backup. any suggestions how to debug that, or any ideas what can cause that behaviour? bacula version is 3.0.1 the filesystem taht makes trouble: / type ext3 (rw,acl,user_xattr) kernel: 2.6.16.60 lg gerald -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] failing to build a statically linked bacula-fd (3.0.1)
Hello, I am having problems compiling a statically linked bacula-fd suitable for putting on a rescue/recovery installation. cd bacula-3.0.1 make clean ./configure --prefix=/usr/bacula \ --sbindir=/usr/bacula/bin \ --sysconfdir=/usr/bacula/bin \ --with-scriptdir=/usr/bacula/bin \ --enable-smartalloc \ --enable-client-only \ --enable-static-fd make ; make install ldd /usr/bacula/bin/bacula-fd linux-gate.so.1 = (0xe000) libz.so.1 = /lib/libz.so.1 (0xb7fb2000) libbacfind.so.1 = /usr/bacula/lib/libbacfind.so.1 (0xb7fa6000) libbacpy.so.1 = /usr/bacula/lib/libbacpy.so.1 (0xb7fa4000) libbaccfg.so.1 = /usr/bacula/lib/libbaccfg.so.1 (0xb7f9d000) libbac.so.1 = /usr/bacula/lib/libbac.so.1 (0xb7f53000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e6f000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e64000) libpthread.so.0 = /lib/libpthread.so.0 (0xb7e4f000) libdl.so.2 = /lib/libdl.so.2 (0xb7e4b000) libssl.so.0.9.8 = /usr/lib/libssl.so.0.9.8 (0xb7e0e000) libcrypto.so.0.9.8 = /usr/lib/libcrypto.so.0.9.8 (0xb7ce5000) libm.so.6 = /lib/libm.so.6 (0xb7cc) libc.so.6 = /lib/libc.so.6 (0xb7b9e000) /lib/ld-linux.so.2 (0xb7fd4000) i assumed that there should be no dependencies on any shared libs with a statically built bacula. has anyone an idea what i do wrong? thanks gerald below is the output after a successfull ./configure run Configuration on Mon Jun 15 06:50:56 EDT 2009: Host:i686-pc-linux-gnu -- suse 10 Bacula version: Bacula 3.0.1 (30 April 2009) Source code location:. Install binaries:/usr/bacula/bin Install libraries: /usr/bacula/lib Install config files:/usr/bacula/bin Scripts directory: /usr/bacula/bin Archive directory: Working directory: /usr/bacula/var/bacula/working PID directory: /var/run Subsys directory:/var/lock/subsys Man directory: ${datarootdir}/man Data directory: /usr/bacula/share Plugin directory:/usr/bacula/lib C Compiler: gcc 4.1.2 C++ Compiler:/usr/bin/g++ 4.1.2 Compiler flags: -g -O2 -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti Linker flags: Libraries: -lpthread -ldl Statically Linked Tools: no Statically Linked FD: yes Statically Linked SD: no Statically Linked DIR: no Statically Linked CONS: no Database type: None Database port: Database lib: Database name: bacula Database user: bacula Job Output Email:r...@localhost Traceback Email: r...@localhost SMTP Host Address: localhost Director Port: 9101 File daemon Port:9102 Storage daemon Port: 9103 Director User: Director Group: Storage Daemon User: Storage DaemonGroup: File Daemon User: File Daemon Group: SQL binaries Directory Large file support: yes Bacula conio support:yes -lncurses readline support:no TCP Wrappers support:no TLS support: yes Encryption support: yes ZLIB support:yes enable-smartalloc: yes enable-lockmgr: no bat support: no enable-gnome:no enable-bwx-console: no enable-tray-monitor: no client-only: yes build-dird: yes build-stored:yes ACL support: no XATTR support: yes Python support: no Batch insert enabled:no
Re: [Bacula-users] failing to build a statically linked bacula-fd (3.0.1)
: no XATTR support: yes Python support: no Batch insert enabled:no On Mon, 2009-06-15 at 13:02 +0200, Gerald Leier wrote: Hello, I am having problems compiling a statically linked bacula-fd suitable for putting on a rescue/recovery installation. cd bacula-3.0.1 make clean ./configure --prefix=/usr/bacula \ --sbindir=/usr/bacula/bin \ --sysconfdir=/usr/bacula/bin \ --with-scriptdir=/usr/bacula/bin \ --enable-smartalloc \ --enable-client-only \ --enable-static-fd make ; make install ldd /usr/bacula/bin/bacula-fd linux-gate.so.1 = (0xe000) libz.so.1 = /lib/libz.so.1 (0xb7fb2000) libbacfind.so.1 = /usr/bacula/lib/libbacfind.so.1 (0xb7fa6000) libbacpy.so.1 = /usr/bacula/lib/libbacpy.so.1 (0xb7fa4000) libbaccfg.so.1 = /usr/bacula/lib/libbaccfg.so.1 (0xb7f9d000) libbac.so.1 = /usr/bacula/lib/libbac.so.1 (0xb7f53000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e6f000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e64000) libpthread.so.0 = /lib/libpthread.so.0 (0xb7e4f000) libdl.so.2 = /lib/libdl.so.2 (0xb7e4b000) libssl.so.0.9.8 = /usr/lib/libssl.so.0.9.8 (0xb7e0e000) libcrypto.so.0.9.8 = /usr/lib/libcrypto.so.0.9.8 (0xb7ce5000) libm.so.6 = /lib/libm.so.6 (0xb7cc) libc.so.6 = /lib/libc.so.6 (0xb7b9e000) /lib/ld-linux.so.2 (0xb7fd4000) i assumed that there should be no dependencies on any shared libs with a statically built bacula. has anyone an idea what i do wrong? thanks gerald below is the output after a successfull ./configure run Configuration on Mon Jun 15 06:50:56 EDT 2009: Host:i686-pc-linux-gnu -- suse 10 Bacula version: Bacula 3.0.1 (30 April 2009) Source code location:. Install binaries:/usr/bacula/bin Install libraries: /usr/bacula/lib Install config files:/usr/bacula/bin Scripts directory: /usr/bacula/bin Archive directory: Working directory: /usr/bacula/var/bacula/working PID directory: /var/run Subsys directory:/var/lock/subsys Man directory: ${datarootdir}/man Data directory: /usr/bacula/share Plugin directory:/usr/bacula/lib C Compiler: gcc 4.1.2 C++ Compiler:/usr/bin/g++ 4.1.2 Compiler flags: -g -O2 -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti Linker flags: Libraries: -lpthread -ldl Statically Linked Tools: no Statically Linked FD: yes Statically Linked SD: no Statically Linked DIR: no Statically Linked CONS: no Database type: None Database port: Database lib: Database name: bacula Database user: bacula Job Output Email:r...@localhost Traceback Email: r...@localhost SMTP Host Address: localhost Director Port: 9101 File daemon Port:9102 Storage daemon Port: 9103 Director User: Director Group: Storage Daemon User: Storage DaemonGroup: File Daemon User: File Daemon Group: SQL binaries Directory Large file support: yes Bacula conio support:yes -lncurses readline support:no TCP Wrappers support:no TLS support: yes Encryption support: yes ZLIB support:yes enable-smartalloc: yes enable-lockmgr: no bat support: no enable-gnome:no enable-bwx-console: no enable-tray-monitor
Re: [Bacula-users] failing to build a statically linked bacula-fd (3.0.1)
hi, On Mon, 2009-06-15 at 14:52 +0200, Thomas wrote: hi, my first try was: ./configure --enable-static-fd --enable-client-only configure-output Statically Linked FD:yes make . Linking bacula-fd ... /home/thomas/bacula-3.0.1/libtool --silent --tag=CXX --mode=link /usr/lib/ccache/g++ -L../lib -L../findlib .. and the result was a dynamically linked bacula-fd. contrary to some documentation out there in the wild i think it may not be possible to statically build bacula-fd at all! just read something about the impossibility to use dlopen with a statically linked libstdc++.so.6 libgcc_s.so.1. ( http://www.trilithium.com/johan/2005/06/static-libstdc/ ) can someone please verify that static bacula-fd builds are impossible? its not that big of a problem to not use a statically built bacula-fd. the only benefit for me would be that i have to put less files on my rescue filesystem. thanks gerald in the configure script i found: --enable-libtoolenable building using GNU libtool [default=yes] and ~23.000 lines deeper: if test ${enable_static_fd+set} = set; then enableval=$enable_static_fd; if test x$enableval = xyes; then if test x$use_libtool = xyes; then echo Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool exit 1 so i tried to compile with ./configure --enable-static-fd --enable-client-only --enable-libtool=no now the gcc tries to build a static binary, but it fails: Linking bacula-fd ... /usr/lib/ccache/g++ -L../lib -L../findlib -o bacula-fd filed.o authenticate.o acl.o backup.o estimate.o fd_plugins.o accurate.o filed_conf.o heartbeat.o job.o pythonfd.o restore.o status.o verify.o verify_vol.o xattr.o \ -lacl -lz -lbacfind -lbacpy -lbaccfg -lbac -lm -lpthread -ldl \ -lssl -lcrypto /usr/lib/ccache/g++ -static -L../lib -L../findlib -o static-bacula-fd filed.o authenticate.o acl.o backup.o estimate.o fd_plugins.o accurate.o filed_conf.o heartbeat.o job.o pythonfd.o restore.o status.o verify.o verify_vol.o xattr.o \ -lacl -lz -lbacfind -lbacpy -lbaccfg -lbac -lm -lpthread -ldl \ -lssl -lcrypto /usr/bin/ld: cannot find -lz collect2: ld gab 1 als Ende-Status zurück make[1]: *** [static-bacula-fd] Fehler 1 make[1]: Leaving directory `/home/thomas/bacula-3.0.1/src/filed' so, i think this is a bug in the configure-script. Gerald Leier schrieb: hello, i just tried with some extended options (disabled openssl, set global static flag) ./configure --prefix=/usr/bacula \ --sbindir=/usr/bacula/bin \ --sysconfdir=/usr/bacula/bin \ --with-scriptdir=/usr/bacula/bin \ --enable-smartalloc \ --enable-client-only \ --enable-static-fd \ --enable-static \ --with-openssl=no but still no static binary: sles10-i386:/usr/src/bacula-3.0.1 # ldd /usr/bacula/bin/bacula-fd linux-gate.so.1 = (0xe000) libz.so.1 = /lib/libz.so.1 (0xb7f9b000) libbacfind.so.1 = /usr/bacula/lib/libbacfind.so.1 (0xb7f8f000) libbacpy.so.1 = /usr/bacula/lib/libbacpy.so.1 (0xb7f8d000) libbaccfg.so.1 = /usr/bacula/lib/libbaccfg.so.1 (0xb7f86000) libbac.so.1 = /usr/bacula/lib/libbac.so.1 (0xb7f43000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e5f000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e54000) libpthread.so.0 = /lib/libpthread.so.0 (0xb7e3f000) libdl.so.2 = /lib/libdl.so.2 (0xb7e3b000) libm.so.6 = /lib/libm.so.6 (0xb7e16000) libc.so.6 = /lib/libc.so.6 (0xb7cf3000) /lib/ld-linux.so.2 (0xb7fbd000) sles10-i386:/usr/src/bacula-3.0.1 # ldd /usr/bacula/bin/static-bacula-fd linux-gate.so.1 = (0xe000) libz.so.1 = /lib/libz.so.1 (0xb7f1a000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e36000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7e2b000) libpthread.so.0 = /lib/libpthread.so.0 (0xb7e16000) libdl.so.2 = /lib/libdl.so.2 (0xb7e11000) libm.so.6 = /lib/libm.so.6 (0xb7dec000) libc.so.6 = /lib/libc.so.6 (0xb7cca000) /lib/ld-linux.so.2 (0xb7f3c000) Configuration on Mon Jun 15 07:30:23 EDT 2009: Host:i686-pc-linux-gnu -- suse 10 Bacula version: Bacula 3.0.1 (30 April 2009) Source code location:. Install binaries:/usr/bacula/bin Install libraries: /usr/bacula/lib Install config files:/usr/bacula/bin Scripts directory: /usr/bacula/bin Archive directory: Working directory: /usr
Re: [Bacula-users] failing to build a statically linked bacula-fd(3.0.1)
hello, On Mon, 2009-06-15 at 16:37 +0200, Arno Lehmann wrote: Hi, --- Originalnachricht --- Von: Gerald Leier gerald.le...@lixto.com An: Thomas tho...@ic3s.de Gesendet: 15.6.09, 15.31 Betreff: Re: [Bacula-users] failing to build a statically linked bacula-fd(3.0.1) hi, On Mon, 2009-06-15 at 14:52 +0200, Thomas wrote: hi, my first try was: ./configure --enable-static-fd --enable-client-only configure-output Statically Linked FD:yes make . Linking bacula-fd ... /home/thomas/bacula-3.0.1/libtool --silent --tag=CXX --mode=link /usr/lib/ccache/g++ -L../lib -L../findlib .. and the result was a dynamically linked bacula-fd. contrary to some documentation out there in the wild i think it may not be possible to statically build bacula-fd at all! Well, ... ok, i take my first statement back and replace it with: contrary to some documentation out there in the wild i think it may not be possible to statically build bacula-fd at all - on a modern gnu linux platform :) just read something about the impossibility to use dlopen with a statically linked libstdc++.so.6 libgcc_s.so.1. ( http://www.trilithium.com/johan/2005/06/static-libstdc/ ) That's one reason. As far as I know, there a others like some libraries that Bacula needs only being available as dynamically shared objects. jepp, i read on a little on it, seems there are a lot of chickenegg problems barried within that hole. can someone please verify that static bacula-fd builds are impossible? At least under current linux systems - other OSes and older versions of linux / glibc / etc. allow static builds. its not that big of a problem to not use a statically built bacula-fd. the only benefit for me would be that i have to put less files on my rescue filesystem. Given that most rescue systems require a load of dsos already, it's not that bad, I think. you are right. bye gerald Arno thanks gerald -- -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing 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
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
hi, On Mon, 2009-03-09 at 12:41 +0100, Stefan Sorin Nicolin wrote: On 09.03.2009, at 11:20, Gerald Leier wrote: Hello, Hi, Is there some kind of archive containing valid bacula FileSet configurations available somewhere? You might want to check out the wiki: http://wiki.bacula.org/doku.php?id=sample_configs very tape scentric but gave me a few clous. thanks. Even sniplets like for example exclude patterns would be very helpfull in figuring out how to do it right. The following example is something that looks ok to me but doesnt work at all and makes bacula barf about allmost every line contained within the exclude options.(the ones containing wild*) Also im a little confused about Exclude{} and Exclude=yes... comparing rel-bacula.pdf with the provided default configurations and the few google hits just made that worse. i use bacula 2.4.4. --- FileSet { Name = WinxpFull Enable VSS = yes Include { Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp wilddir = c:/windows/temp* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat } } --- bacula-dir -t Config error: Keyword wilddir not permitted in this resource any hints would be very appreciated. If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) First of all a Exclude {} block accepts only File directives. If you want to exclude files and/or directories based on wildcards or regexps than you have to put these insind an Options {} block. If you include exclude = yes in your Options {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ Following your example the FileSet should look like this: FileSet { Name = WinxpFull Enable VSS = yes Include { Options { wilddir = c:/windows/temp/* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat exclude = yes } Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp } } Note that if you put something inside an Exclude {} block it will be completely ignored (the whole directory). If you have to restore your system then there will be no temp dir on you disks. thanky you very much. i think i got it now. its been a little confusing at the start but makes some sense now. sincerely yours gerald sincerely yours Gerald -- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users regards, Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users