[Bacula-users] A peculiarity when running restores
I have something very odd going on that I do not understand. I have one year retention on Full backups (run once a month), two months on differentials (run weekly), and two weeks on incrementals (run nightly). If I run a restore from bconsole, it runs perfectly. If I try to run exactly the same restore from BAT to the same client, BAT will tell me that no Full job was found prior to the last incremental, and refuse to restore. It's as though BAT is generating an incorrect query that can see only the most recent few jobs. Has anyone else encountered this problem? -- Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355 ala...@caerllewys.net ala...@metrocast.net p...@co.ordinate.org Renaissance Man, Unix ronin, Perl hacker, SQL wrangler, Free Stater It's not the years, it's the mileage. -- 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] wake on lan in RunBeforeJob
Hello, > Is it possbile to start the RunBeforeJob-Option although the client is > not to connected? It's definitely possible (I've been using Bacula with WOL that way for years); RunBeforeJob definitely does *not* require prior contact with the FD. A possible problem is that the director tries to start the job as soon as the script called in RunBeforeJob returns; therefore you should make sure it blocks until the client has booted up and the FD is ready to accept connections. HTH, andrea -- 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] wake on lan in RunBeforeJob
On 28/06/13 03:35 PM, Wolfgang Routschka wrote: > converted from rtf > Hi, > one question about starting a client for backup with bacula software > and wake-on-lan. > I have configure a bacula job for backup my windows client at night. > To start my client I want to use wake on lan and I use the > RunBeforeJob-option. > Now the problem is bacula only start the option if the bacula-daemon > is able to connect the client. > Fatal error: bsock.c:138 Unable to connect to Client: win8 on > x.x.x.x:9102. ERR=No route to host > Is it possbile to start the RunBeforeJob-Option although the client > is not to connected? > After Running this job I can connect to the Client. > Greetings Wolfgang The brute force technique is to put the wakeonlan call in crontab to run a few minutes before the backup job. -- 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] Is there any interest in a new Bacula reporting system?
Jerome, Yes, the ability to change the timeframe and clients was something that we required too and couldn't get from the existing tools. In this tool you can select timeframe as a duration from now to the past or select specific dates and times for starting and ending range. You can also change it by director, user defined group of clients, or select individual and multiple clients. The custom report creation is basically creating a SQL query. I created custom functions that you put in the query that enables the scope/timeframe change. You then set the default scope, save the report, and it appears in the menu. I would like to have others test it now, but unfortunately I can't provide it to others until the open source project gets approved by my company at which time I will put it up on GitHub. I'm sure it will need additional testing then since it has only been tested in our environment. I will send an email to this Bacula users list with the link when it is ready. Hopefully it will be in a couple of months, by the end of the year at the latest. I put out the question now to make sure that it is worth the effort of going through the open source procedure and to see if anyone had some ideas that I could add to it. By requirements I assume you mean what I would call prerequisites. They are: Obviously a Bacula director A Linux (other unix could work but may need tweaking) server. It could be the same as the Bacula server or separate. Perl and a few modules PHP MySQL Webserver preferably Apache Browser for the front end. Currently Firefox is the only one where everything works flawlessly. Thank you for your interest, Ken Stauch -Original Message- From: Jérôme Blion [mailto:jerome.bl...@free.fr] Sent: Friday, June 28, 2013 1:14 AM To: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Is there any interest in a new Bacula reporting system? Le 2013-06-28 02:13, Kenneth Stauch a écrit : [... SNIP ... ] Hello, I have one important need I can't manage through webacula and bacula-web. bacula-web has some interesting reports, but it's not possible to tune them on the fly. For example, I would like to be able to change the timeframe of these reports or select several clients at a time. If we can create reports through the interface, it's more than perfect, I would be happy to test it. What are the requirements of the tool you developped? HTH. Jerome Blion. -- 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] wake on lan in RunBeforeJob
On 06/28/13 15:35, Wolfgang Routschka wrote: > Hi, > > one question about starting a client for backup with bacula software and > wake-on-lan. > > I have configure a bacula job for backup my windows client at night. To start > my client I want to use wake on lan and I use the RunBeforeJob-option. > > Now the problem is bacula only start the option if the bacula-daemon is able > to connect the client. > > Fatal error: bsock.c:138 Unable to connect to Client: win8 on x.x.x.x:9102. > ERR=No route to host > > Is it possbile to start the RunBeforeJob-Option although the client is not to > connected? > > After Running this job I can connect to the Client. > > Greetings Wolfgang Might be just as easy to create a job of type "Admin" that starts before your Backup job and with a higher priority that just Waes all of your machines in a Runbefore Job. Admin type jobs have no Client. Here's an example that I use: Job { Name = UpdateSlots JobDefs = Defaults Client = None Type = Admin FileSet = None Priority = 8 RunScript { RunsWhen = Before RunsOnClient = no Fail Job On Error = no Command = "/etc/bacula/include/scripts/auto_enable_disable_vols.sh" Command = "/etc/bacula/include/scripts/runbefore-updateslots.sh" } } Hope this helps. -- Bill Arlofski Reverse Polarity, LLC http://www.revpol.com/ -- Not responsible for anything below this line -- -- 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] wake on lan in RunBeforeJob
Hi, one question about starting a client for backup with bacula software and wake-on-lan. I have configure a bacula job for backup my windows client at night. To start my client I want to use wake on lan and I use the RunBeforeJob-option. Now the problem is bacula only start the option if the bacula-daemon is able to connect the client. Fatal error: bsock.c:138 Unable to connect to Client: win8 on x.x.x.x:9102. ERR=No route to host Is it possbile to start the RunBeforeJob-Option although the client is not to connected? After Running this job I can connect to the Client. Greetings Wolfgang -- 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] using auto-clean on an autochanger
Hi everyone, I'm setting up auto-clean on my autochanger (Quantum Scalar i500). The docs say it will clean drives as needed when the host software requests a drive unload, and then tell the host the drive is ready only after the cleaning is complete. Seems reasonable. My question is whether bacula (I'm using 3.0.1) may timeout during this operation, which takes about 3 minutes. Is there a place to set the timeout on drive operations? Thanks, Michael -- 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] Is there any interest in a new Bacula reporting system?
Le 2013-06-28 02:13, Kenneth Stauch a écrit : [... SNIP ... ] Hello, I have one important need I can't manage through webacula and bacula-web. bacula-web has some interesting reports, but it's not possible to tune them on the fly. For example, I would like to be able to change the timeframe of these reports or select several clients at a time. If we can create reports through the interface, it's more than perfect, I would be happy to test it. What are the requirements of the tool you developped? HTH. Jerome Blion. -- 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] command to check if bacula is running?
On Thu, Jun 27, 2013 at 08:45:48AM -0700, Joseph Spenner wrote: > Is there a simple command line way to determine if bacula is not currently > running any jobs? > I want to write a script to perform some other backups of the bacula > database, but want to make sure it's not currently running. > > I was thinking something like: > > > # echo "status director" |bconsole > (and maybe 'grep' for something which would/wouldn't be there when the > bacups are running. > > Any ideas would be great. > > Thanks! > This could also be done by running your backupcatalog job at a higher (lower ;-) priority so it would be queued, but only started once all your regular prio jobs have finished. So you could assign your normal backups prio 10 and the catalog backup prio 100 or thereabouts and set "allow mix priority jobs" to "False" (from memory). Also, make sure to use a decent backup tool if you're using mysql once your catalog grows beyond a certain size, like percona xtrabackup or similar. Cheers, Uwe > > > If life gives you lemons, keep them-- because hey.. free lemons. > "~heart~ Sticker" fixer: http://microflush.org/stuff/stickers/heartFix.html > -- > 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 -- uwe.schuerk...@nionex.net fon: [+49] 5242.91 - 4740, fax:-69 72 Hauptsitz: Avenwedder Str. 55, D-33311 Gütersloh, Germany Registergericht Gütersloh HRB 4196, Geschäftsführer: H. Gosewehr, D. Suda NIONEX --- Ein Unternehmen der Bertelsmann SE & Co. KGaA -- 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