[Bacula-users] Scheduled jobs not showing up
I've just set up a new Bacula server, using the Bacula 9.4.4 RPM. It's running on an up-to-date CentOs 7 system. It's working, but I've run into an oddity: Right now, I have 4 NFS filesystems mounted on the same system, I'm using the local Bacula client to backup these 4 shared filesystems. I've created a separate job for each, and each job is referencing a different FileSet. Each one is also using a different schedule. When I use the bconsole "run" command, they all show up, and each works on it's own. When I use the bconsole "status" to show the scheduled jobs, it only shows the first two jobs configured in the client config. To be safe, I've commented out each job, done a reload and showed the status again, and it continues to show the first two jobs configured. I don't know if the jobs will actually run or not, looking for some info on this. Jonathan Bayer Manager, Technical Operations ACHIEVE3000 1985 Cedar Bridge Ave, Ste 3 Lakewood, NJ 08701 office: 732.367.5505 x172 fax: 732.367.2313 www.Achieve3000.com<http://www.achieve3000.com/> The Leader In Differentiated Instruction ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up to S3
This is very interesting, I'm very interested in learning more. So, let me see if I understand this properly: 1. You get an S3 account 2. You install s3fs (from github) 3. There is a config option in the s3fs to use a cache, and somehow you specify the EBS volume as the cache 4. Bacula is then configured to back up to the s3fs I'm sure there is more details, and am eager to learn about this. I'm going to have a few weeks to learn about it while I recover from surgery next week (donating a kidney), so will be watching for your reply. Thanks Jonathan Bayer On 6/10/2015 6:32 PM, Tim Dunphy wrote: Hey there Heitor! Nice to hear from ya bud!! I actually did get this to work. The key that lead to success was to add a 'use_cache' option. I basically assigned a 10GB EBS volume just to use as a cache. It was just an experiment, and I planned on getting did of the 10GB EBS and get one much smaller to use later. But what I found is that the 10GB volume filled up to 8.5GB during backups and restores! Everything worked, but it appears that a large cache is the only answer. Almost defeats the purpose of using S3, but not quite I hope. I think what was happening previously was that S3FS was hitting some sort of default cache limit and dying out. It'll be interesting to see how this pans out. Cuz I was planning on adding a number of new hosts to backups that I previously couldn't afford to due to the expense of storing my backup tapes on EBS. S3 is way cheaper. I can let you guys know how it goes if you're intetested. Thanks, Tim On Wed, Jun 10, 2015 at 4:40 PM, Heitor Faria hei...@bacula.com.br mailto:hei...@bacula.com.br wrote: Also I'm wondering if there's any optimizations or changes that anyone may know about that I can do to S3FS to allow this to work? Just in time: you can always try to download your volumes using AWS web interface. Thanks, Tim Cheers, === Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified Administrator II I'm a Bacula/SysAdmin looking for a job in USA or Europe. Please recommend me. Need Bacula training? https://www.udemy.com/bacula-backup-software/?couponCode=bacula-list +55 61 tel:%2B55%2061%202021-82608268-4220 tel:%2B55%2061%208268-4220 Site: www.bacula.com.br http://www.bacula.com.br/ | FB: heitor.faria http://www.facebook.com/heitor.faria === -- GPG me!! gpg --keyserver pool.sks-keyservers.net http://pool.sks-keyservers.net --recv-keys F186197B -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net mailto:Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- GPG me!! gpg --keyserver pool.sks-keyservers.net http://pool.sks-keyservers.net --recv-keys F186197B -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Changing retention times
I have a need to change the retention times of a number of jobs, both completed and new ones. New ones as in the jobs have been defined for a long time, and I need to change the config to reduce the retention time. I recall that if I just change the config of an already executed job, it won't be updated (ie: new jobs will continue to have the old retention time). how do I do this safely? Thanks in advance JBB -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Changing retention times
Thank you, that seemed to do it. JBB On 3/16/15 8:39 AM, John Drescher wrote: On Mon, Mar 16, 2015 at 8:30 AM, Jonathan Bayer linuxguruga...@gmail.com wrote: I have a need to change the retention times of a number of jobs, both completed and new ones. New ones as in the jobs have been defined for a long time, and I need to change the config to reduce the retention time. I recall that if I just change the config of an already executed job, it won't be updated (ie: new jobs will continue to have the old retention time). how do I do this safely? From memory (so may not be exact): update pool from resource then update all volumes in pool John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] multiple archive devices
Hi, Have a problem with an existing setup. We do backups to disk, here is one of the device definitions: Device { Name = FileStorage Media Type = File Archive Device = /mnt/baculaStorage LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; } The archive device is starting to run out of space. Is it possible to have multiple archive devices for a single device definition? Thanks in advance JBB -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] New Bacula Gui for Management Bacula
Correct me if I'm wrong, but this is merely a reporting tool. It doesn't any any control mechanisms? No way to start, stop, edit, etc. jobs? JBB On 11/7/2014 10:46 AM, oliveiraped wrote: Hi To All Please check the new web gui for Bacula. Reportula is a php based web program that provides you a summarized output stats of Bacula Backups jobs, clients, volumes and director that have already run. It obtains its information from your catalog database. This is a fairly high level bacula management tool. Here are a few points that one user made concerning this important tool. It is web-based so can be accessed from anywhere. It packs a phenomenal amount of information into a single web-page -- that I credit as being very good design! Features Display last jobs status Display volumes usage by pool Full supported MySQL, PostgreSQL databases. Show Jobs which executed with errors last day, week, month Show a condition of your Volumes Show terminated Jobs Search Jobs on several conditions The detailed information on Pools, Volumes, Storages and Clients Search options List the files stored on job Acl Supports and Login users support Integration with Active Directory or Ldap servers www.reportula.org +-- |This was sent by oliveira...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] New Bacula Gui for Management Bacula
Oh, I guess it helps to read. So it can update config files, but what about included files? Our configuration has two directories inside the /etc/bacula directory, one for client configs, one for general configs for various filesets, pools schedules, etc. JBB On 11/7/2014 2:35 PM, Jonathan Bayer wrote: Correct me if I'm wrong, but this is merely a reporting tool. It doesn't any any control mechanisms? No way to start, stop, edit, etc. jobs? JBB On 11/7/2014 10:46 AM, oliveiraped wrote: Hi To All Please check the new web gui for Bacula. Reportula is a php based web program that provides you a summarized output stats of Bacula Backups jobs, clients, volumes and director that have already run. It obtains its information from your catalog database. This is a fairly high level bacula management tool. Here are a few points that one user made concerning this important tool. It is web-based so can be accessed from anywhere. It packs a phenomenal amount of information into a single web-page -- that I credit as being very good design! Features Display last jobs status Display volumes usage by pool Full supported MySQL, PostgreSQL databases. Show Jobs which executed with errors last day, week, month Show a condition of your Volumes Show terminated Jobs Search Jobs on several conditions The detailed information on Pools, Volumes, Storages and Clients Search options List the files stored on job Acl Supports and Login users support Integration with Active Directory or Ldap servers www.reportula.org +-- |This was sent byoliveira...@gmail.com via Backup Central. |Forward SPAM toab...@backupcentral.com. +-- -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Communication issues with 7.0.5
This happened to me the other day. Make sure that ALL the bacula processes are stopped. My problem was that one of them was continuing to hang around with the old config. Drove me up the wall until I figured it out. JBB On 10/7/14, 2:00 PM, Bryn Hughes wrote: I've been having some issues with my old 5.2.6 installation and I thought it would be a good idea to upgrade to a more recent Bacula version, so I downloaded v7.0.5 and also the 'debian' files to allow me to build packages. I'm using Ubuntu 12.04. I have not been able to get communication working between the console and the director, I am getting an Authorization Error indicating that I probably have something wrong with my password, yet I've quadruple checked everything in that regard. Steps I've taken: - Started from scratch on the config files - I am using the base config included in the package with nothing else in it - Dumped the database and started from scratch - Restarted everything I'm fairly certain at this point that I have a bug related to authorization as there's not really any other options left. I had a completely working installation with 5.2.6 and I've been using Bacula for a lng time so I'm confident the config is all ok. Is there a known issue around using v7.0.5 on Ubuntu 12.04? This smells like a library compatibility issue or something similar to me... Here's the relevant parts of the config files: Director {# define myself Name = DIRNAME.local-dir DIRport = 9101# where we listen for UA connections QueryFile = /opt/bacula/scripts/query.sql WorkingDirectory = /opt/bacula/working PidDirectory = /opt/bacula/working Maximum Concurrent Jobs = 20 Password = 79gG9MACp9ZkQWoXSVxtOglRRxJL_hCuT # Console password Messages = Daemon } Director { Name = DIRNAME.local-dir DIRport = 9101 address = DIRNAME.local Password = 79gG9MACp9ZkQWoXSVxtOglRRxJL_hCuT } When I start the director with debug mode, I get: /opt/bacula/bin/bacula-dir -c /opt/bacula/etc/bacula-dir.conf -d100 -f bacula-dir: dird.c:194-0 Debug level = 100 bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101 bacula-dir: jcr.c:128-0 read_last_jobs seek to 192 bacula-dir: jcr.c:135-0 Read num_items=0 bacula-dir: dir_plugins.c:148-0 Load dir plugins bacula-dir: dir_plugins.c:150-0 No dir plugin dir! bacula-dir: mysql.c:697-0 db_init_database first time bacula-dir: mysql.c:165-0 mysql_init done bacula-dir: mysql.c:190-0 mysql_real_connect done bacula-dir: mysql.c:192-0 db_user=## db_name=## db_password=## bacula-dir: mysql.c:215-0 opendb ref=1 connected=1 db=1129b20 bacula-dir: mysql.c:237-0 closedb ref=0 connected=1 db=1129b20 bacula-dir: mysql.c:244-0 close db=1129b20 DIRNAME.local-dir: bnet_server.c:87-0 Addresses 0.0.0.0:9101 DIRNAME.local-dir: job.c:1528-0 wstorage=File1 DIRNAME.local-dir: job.c:1537-0 wstore=File1 where=Job resource DIRNAME.local-dir: job.c:1211-0 JobId=0 created Job=*JobMonitor*.2014-10-07_10.42.26_01 DIRNAME.local-dir: bnet.c:566-0 who=client host=###.###.###.### port=9101 bconsole -d100 Connecting to Director DIRNAME.local:9101 bconsole: bsock.c:208-0 Current ###.###.###.###:9101 All ###.###.###.###:9101 bconsole: bsock.c:137-0 who=Director daemon host=DIRNAME.local port=9101 bconsole: bsock.c:310-0 OK connected to server Director daemon DIRNAME.local:9101. Director authorization problem. Most likely the passwords do not agree. If you are using TLS, there may have been a certificate validation error during the TLS handshake. Please see http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION0026 for help. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Communication issues with 7.0.5
ok. Are you using a migrated config, or a new one? What system are you running on? I'm asking because I'm running a 7.0.5 on a CentOS 6 box without any problems. JBB On 10/7/14, 3:06 PM, Bryn Hughes wrote: Yup, I've gone as far as to reboot the server just to make absolutely sure it wasn't an old process hanging about. Plus starting everything manually in debug mode rules that out. Bryn On 14-10-07 12:01 PM, Jonathan Bayer wrote: This happened to me the other day. Make sure that ALL the bacula processes are stopped. My problem was that one of them was continuing to hang around with the old config. Drove me up the wall until I figured it out. JBB On 10/7/14, 2:00 PM, Bryn Hughes wrote: I've been having some issues with my old 5.2.6 installation and I thought it would be a good idea to upgrade to a more recent Bacula version, so I downloaded v7.0.5 and also the 'debian' files to allow me to build packages. I'm using Ubuntu 12.04. I have not been able to get communication working between the console and the director, I am getting an Authorization Error indicating that I probably have something wrong with my password, yet I've quadruple checked everything in that regard. Steps I've taken: - Started from scratch on the config files - I am using the base config included in the package with nothing else in it - Dumped the database and started from scratch - Restarted everything I'm fairly certain at this point that I have a bug related to authorization as there's not really any other options left. I had a completely working installation with 5.2.6 and I've been using Bacula for a lng time so I'm confident the config is all ok. Is there a known issue around using v7.0.5 on Ubuntu 12.04? This smells like a library compatibility issue or something similar to me... Here's the relevant parts of the config files: Director {# define myself Name = DIRNAME.local-dir DIRport = 9101# where we listen for UA connections QueryFile = /opt/bacula/scripts/query.sql WorkingDirectory = /opt/bacula/working PidDirectory = /opt/bacula/working Maximum Concurrent Jobs = 20 Password = 79gG9MACp9ZkQWoXSVxtOglRRxJL_hCuT # Console password Messages = Daemon } Director { Name = DIRNAME.local-dir DIRport = 9101 address = DIRNAME.local Password = 79gG9MACp9ZkQWoXSVxtOglRRxJL_hCuT } When I start the director with debug mode, I get: /opt/bacula/bin/bacula-dir -c /opt/bacula/etc/bacula-dir.conf -d100 -f bacula-dir: dird.c:194-0 Debug level = 100 bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101 bacula-dir: jcr.c:128-0 read_last_jobs seek to 192 bacula-dir: jcr.c:135-0 Read num_items=0 bacula-dir: dir_plugins.c:148-0 Load dir plugins bacula-dir: dir_plugins.c:150-0 No dir plugin dir! bacula-dir: mysql.c:697-0 db_init_database first time bacula-dir: mysql.c:165-0 mysql_init done bacula-dir: mysql.c:190-0 mysql_real_connect done bacula-dir: mysql.c:192-0 db_user=## db_name=## db_password=## bacula-dir: mysql.c:215-0 opendb ref=1 connected=1 db=1129b20 bacula-dir: mysql.c:237-0 closedb ref=0 connected=1 db=1129b20 bacula-dir: mysql.c:244-0 close db=1129b20 DIRNAME.local-dir: bnet_server.c:87-0 Addresses 0.0.0.0:9101 DIRNAME.local-dir: job.c:1528-0 wstorage=File1 DIRNAME.local-dir: job.c:1537-0 wstore=File1 where=Job resource DIRNAME.local-dir: job.c:1211-0 JobId=0 created Job=*JobMonitor*.2014-10-07_10.42.26_01 DIRNAME.local-dir: bnet.c:566-0 who=client host=###.###.###.### port=9101 bconsole -d100 Connecting to Director DIRNAME.local:9101 bconsole: bsock.c:208-0 Current ###.###.###.###:9101 All ###.###.###.###:9101 bconsole: bsock.c:137-0 who=Director daemon host=DIRNAME.local port=9101 bconsole: bsock.c:310-0 OK connected to server Director daemon DIRNAME.local:9101. Director authorization problem. Most likely the passwords do not agree. If you are using TLS, there may have been a certificate validation error during the TLS handshake. Please see http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION0026 for help. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
[Bacula-users] Can Bacula 7 server talk to Bacula 7 client?
We have a situation where we have a system which is running Ubuntu 12.04. I have bacula 5 client installed on it. The bacula server is 7.0.5 Can this server talk to the client? I'm having a problem getting the server to authenticate with the file daemon: 6-Oct 14:26 baculaOffice-dir JobId 0: Fatal error: Unable to authenticate with File daemon at dua2:9102. Possible causes: Thanks in advance JBB -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can Bacula 7 server talk to Bacula 7 client?
Thanks JBB On 10/6/14, 3:10 PM, John Drescher wrote: On Mon, Oct 6, 2014 at 2:26 PM, Jonathan Bayer linuxguruga...@gmail.com wrote: We have a situation where we have a system which is running Ubuntu 12.04. I have bacula 5 client installed on it. The bacula server is 7.0.5 Can this server talk to the client? Yes. I have 7.0.5 servers and a mix of 2.x to 7.0.5 clients. John M. Drescher -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Conf file question
The documentation talks about using IP addresses a lot. Can hostname be used instead of the IP addresses? Specifically, the Addres field in the Client config, as well as others. Thanks in advance JBB -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Conf file question
Great, thanks JBB On 8/19/2014 8:12 AM, John Drescher wrote: On Tue, Aug 19, 2014 at 8:03 AM, Jonathan Bayer linuxguruga...@gmail.com wrote: The documentation talks about using IP addresses a lot. Can hostname be used instead of the IP addresses? Specifically, the Addres field in the Client config, as well as others. Yes as long as the client has the server in its dns. John -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Looking for recommendations on how to backup a Postgresql database using Bacula
We have a small cluster running Alfresco. The web software is on server1 and the database is on server2. We have Bacula community version 7.0.5 Bacula client is installed on server1 for now. Obviously, server1 can access server2's database. I'm wondering how others have solved this problem. I have a couple of options here: 1. Do a pg_dump on server1 (it has the space) and then backup the dump file 2. Do the same on server2 instead 3. Set up a PITR backup on server2 4. Do a simple file system backup. This requires shutting down the database while the backup is in progress. so, I'm curious. Any responses? Thanks in advance. JBB -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Good web interface??
I finally traced my problem with Webacula down to the following lines in the index.php: if ( APPLICATION_ENV == 'production') { Zend_Session::regenerateId(); } This is on a CentOS 6 system, with the full php-ZendFramework installed: php-ZendFramework-full-1.12.7-1.el6.noarch PHP 5.3: php-5.3.3-27.el6_5.x86_64 Once I commented out that line with the regenerateId, it works fine. Any ideas? Thanks JBB On 8/8/14, 1:40 AM, Oschwald Robert wrote: I'm using Webacula 5.5.1 with Bacula 7.0.4 on CentOS 6.5 without any problem, so I think it must be an issue on your local installation. Try to increase the log level in php.ini and log to a file to get a hint what the problem could be. Maybe a permission issue from your web process user to execute bconsole. Best, Rob -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Good web interface??
Figured it out. The new installation puit the config.ini into a different directory, and I was updating the wrong one. Once I fixed it, it is working. JBB On 8/8/2014 1:40 AM, Oschwald Robert wrote: I'm using Webacula 5.5.1 with Bacula 7.0.4 on CentOS 6.5 without any problem, so I think it must be an issue on your local installation. Try to increase the log level in php.ini and log to a file to get a hint what the problem could be. Maybe a permission issue from your web process user to execute bconsole. Best, Rob -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Good web interface??
I was using Webacula on an older installation and am now trying to get it working on 7.0.5 While I can log in, and it displays existing data correctly, when I try to do anything with jobs, I get the following errors: [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 25 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 25 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 28 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 28 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 29 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 29 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 30 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 30 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 31 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 31 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 38 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 38 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 39 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 39 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 44 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/header.phtml on line 44 [07-Aug-2014 14:16:44] PHP Notice: Trying to get property of non-object in /usr/share/webacula/application/layouts/default/main-menu.phtml on line 21 [07-Aug-2014 14:16:44] PHP Fatal error: Call to a member function isAllowed() on a non-object in /usr/share/webacula/application/layouts/default/main-menu.phtml on line 25 [07-Aug-2014 14:16:44] PHP Fatal error: Class 'Zend_Auth' not found in /usr/share/webacula/library/MyClass/Session/SaveHandler/DbTable.php on line 46 This is Webacula 5.5.1, on a CentOS 6.5 system, Bacula 7.0.5 and the database is Postgres 8.4 I am very open to using a different web interface, and would be interested in any recommendations. Of course, if you know how to fix this problem, that would be great as well. Thank in advance Jonathan Bayer -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Spec file for Bacula 7
Only that whenever I try to go into bconsole, bacula-dir exits Your files are good, but I don't know if this is a problem with 7.0.5 or the config files. I'm using the files which are installed with the RPMs generated by these files. This is on a CentOS 6 system, iptables and selinux both turned off. Any ideas? JBB On 7/31/2014 7:28 PM, Brady, Mike wrote: On 2014-08-01 08:03, Jonathan Bayer wrote: Has anyone developed a working spec file for Bacula 7? I've taken what is shipped, but had to modify it extensively. I'll post it here once I've gotten it working nicely, but was hoping to find a better one. JBB Are there problems with the packages found here https://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-6/ -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Spec file for Bacula 7
Silly mistake on my part. I needed to create the database :-) JBB On 8/1/2014 8:56 AM, Jonathan Bayer wrote: Only that whenever I try to go into bconsole, bacula-dir exits Your files are good, but I don't know if this is a problem with 7.0.5 or the config files. I'm using the files which are installed with the RPMs generated by these files. This is on a CentOS 6 system, iptables and selinux both turned off. Any ideas? JBB On 7/31/2014 7:28 PM, Brady, Mike wrote: On 2014-08-01 08:03, Jonathan Bayer wrote: Has anyone developed a working spec file for Bacula 7? I've taken what is shipped, but had to modify it extensively. I'll post it here once I've gotten it working nicely, but was hoping to find a better one. JBB Are there problems with the packages found here https://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-6/ -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Spec file for Bacula 7
Has anyone developed a working spec file for Bacula 7? I've taken what is shipped, but had to modify it extensively. I'll post it here once I've gotten it working nicely, but was hoping to find a better one. JBB -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] How to prevent large files from being backed up?
Hi, We have a few users who, for various reasons, constantly create delete huge files (hundreds of gigs). I'd like to exclude these from the backup process. How can I do that, since I don't know where they can appear or what their names are? Thanks in advance. JBB -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] My file retention is 30 days, but restore says no files found..
Well, if it has been more than 30 days, the entries for each file has been pruned from the database. However, the job is being retained for 6 months. If the files have been pruned, you still have the option to restore ALL files from a job, until the job itself is pruned. JBB On 6/14/2013 1:32 PM, Jeff MacDonald wrote: Hi All, I went to restore some files this morning and had a check my pants sort of moment. I went to do the restore and got something like this: You have selected the following JobIds: 296,436,440,444,448 Building directory tree for JobId(s) 296,436,440,444,448 ... + For one or more of the JobIds selected, no files were found, so file selection is not possible. Most likely your retention policy pruned the files. Do you want to restore all the files? (yes|no): So I clicked, yes and was able to get all my files just fine. No harm or error there. But I'm curious why my files are pruned from my catalog? My File Retention times are all set to 30 days. Job Retentions to 6 months. Volume retention 365 days I DO have AutoPrune on. I'm just unsure of why they are being pruned… Thoughts? Jeff. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] My file retention is 30 days, but restore says no files found..
Seems like you asked for a full restore, and one or more of the jobs which were in the list were more than 30 days old. Is it possible that yesterday's job was an incremental or differential, and the last full was more than 30 days old? JBB On 6/14/2013 2:00 PM, Jeff MacDonald wrote: Yes, but the option i selected was Restore the latest backup for this client which was.. yesterday. ANd that is the crux of my confusion. On 2013-06-14, at 2:32 PM, Jeff MacDonald j...@terida.com wrote: Hi All, I went to restore some files this morning and had a check my pants sort of moment. I went to do the restore and got something like this: You have selected the following JobIds: 296,436,440,444,448 Building directory tree for JobId(s) 296,436,440,444,448 ... + For one or more of the JobIds selected, no files were found, so file selection is not possible. Most likely your retention policy pruned the files. Do you want to restore all the files? (yes|no): So I clicked, yes and was able to get all my files just fine. No harm or error there. But I'm curious why my files are pruned from my catalog? My File Retention times are all set to 30 days. Job Retentions to 6 months. Volume retention 365 days I DO have AutoPrune on. I'm just unsure of why they are being pruned… Thoughts? Jeff. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Question about runbeforejob
The manual states the following: Run Before Job = command The specified command is run as an external program prior to running the current Job. This directive is not required, but if it is defined, and if the exit code of the program run is non-zero, the current Bacula job will be canceled. So when a job is canceled, is it reported as an error? I need to know because I'm thinking about using this mechanism to control job schedules, but if it is reported as an error then our reports will also show errors, which we don't want to do since we show them to upper management. Thanks in advance JBB -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Looking for a way to get the number of running jobs as a single number
I would like to be able to monitor the number of running jobs with our monitoring system (Zabbix). To do this I need a script which will return the number without any additional text. Is this available anywhere? I don't see an easy way to do this. Thanks JBB -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Looking for a way to get the number of running jobs as a single number
Thanks. The SQL is what I needed, I already have scripts which are querying the database for other info. JBB On 6/11/2013 5:26 PM, Marcin Haba wrote: Dnia 2013-06-11, wto o godzinie 16:27 -0400, Jonathan Bayer pisze: I would like to be able to monitor the number of running jobs with our monitoring system (Zabbix). To do this I need a script which will return the number without any additional text. Is this available anywhere? I don't see an easy way to do this. Hi, From what level want you get information about running jobs? (bconsole, database). I think that there is easy way to do this from database level. You may run below SQL query: SELECT COUNT(job.name) FROM job WHERE job.jobstatus IN ('C','R'); Above SQL query may be called from bconsole level as well. For example by using sql bconsole command. It allows to call SQL queries from bconsole level but then you will need to use additional tools for strings operations (sed, awk, etc.). For writing script purpose here you are examples usage bconsole requests in shell scripts: http://bacula.org/5.2.x-manuals/en/console/console/Bacula_Console.html#SECTION0028 Regards. Marcin Haba (gani) -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Script to find/delete disk volumes which are no longer used
Hi, We are using Bacula to backup a number of VMs. The backup is being done to disk volumes. The configuration I've set up is still being tuned. In the meantime, I found that there are a number of disk volumes which, which the file(s) themselves are rather large, all the files on the jobs which are in that volume have been expired, so the physical volume itself can be deleted both from the database and the disk. I've written a script which I've included below. I'd appreciate any comments on it. Hopefully this will help someone else. JBB #!/bin/bash # # show usage of volumes (ie: how many files are on each volume # which have not been purged/expired from the database) # # Usage: # purgediskvolumes [-d dir] [volumename(s)] # # -d specify a custom directory # volumename(s) Specific volume names to check # set -e set -u DBHOST=localhost DBUSER=bacula DB=bacula_db FILEDIR=/mnt/baculaStorage # End of changable parameters if [ $1 = -d ]; then if [ $# -lt 2 ]; then echo Missing directory name, exiting exit 1 fi FILEDIR=$2 shift shift fi if [ ! -d $FILEDIR ]; then echo $FILEDIR is not a directory, exiting exit 1 fi START=$(date +%s) RUN_ON_MYDB=/usr/bin/psql -t --no-align -X -U $DBUSER -h $DBHOST $DB files=`ls $FILEDIR` [ $# -ne 0 ] files=$* emptyvolumes= for volume in $files; do if [ $volume != lost+found ]; then # # Get list of jobs on a volume # sql=SELECT DISTINCT Job.JobId FROM JobMedia,Job,media WHERE JobMedia.JobId=Job.JobId AND JobMedia.MediaId=media.mediaid AND media.volumename='$volume' jobids=`$RUN_ON_MYDB -c $sql` # # now get count of files in Db for each job # cnt=0 for jobid in $jobids; do sql=SELECT count(*) FROM File,Filename,Path WHERE File.JobId='$jobid' AND Filename.FilenameId=File.FilenameId AND Path.PathId=File.PathId numfiles=`$RUN_ON_MYDB -c $sql` cnt=$((cnt + numfiles)) done echo -e Total files on volume $volume: $cnt\n [ $cnt -eq 0 ] emptyvolumes=$volume $emptyvolumes fi done echo Empty Volumes: $emptyvolumes cd $FILEDIR ls -lh $emptyvolumes END=$(date +%s) DIFF=$(( $END - $START )) echo Searchtime: $DIFF seconds echo Do you wish to delete these volumes from the database and the disk (Y/n): read yn [ $yn = n -o $yn = N ] exit # # get the filesystem type, if it is an ext3 filesystem, then # the default answer to the next question will be yes, otherwise # it will be no # This is needed since deleting a very big file on an ext3 filesystem # can totally lock up the system until the delete is done # fstype=`df -TP ${FILEDIR}` def=y/N [ $fstype = ext3 ] def=Y/n echo Do you need/want to delete the file by truncating in parts echo to avoid locking up the system. This may be needed on ext3 echo filesystems when the files are very big. ($def): read trunc if [ $trunc = ]; then [ $def = y/N ] trunc=n [ $def = Y/n ] trunc=y fi for vol in $emptyvolumes; do echo delete volume=$vol yes done | bconsole if [ $trunc = n -o $trunc = N ]; then for vol in $emptyvolumes; do rm -f ${FILEDIR}/$vol done else # # use the truncate command to slowly shrink the file by 100 meg # at a time. RHEL_5 based systems will need to get the truncate command from # RHEL6 or CentOS6 # SLEEP=0.1 TRUNCATEBY=1 # 100 meg trunc=`which truncate 2/dev/null` if [ $trunc = ]; then echo truncate command isn't available echo Will just delete files instead fi for vol in $emptyvolumes; do file=${FILEDIR}/$vol echo Deleting $file if [ $trunc != ]; then size=`ls -l $file |awk '{print $5}'` while [ $size -gt $TRUNCATEBY ]; do size=`echo $size-$TRUNCATEBY|bc`; $trunc -c -s -$TRUNCATEBY $file ; sleep $SLEEP done fi rm -f $file done fi -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes
Re: [Bacula-users] Script to find/delete disk volumes which are no longer used (slight change)
If you were trying to use this, the set -u was misplaced. See below for the correct location JBB On 6/7/2013 11:07 AM, Jonathan Bayer wrote: Hi, We are using Bacula to backup a number of VMs. The backup is being done to disk volumes. The configuration I've set up is still being tuned. In the meantime, I found that there are a number of disk volumes which, which the file(s) themselves are rather large, all the files on the jobs which are in that volume have been expired, so the physical volume itself can be deleted both from the database and the disk. I've written a script which I've included below. I'd appreciate any comments on it. Hopefully this will help someone else. JBB #!/bin/bash # # show usage of volumes (ie: how many files are on each volume # which have not been purged/expired from the database) # # Usage: # purgediskvolumes [-d dir] [volumename(s)] # # -d specify a custom directory # volumename(s) Specific volume names to check # set -e DBHOST=localhost DBUSER=bacula DB=bacula_db FILEDIR=/mnt/baculaStorage # End of changable parameters if [ $1 = -d ]; then if [ $# -lt 2 ]; then echo Missing directory name, exiting exit 1 fi FILEDIR=$2 shift shift fi if [ ! -d $FILEDIR ]; then echo $FILEDIR is not a directory, exiting exit 1 fi set -u START=$(date +%s) RUN_ON_MYDB=/usr/bin/psql -t --no-align -X -U $DBUSER -h $DBHOST $DB files=`ls $FILEDIR` [ $# -ne 0 ] files=$* emptyvolumes= for volume in $files; do if [ $volume != lost+found ]; then # # Get list of jobs on a volume # sql=SELECT DISTINCT Job.JobId FROM JobMedia,Job,media WHERE JobMedia.JobId=Job.JobId AND JobMedia.MediaId=media.mediaid AND media.volumename='$volume' jobids=`$RUN_ON_MYDB -c $sql` # # now get count of files in Db for each job # cnt=0 for jobid in $jobids; do sql=SELECT count(*) FROM File,Filename,Path WHERE File.JobId='$jobid' AND Filename.FilenameId=File.FilenameId AND Path.PathId=File.PathId numfiles=`$RUN_ON_MYDB -c $sql` cnt=$((cnt + numfiles)) done echo -e Total files on volume $volume: $cnt\n [ $cnt -eq 0 ] emptyvolumes=$volume $emptyvolumes fi done echo Empty Volumes: $emptyvolumes cd $FILEDIR ls -lh $emptyvolumes END=$(date +%s) DIFF=$(( $END - $START )) echo Searchtime: $DIFF seconds echo Do you wish to delete these volumes from the database and the disk (Y/n): read yn [ $yn = n -o $yn = N ] exit # # get the filesystem type, if it is an ext3 filesystem, then # the default answer to the next question will be yes, otherwise # it will be no # This is needed since deleting a very big file on an ext3 filesystem # can totally lock up the system until the delete is done # fstype=`df -TP ${FILEDIR}` def=y/N [ $fstype = ext3 ] def=Y/n echo Do you need/want to delete the file by truncating in parts echo to avoid locking up the system. This may be needed on ext3 echo filesystems when the files are very big. ($def): read trunc if [ $trunc = ]; then [ $def = y/N ] trunc=n [ $def = Y/n ] trunc=y fi for vol in $emptyvolumes; do echo delete volume=$vol yes done | bconsole if [ $trunc = n -o $trunc = N ]; then for vol in $emptyvolumes; do rm -f ${FILEDIR}/$vol done else # # use the truncate command to slowly shrink the file by 100 meg # at a time. RHEL_5 based systems will need to get the truncate command from # RHEL6 or CentOS6 # SLEEP=0.1 TRUNCATEBY=1 # 100 meg trunc=`which truncate 2/dev/null` if [ $trunc = ]; then echo truncate command isn't available echo Will just delete files instead fi for vol in $emptyvolumes; do file=${FILEDIR}/$vol echo Deleting $file if [ $trunc != ]; then size=`ls -l $file |awk '{print $5}'` while [ $size -gt $TRUNCATEBY ]; do size=`echo $size-$TRUNCATEBY|bc`; $trunc -c -s -$TRUNCATEBY $file ; sleep $SLEEP done fi rm -f $file done fi -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high
Re: [Bacula-users] Storage different backup question
ok. First, thanks for cc'ing the list :-) Next, regarding the priority of pools and other things specified, so is the following statement correct?: Item specified in referenced items will override earlier items. For example, if a pool is specified in a Job, and then specified in a JobDefs line, the pool in the referenced jobdef will override the pool in the job. Similiarly, if a schedule is then referenced AFTER the fileset is referenced, a pool in the schedule will override the pool(s) in the fileset, jobdefs and original job. Thanks. JBB On 5/29/2013 11:14 AM, Bill Arlofski wrote: On 05/29/13 08:12, Jonathan Bayer wrote: A question. If the pool is specified both in the schedule and the job resource, which takes priority if they are different? Thanks JBB The Pool specified in the Schedule resource will override the Pool in the Job or JobDef resource. FYI: I CC:ed the list to keep the conversation on the list. -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Storage different backup question
To both Bill and John: Thank you, that is exactly what I needed~ JBB On 5/26/2013 11:52 AM, Bill Arlofski wrote: On 05/26/13 08:42, Jonathan Bayer wrote: Hello all, Our system is doing backups to a local hard disk (very big). I'd like to have three devices set up, one for a full backup, one for a differential backup and one for incremental. I've gotten the devices set up, and the pools set up, along with the appropriate media types. What I can't figure out is how to have each type of backup go to the appropriate device. I know how to direct individual clients to specific devices, but I'd like this to be automatic, and haven't been able (yet) to figure it out. Is this possible? If so, how? Jonathan, you can do that in the Schedule resource as John said, which is the way I like to do it. (last Run line wraps, but should be on one line) Schedule { Name = Daily Run = Full Pool=FullPool 1st Fri at 23:00 Run = Differential Pool=DiffPool FullPool=FullPool 2nd-5th fri at 23:00 Run = Incremental Pool=IncPool DifferentialPool=DiffPool FullPool=FullPool / mon-thu at 23:00 } But you can also do it in the Job resource itself: Job { Name = Backup_A --[snip]-- Full Backup Pool = FullPool Incremental Backup Pool = IncPool Differential Backup Pool = DiffPool } Hope this helps! -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Storage different backup question
Hello all, Our system is doing backups to a local hard disk (very big). I'd like to have three devices set up, one for a full backup, one for a differential backup and one for incremental. I've gotten the devices set up, and the pools set up, along with the appropriate media types. What I can't figure out is how to have each type of backup go to the appropriate device. I know how to direct individual clients to specific devices, but I'd like this to be automatic, and haven't been able (yet) to figure it out. Is this possible? If so, how? thanks in advance JBB -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset inclusion list question
That probably would, I'll have to read it. Thanks JBB On 5/23/13 12:53 PM, Ana Emília Machado de Arruda wrote: Have you tried configuring onefs = no? If you wish to backup multiple filesystems, you can explicitly list each filesystem you want saved. Otherwise, if you set the onefs option to *no*, Bacula will backup all mounted file systems (i.e. traverse mount points) that are found within the*FileSet*. Doing this way you does not need to specify / and /usr. Just the effective directories. Am I doing some confusion here or this solves your problem? Regards, Ana On Wed, May 22, 2013 at 4:38 PM, Jonathan Bayer linuxguruga...@gmail.com mailto:linuxguruga...@gmail.com wrote: I remember that a while ago, if a directory was included 2 times (such as the following): Include { File = / File = /usr } and /usr was on the same filesystem, it would be backed up two times. Is this still the case? I'm asking because I have a fileset definition which lists a number of the main directories on a Linux filesystem, and want to use this on many different systems, some of which have these directories on seperate filesystems and some don't. Thanks in advance. JBB -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net mailto:Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Having a problem getting readfifo to work
Running Bacula 5.2 I'm trying to backup a Postgresql database using fifo's. The following is the fileset: # List of files to be backed up FileSet { Name = Postgresql dump Include { Options { signature = MD5 readfifo = yes } File = /var/lib/pgsql/data/dump/globalobjects.dump File = /var/lib/pgsql/data/dump/fifo/otrs.data.dump File = /var/lib/pgsql/data/dump/fifo/otrs.schema.dump File = /var/lib/pgsql/data/dump/fifo/postgres.data.dump File = /var/lib/pgsql/data/dump/fifo/postgres.schema.dump File = /var/lib/pgsql/data/dump/fifo/template1.data.dump File = /var/lib/pgsql/data/dump/fifo/template1.schema.dump } } The following is exerpted from the client config: # This creates a backup of the databases with pg_dump to fifos Client Run Before Job = su - postgres -c \/etc/bacula/bin/make_pg_database_backup\ # This deletes the backup and fifo files Client Run After Job = su - postgres -c \/etc/bacula/bin/delete_pg_database_backup\ The first script starts pgdump on each of the fifo's for each database. I've verified that that is working by manually catting the fifo to a temp file by hand, after the job finished. I did a reload at the bconsole prompt, and then did a full backup. Bacula does a backup, but it doesn't copy any data from the fifo. I'm obviously missing something, but what? Thanks in advance JBB -- The light at the end of the tunnel may be an oncoming Dragon -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Fileset inclusion list question
I remember that a while ago, if a directory was included 2 times (such as the following): Include { File = / File = /usr } and /usr was on the same filesystem, it would be backed up two times. Is this still the case? I'm asking because I have a fileset definition which lists a number of the main directories on a Linux filesystem, and want to use this on many different systems, some of which have these directories on seperate filesystems and some don't. Thanks in advance. JBB -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bare metal restore
I've seen conflicting comments online about this. I know this used to work. Assuming only Linux systems, and a further assumption that they will all be RHEL based systems, does Bacula support any way of bare-metal restores? And to be even more specific, these would all be VMs. Thanks in advance. JBB -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Automated reports
We are using Zabbix for our monitoring, and I have a script which updates a template whenever a new bacula job is created. Once I'm done cleaning it up, I'll be posting it on my blog, and will post a notice here. JBB On 4/29/2013 6:38 PM, Bill Arlofski wrote: On 04/29/13 18:13, Joseph Spenner wrote: *From:* Bill Arlofski waa-bac...@revpol.com You might want to look at webacula. Some of the pages available was very nicely done and appear to be exactly what you are looking for. For example, see attached image. -- Bill Arlofski I've seen this before, and wanted something simpler. Basically a quick simple view of everything, and a quick reference what got backed up and when. If you are in the market for a an open-source monitoring server with a Bacula plug-in, you might also like: http://www.revpol.com/xymon_bacula_check_script -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Automated reports
Thanks. I looked at it, but we use Postgres, so I modified it to use either db. I posted my modified script to your site: http://www.revpol.com/node/147#comment-39 Looks interesting, but I'll have to work on the format. JBB On 4/28/2013 4:53 PM, Bill Arlofski wrote: On 04/26/13 12:16, Jonathan Bayer wrote: Hi, I'm looking for a way to get daily and weekly automated report. I've found a few different projects: send_bacula_backup_report-0.4send a list of all jobs in past x days bacula-reportsWorks by consolidating emails, I'll know if it works tomorrow. breport Java based, but doesn't seem to be supported and I haven't been able to make it work properly Does anyone have any better suggestions? We'd like these to run automatically from a cron job. thanks in advance. JBB Hi Johnathan... Your post got me to thinking that such a daily email report might be useful. I cobbled together something that might fill your need, or at least get you started. http://www.revpol.com/node/147 Hope this helps. Comments welcome. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Automated reports
Hi, I'm looking for a way to get daily and weekly automated report. I've found a few different projects: send_bacula_backup_report-0.4send a list of all jobs in past x days bacula-reportsWorks by consolidating emails, I'll know if it works tomorrow. breport Java based, but doesn't seem to be supported and I haven't been able to make it work properly Does anyone have any better suggestions? We'd like these to run automatically from a cron job. thanks in advance. JBB -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Auto-labeling of media
Hi, We are using Bacula for local backup, to local hard disks. I am looking into some sort of remote system, where I can copy files there for backup. I'd like to be able to have Bacula open a new disk file, and automatically label it with a sequential number for every backup. This way I can use rsync to sync the directories between the local system and the remote system. Is there any way to do this? JBB -- Come build with us! The BlackBerry(R) 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/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula mixing up pools and mount points
Hi, Running Bacula 3.0.1 on an Ubuntu 9.05 system. Main backups are done to an internal hard disk. Pool is called Internal, volume name is Internal VirtualFull backups are done to an external hard disk. Pool is called External, volume name is D1 The internal pool is mounted in: /var/lib/bacula/archive The external pool is mounted in /media/bacula The external pool is accessed using the NextPool keyword. Bacula gets the pools confused. It looks for the D1 volume at the internal pool location This doesn't make sense, it is trying to both read and write at the same location. Any ideas? JBB 15-Jun 10:44 bayer-sd JobId 423: Warning: dev.c:534 dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No suchfile or directory 15-Jun 10:44 bayer-sd JobId 423: Warning: acquire.c:221 Read open device FileStorage (/var/lib/bacula/archive) Volume D1 failed: ERR=dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such file or directory 15-Jun 10:44 bayer-sd JobId 423: Please mount Volume D1 for: Job: Clonezilla.2009-06-15_10.41.00_24 Storage: FileStorage (/var/lib/bacula/archive) Pool: Internal Media type: File *list media Pool: Internal +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 1 | Internal | Append| 1 | 650,457,573,214 | 151 | 31,536,000 | 1 |0 | 0| File | 2009-06-15 10:33:29 | +-++---+-+-+--+--+-+--+---+---+-+ Pool: External +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 5 | D1 | Append| 1 | 272,625,134,040 | 63 | 31,536,000 | 1 |0 | 0| File | 2009-06-05 18:33:31 | +-++---+-+-+--+--+-+--+---+---+-+ Pool { Name = Internal Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year NextPool = External Storage = File } # Default pool definition Pool { Name = External Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Storage = ExternalFileStorage } -- 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] Bacula mixing up pools and mount points
I have a temporary solution, will send another message later after I've conducted a few more tests. I simply created a new label on the external drive, so now the drive contains two labels. Now it is able to read both the internal backup AND the original VirtualFull backups, and write the new backup to the new label on the same physical drive. I will still have to test what happens when _another_ virtualfull backup is done, I want to see if it will then read from the second and write to the first. JBB On Mon, 2009-06-15 at 13:49 -0400, Dirk Bartley wrote: OK, just re-read the storage= option under pool and it is a little bit confusing to me because I always thought the storage came from the job defaults, then the schedule resource for that run if it has an override. From the docs, this means my assumtion was incorrect. The Storage resource may also be specified in the Job resource, but the value, if any, in the Pool resource overrides any value in the Job. This Storage resource definition is not required by either the Job resource or in the Pool, but it must be specified in one or the other. If not configuration error will result. I'd still look at the storage on the job's log. You may want to choose to put the storage= in the schedule resource just to make sure. Dirk On Mon, 2009-06-15 at 10:52 -0400, Jonathan Bayer wrote: Hi, Running Bacula 3.0.1 on an Ubuntu 9.05 system. Main backups are done to an internal hard disk. Pool is called Internal, volume name is Internal VirtualFull backups are done to an external hard disk. Pool is called External, volume name is D1 The internal pool is mounted in: /var/lib/bacula/archive The external pool is mounted in /media/bacula The external pool is accessed using the NextPool keyword. Bacula gets the pools confused. It looks for the D1 volume at the internal pool location This doesn't make sense, it is trying to both read and write at the same location. Any ideas? JBB 15-Jun 10:44 bayer-sd JobId 423: Warning: dev.c:534 dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No suchfile or directory 15-Jun 10:44 bayer-sd JobId 423: Warning: acquire.c:221 Read open device FileStorage (/var/lib/bacula/archive) Volume D1 failed: ERR=dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such file or directory 15-Jun 10:44 bayer-sd JobId 423: Please mount Volume D1 for: Job: Clonezilla.2009-06-15_10.41.00_24 Storage: FileStorage (/var/lib/bacula/archive) Pool: Internal Media type: File *list media Pool: Internal +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 1 | Internal | Append| 1 | 650,457,573,214 | 151 | 31,536,000 | 1 |0 | 0| File | 2009-06-15 10:33:29 | +-++---+-+-+--+--+-+--+---+---+-+ Pool: External +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 5 | D1 | Append| 1 | 272,625,134,040 | 63 | 31,536,000 | 1 |0 | 0| File | 2009-06-05 18:33:31 | +-++---+-+-+--+--+-+--+---+---+-+ Pool { Name = Internal Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year NextPool = External Storage = File } # Default pool definition Pool { Name = External Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Storage = ExternalFileStorage } -- Crystal Reports - New Free Runtime
Re: [Bacula-users] Bacula mixing up pools and mount points
That doesn't make sense, because the only storage I reference is the internal storage. The only reference to the external storage is in the internal storage. However, I may have found the problem. I turned on tracing and set the debug level to 999. In the SD trace file, I found the following lines: bayer-sd: askdir.c:259-465 dir_find_next_appendable_volume: reserved=1 Vol= bayer-sd: askdir.c:276-465 dird CatReq Job=Clonezilla.2009-06-15_14.07.22_12 FindMedia=1 pool_name=External media_type=File bayer-sd: askdir.c:182-465 dird 1000 OK VolName=D1 VolJobs=14 VolFiles=63 VolBlocks=4225968 VolBytes=272625134040 VolMounts=30 VolErrors=0 VolWrites=7652227 MaxVolBytes=0 VolCapacityBytes=0 VolStatus=Append Slot=0 MaxVolJobs=0 MaxVolFiles=0 InChanger=0 Vo lReadTime=2864375580 VolWriteTime=6009223552 EndFile=63 EndBlock=2042194391 VolParts=0 LabelType=0 MediaId=5 bayer-sd: askdir.c:205-465 do_reqest_vol_info return true slot=0 Volume=D1 bayer-sd: vol_mgr.c:541-465 find_read_vol=D1 found=1 bayer-sd: vol_mgr.c:690-465 Found in read list; cannot write vol=D1 bayer-sd: askdir.c:296-465 Volume D1 is in use. bayer-sd: askdir.c:276-465 dird CatReq Job=Clonezilla.2009-06-15_14.07.22_12 FindMedia=2 pool_name=External media_type=File bayer-sd: askdir.c:182-465 dird 1901 No Media. Apparently it is opening the D1 volume for reading, and because of that, can't write to it. My guess is that the virtual full is opening ALL old backups for the job, even if they have been superceded by a newer full backup. This would also explain why it works when I purge the external volume. So I think that I need a way to exclude backups on a particular volume(s) for a virtual full backup. Any ideas? JBB On Mon, 2009-06-15 at 13:49 -0400, Dirk Bartley wrote: OK, just re-read the storage= option under pool and it is a little bit confusing to me because I always thought the storage came from the job defaults, then the schedule resource for that run if it has an override. From the docs, this means my assumtion was incorrect. The Storage resource may also be specified in the Job resource, but the value, if any, in the Pool resource overrides any value in the Job. This Storage resource definition is not required by either the Job resource or in the Pool, but it must be specified in one or the other. If not configuration error will result. I'd still look at the storage on the job's log. You may want to choose to put the storage= in the schedule resource just to make sure. Dirk On Mon, 2009-06-15 at 10:52 -0400, Jonathan Bayer wrote: Hi, Running Bacula 3.0.1 on an Ubuntu 9.05 system. Main backups are done to an internal hard disk. Pool is called Internal, volume name is Internal VirtualFull backups are done to an external hard disk. Pool is called External, volume name is D1 The internal pool is mounted in: /var/lib/bacula/archive The external pool is mounted in /media/bacula The external pool is accessed using the NextPool keyword. Bacula gets the pools confused. It looks for the D1 volume at the internal pool location This doesn't make sense, it is trying to both read and write at the same location. Any ideas? JBB 15-Jun 10:44 bayer-sd JobId 423: Warning: dev.c:534 dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No suchfile or directory 15-Jun 10:44 bayer-sd JobId 423: Warning: acquire.c:221 Read open device FileStorage (/var/lib/bacula/archive) Volume D1 failed: ERR=dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such file or directory 15-Jun 10:44 bayer-sd JobId 423: Please mount Volume D1 for: Job: Clonezilla.2009-06-15_10.41.00_24 Storage: FileStorage (/var/lib/bacula/archive) Pool: Internal Media type: File *list media Pool: Internal +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 1 | Internal | Append| 1 | 650,457,573,214 | 151 | 31,536,000 | 1 |0 | 0| File | 2009-06-15 10:33:29 | +-++---+-+-+--+--+-+--+---+---+-+ Pool: External +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger| mediatype | lastwritten
Re: [Bacula-users] Bacula mixing up pools and mount points
On Mon, 2009-06-15 at 21:09 +0200, Arno Lehmann wrote: Hello, 15.06.2009 19:49, Dirk Bartley wrote: OK, just re-read the storage= option under pool and it is a little bit confusing to me because I always thought the storage came from the job defaults, then the schedule resource for that run if it has an override. From the docs, this means my assumtion was incorrect. The Storage resource may also be specified in the Job resource, but the value, if any, in the Pool resource overrides any value in the Job. This Storage resource definition is not required by either the Job resource or in the Pool, but it must be specified in one or the other. If not configuration error will result. I'd still look at the storage on the job's log. You may want to choose to put the storage= in the schedule resource just to make sure. It's also important to NOT use the same media type for volumes handled by different storage devices that don't really share the same set of volumes. But this is EXACTLY what I'm doing. Same media type (File), two different devices. In fact, I can see this happening in many environments. What about a site that has multiple tape drives, all of the same type? This is a bug, not a Feature For now, I've solved the problem by putting two labels on the same external drive. This way it can read from one and write to the second. JBB -- 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] Bacula mixing up pools and mount points
On Mon, 2009-06-15 at 16:17 -0400, John Drescher wrote: On Mon, Jun 15, 2009 at 3:38 PM, Jonathan Bayerjba...@regiscope.com wrote: On Mon, 2009-06-15 at 21:09 +0200, Arno Lehmann wrote: Hello, 15.06.2009 19:49, Dirk Bartley wrote: OK, just re-read the storage= option under pool and it is a little bit confusing to me because I always thought the storage came from the job defaults, then the schedule resource for that run if it has an override. From the docs, this means my assumtion was incorrect. The Storage resource may also be specified in the Job resource, but the value, if any, in the Pool resource overrides any value in the Job. This Storage resource definition is not required by either the Job resource or in the Pool, but it must be specified in one or the other. If not configuration error will result. I'd still look at the storage on the job's log. You may want to choose to put the storage= in the schedule resource just to make sure. It's also important to NOT use the same media type for volumes handled by different storage devices that don't really share the same set of volumes. But this is EXACTLY what I'm doing. Same media type (File), two different devices. In fact, I can see this happening in many environments. What about a site that has multiple tape drives, all of the same type That is fine if a user can insert the media from one drive to the other. If they are in separate locations or you do not want to switch media back and forth between devices its best to make them different media type so bacula does not request media that you will not have. OK. So how do I make the media type different if they both are disk-based volumes? (re-read the manual) Oh. So if I simply name the external type as ExternalFile, that would work? So even if the physical media is the same, you give each a different Media Type, right? I am confused at that. A single volume can only have 1 label. Also you really should be limiting your volume size on both media in some way (max volume size, use volume once ...) otherwise you will have to recycle the entire volume when it eventually fills up. Actually, I have two external drives. I rotate them, keeping one off-site. When I bring the off-site drive here, I purge the volume which is on it. This is done as a minimal disaster recovery solution. I'm not crazy about it, but it does work. I think when you created what you call a new label you actually created a second volume on the hard drive. I think you are correct. There are two volumes on a single hard disk. Because it is a hard disk, each volume is a different file. John -- 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] Bacula mixing up pools and mount points
I got excited when I read the description of the VirtualFull option. In my excitement I neglected to re-read the description of the storage types. My mistake, thank you all for your comments. JBB On Mon, 2009-06-15 at 16:59 -0400, John Drescher wrote: That is fine if a user can insert the media from one drive to the other. If they are in separate locations or you do not want to switch media back and forth between devices its best to make them different media type so bacula does not request media that you will not have. OK. So how do I make the media type different if they both are disk-based volumes? (re-read the manual) Oh. So if I simply name the external type as ExternalFile, that would work? So even if the physical media is the same, you give each a different Media Type, right? Yes, You can name the media Type whatever you want. This is more of a way to inform bacula that X media can only be used in Y storage. And X1 media can only be used in Y1 storage. It makes no difference to bacula if X and X1 are the same physical type bacula just knows that should be handled different. John -- 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
[Bacula-users] Error on internal filesystem
My Bacula 3.01 system (installed on Ubuntu 9.04) is doing File backups to an internal, terabyte volume. Bacula is using PostgreSql as a database backend. The system is an Ubuntu 9.04 desktop system, with a terabyte internal volume for the backups, and an external terabyte volume for VirtualFull backups Bacula was downloaded and compiled from bacula.org The system is set up to do a VirtualFull backup to an external USB terabyte disk drive, using the NextPool parameter in the pool. Both filesystems are formatted as ReiserFS. The storage subsystem has two devices set up, both are set for Media Type = File, but each is set for a different archive device. I have two issues here: First, for some reason, after a while, it decides that the VirtualFull backup fails.Other than the following section in the log file, there is no other information given. The second problem is that even though the error occurred on the External pool, using the ExternalFileStorage, on volume D1, the volume which is marked in error is the volume on the Internal pool, volume Internal In the bacula-sd.conf, the Maximum Concurrent Jobs is set to 1. In bacula-dir.conf, the director has Maximum Concurrent Jobs set to 1, both for the director and for the two storage devices. In bacula-fd.conf, There are two significant problems here. First, is that an error is being reported on a filesystem which is brand new, completely tested, and no errors are shown in the system log. The second, and more serious, is that the wrong volume is being marked as being in error. This totally negates the value of a backup, since a perfectly good backup is marked as being in error. Any ideas would be greatly appreciated. I've attached (sanitized) copies of the bacula-dir.conf and bacula-sd.conf (hopefully they will come through). If the attachments don't come through, let me know and I'll email them to whoever is interested. JBB vv Log output 05-Jun 17:21 bayer-dir JobId 149: Start Virtual Backup JobId 149, Job=ImageBuilder.2009-06-05_16.13.22_14 05-Jun 17:21 bayer-dir JobId 149: Fatal error: No previous Jobs found. 05-Jun 17:21 bayer-dir JobId 149: Error: Bacula bayer-dir 3.0.1 (30Apr09): 05-Jun-2009 17:21:07 Build OS: x86_64-unknown-linux-gnu ubuntu 9.04 JobId: 149 Job:ImageBuilder.2009-06-05_16.13.22_14 Backup Level: Virtual Full Client: imagebuilder-fd 3.0.1 (30Apr09) i686-pc-linux-gnu,ubuntu,7.10 FileSet:ImageBuilder Full Set 2009-06-04 10:37:15 Pool: External (From Job Pool's NextPool resource) Catalog:MyCatalog (From Client resource) Storage:ExternalFileStorage (From Storage from Pool's NextPool resource) Scheduled time: 05-Jun-2009 16:13:19 Start time: 05-Jun-2009 17:21:07 End time: 05-Jun-2009 17:21:07 Elapsed time: 0 secs Priority: 10 SD Files Written: 0 SD Bytes Written: 0 (0 B) Rate: 0.0 KB/s Volume name(s): Volume Session Id: 0 Volume Session Time:0 Last Volume Bytes: 0 (0 B) SD Errors: 0 SD termination status: Termination:*** Backup Error *** ^ end log output ^^ vv Media listing vv Pool: Internal +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 1 | Internal | Error | 1 | 714,354,391,772 | 166 | 31,536,000 | 1 |0 | 0 | File | 2009-06-05 04:10:49 | +-++---+-+-+--+--+-+--+---+---+-+ Pool: External +-++---+-+-+--+--+-+--+---+---+-+ | mediaid | volumename | volstatus | enabled | volbytes| volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | +-++---+-+-+--+--+-+--+---+---+-+ | 5 | D1 | Append| 1 | 272,625,134,040 | 63 | 31,536,000 | 1 |0 | 0 | File | 2009-06-05 18:33:31 | +-++---+-+-+--+--+-+--+---+---+-+
Re: [Bacula-users] VirtualFull backup bug
Additional info (trouble with my original email address, so am using this one for now) I purged the volume on the external pool, and tried restarting one of the jobs which were failing. This time it is working. JBB On Fri, 2009-06-05 at 11:35 -0400, Jonathan B Bayer wrote: Hello Bacula-users, I'm having a problem with a VirtualFull backup. I have a single schedule and two Pools. This system is doing backups to disk drives. Essentially, I do all my backups to an internal drive, then when those are done I want to do a VirtualFull backup to an external drive. Both drives are 1 terabyte drives. All my backup jobs use these pools and schedule. Some of the virtualfull backups have worked properly, but now that there is some data on the drives, I get the following error. It apparently is trying to mount a volume which is in the External pool on the internal pool. Any ideas? JBB 05-Jun 11:31 bayer-dir JobId 136: Start Virtual Backup JobId 136, Job=dns.2009-06-05_11.31.32_08 05-Jun 11:31 bayer-dir JobId 136: Bootstrap records written to /var/lib/bacula/working/bayer-dir.restore.4.bsr 05-Jun 11:31 bayer-dir JobId 136: Using Device ExternalFileStorage 05-Jun 11:31 bayer-sd JobId 136: Warning: dev.c:534 dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such file or directory 05-Jun 11:31 bayer-sd JobId 136: Warning: acquire.c:221 Read open device FileStorage (/var/lib/bacula/archive) Volume D1 failed: ERR=dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such file or directory 05-Jun 11:31 bayer-sd JobId 136: Please mount Volume D1 for: Job: dns.2009-06-05_11.31.32_08 Storage: FileStorage (/var/lib/bacula/archive) Pool: Internal Media type: File Device { Name = FileStorage Media Type = File Archive Device = /var/lib/bacula/archive LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; SpoolDirectory = /var/spool/bacula } Device { Name = ExternalFileStorage Media Type = File Archive Device = /media/bacula LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; SpoolDirectory = /var/spool/bacula } 45,3 20% # Default pool definition Pool { Name = Internal Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year NextPool = External Storage = File } Pool { Name = External Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Storage = ExternalFileStorage } # Scratch pool definition Pool { Name = Scratch Pool Type = Backup } 294,1 86% Schedule { Name = WeeklyCycle Run = Full 1st sun at 1:05 Run = Differential 2nd-5th sun at 1:05 Run = Incremental mon-sat at 1:05 Run = VirtualFull daily at 5:05 } -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users