Re: [Bacula-users] backup to two alternating USB disks
Marco Mandl schrieb: It would be very simple if bacula would recognize which volumes are available on the disk. And I though this would be what the removable media option does. But it does not work with my configuration. So maybe there something else to configure. what about using : - Requires Mount - Mount Point - Mount Command - Unmount Command (http://www.bacula.org/fr/dev-manual/Configuratio_Storage_Daemon.html#SECTION00485000 - didn't found it in english) - Thomas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup to two alternating USB disks
Marco Mandl schrieb: It would be very simple if bacula would recognize which volumes are available on the disk. And I though this would be what the removable media option does. But it does not work with my configuration. So maybe there something else to configure. what about using : - Requires Mount - Mount Point - Mount Command - Unmount Command (http://www.bacula.org/fr/dev-manual/Configuratio_Storage_Daemon.html#SECTION00485000 - didn't found it in english) - Thomas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] SD Connections problems
Hi All, i've setup bacula for some clients, both windows and *nix, fully TLS encrypted. There are some Laptops which are not always online and indirect makes trouble. My Problem is, when some jobs failed, bacula-dir cannot connect to the SD anymore. Error message is 2008-02-04 10:56:53 backup-server-dir JobId 597: Fatal error: authenticate.c:113 Director unable to authenticate with Storage daemon at backup-server.XX.YY:9103. Possible causes: Passwords or names not the same or Maximum Concurrent Jobs exceeded on the SD or SD networking messed up (restart daemon). Please see http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors for help. Maximum Concurent Jobs is set to 200 (on dir, fd, sd) and SD hangs now. When i increase this, i get this error just later. It seems that something does not frees a connection to the SD. Is there any way to find out what is going on, who's currently connected or so? Bacula version is 2.2.8 but any older version has this error too. Thanks in advance, Joern Koerner - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Last 7 days
I need to backup about 6 windows servers, one is a storage server, others are domain controllers and sql servers. All servers, except for storage, will produce a single backup file (huge). In my mind i need something like that: - 7 volumes - each sunday first volume is erased and a new full backup is done. - other days same thing, but incremental. (i hope is not a foolish thing) Many thanks Cesare Montresor John Drescher wrote: On Feb 4, 2008 11:37 AM, Cesare Montresor [EMAIL PROTECTED] wrote: Hi all, i need to configure a 7 day backup, 8th day must be deleted, but i'm unsure about schedule, client and pool configuration. Schedule { Name = WeeklyCycle Run = Full sun at 23:05 Run = Incremental mon-sat at 23:05 } Client { Name = anyhost-fd ... File Retention = 7 days Job Retention = 7 days- any suggestion ? :) AutoPrune = yes } Pool { Name = Default Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 7 days- and here ? :) } Volume retention is probably all you need but you have not described what you want in enough detail to give better advice. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup to two alternating USB disks
Thomas schrieb: Marco Mandl schrieb: It would be very simple if bacula would recognize which volumes are available on the disk. And I though this would be what the removable media option does. But it does not work with my configuration. So maybe there something else to configure. what about using : *Requires Mount **Mount Point **Mount Command **Unmount Command (http://www.bacula.org/fr/dev-manual/Configuratio_Storage_Daemon.html#SECTION00485000 - didn't found it in english) - Thomas * Thomas, Thanks for the hint. But I do not understand how this can help bacula to recognize which volumes are on the usb disk. Actually I am already using this directives to mount the encrypted partitions on the usb disks. Regards, Marco - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
James Harper schrieb: I'm not sure if this is just something peculiar to my configuration, but in the text console for bacula, if I type a command then backspace over it then press enter, bacula still acts as if I typed the command, or at least part of it. Does anyone else see this or is it just me? I get wildly varying results with line editing in bconsole between different systems. On some systems, I can edit the command on the screen as expected, with backspace erasing characters from the end as usual, but when I finally type enter what gets sent as command is obviously not what I last saw on the screen. On others, hitting backspace once skips to a new line as if it had deleted the entire command, so line editing is guesswork at best, and never seems to result in what I intended. Bconsole itself doesn't really help in identifying the problem, since it never tells me what was the actual command it thought I sent or what was specifically wrong with it. On a single one of my systems, line editing actually works as expected, but I don't know why. All systems are running some version of Suse Linux. The one where line editing works correctly has openSUSE 10.3 and Bacula version 2.0.3 which came with that. One of those which skip to a new line as soon as I try any line editing at all has the same versions. Most others are older Suse releases with self-compiled Baculas from the 2.2.x range. Go figure. HTH T. -- Tilman Schmidt Abteilungsleiter Technik Phoenix Software GmbH Tel. +49 228 97199 0 Geschäftsführer: W. Grießl Fax +49 228 97199 99 Adolf-Hombitzer-Str. 12 www.phoenixsoftware.de 53227 Bonn, GermanyAmtsgericht Bonn HRB 2934 signature.asc Description: OpenPGP digital signature - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
Tilman Schmidt wrote: James Harper schrieb: I'm not sure if this is just something peculiar to my configuration, but in the text console for bacula, if I type a command then backspace over it then press enter, bacula still acts as if I typed the command, or at least part of it. Does anyone else see this or is it just me? I get wildly varying results with line editing in bconsole between different systems. On some systems, I can edit the command on the screen as expected, with backspace erasing characters from the end as usual, but when I finally type enter what gets sent as command is obviously not what I last saw on the screen. On others, hitting backspace once skips to a new line as if it had deleted the entire command, so line editing is guesswork at best, and never seems to result in what I intended. Bconsole itself doesn't really help in identifying the problem, since it never tells me what was the actual command it thought I sent or what was specifically wrong with it. On a single one of my systems, line editing actually works as expected, but I don't know why. All systems are running some version of Suse Linux. The one where line editing works correctly has openSUSE 10.3 and Bacula version 2.0.3 which came with that. One of those which skip to a new line as soon as I try any line editing at all has the same versions. Most others are older Suse releases with self-compiled Baculas from the 2.2.x range. Go figure. I suspect readline. Different versions and/or options. -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Unable to find Qt4 installation needed by bat
Dear sir Pls find attached my config.log file. I have tried to read through this file but didn't get any useful info. DEVAL KULSHRESTHA - Original Message From: Ryan Novosielski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, 4 February, 2008 8:14:50 PM Subject: Re: [Bacula-users] Unable to find Qt4 installation needed by bat .. Original Message ... On Mon, 04 Feb 2008 18:43:38 +0530 (IST) [EMAIL PROTECTED] wrote: Hi I am a new user of Bacula. Trying to set it up and evaluate all the features. My initial setup is working fine with Linux(RHEL) based servers and Windows servers. I wanted to enable bat(Bacula admin tool). I have prepared a new setup and completed all pre-requisite for Bacula and bat.(Mysql Database, Qt4 , qwt) and than trying to run CFLAGS ./configure.. with specifying all the right location of qwt. but configure's initial check always get stopped at error:Unable to find Qt4 installation needed by bat. Tried variation of installation and even someone suggested *.pc file copy from /usr/local to /usr/lib/pkgconfig. but still its not working. I need some clue and help from Bacula experts.. how can i take it forward? Please comment. DEVAL KULSHRESTHA You'll want to show the relevant portions of config.log, which will tell you how it arrived at that conclusion (generally which file it wanted that it could not find). Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php config.log Description: Binary data - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Last 7 days
Cesare Montresor [EMAIL PROTECTED] kirjoitti viestissä news:[EMAIL PROTECTED] I need to backup about 6 windows servers, one is a storage server, others are domain controllers and sql servers. All servers, except for storage, will produce a single backup file (huge). In my mind i need something like that: - 7 volumes - each sunday first volume is erased and a new full backup is done. - other days same thing, but incremental. (i hope is not a foolish thing) If I got your idea correctly, you would have 7 volumes, one of them holding the full backup of Sunday. So, what if... something crashes on Sunday right after recycling the full backup volume, before a new full backup would be finished (maybe a weekly period of an hour or two, when your server is running at full throttle due to the backup job)? Then you wouln't have any full backup left any more, and the incrementals won't help you very much alone. I recommend adding one more volume, to the total of 8. If all the volumes are of the same physical size (~similar tapes) you could always recycle the oldest, then full backup would fit to any of them, and the tapes would experience same usage on average, although the ones holding the incrementals would keep being less full that week. Actually, this way you could consider making differential backups instead of incremental ones. Other way, have two bigger volumes for full backups, and always recycle the older of them. This way you would actually have both full backups available for almost 2 weeks, and you could store them in separate locations etc... Then six (smaller) ones for the incrementals, just recycle the oldest. And keep in mind that to recover the system on Saturday, you'll need full backup and all the 6 incrementals. -- TiN - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Last 7 days
Cesare Montresor [EMAIL PROTECTED] kirjoitti viestissä news:[EMAIL PROTECTED] I need to backup about 6 windows servers, one is a storage server, others are domain controllers and sql servers. All servers, except for storage, will produce a single backup file (huge). In my mind i need something like that: - 7 volumes - each sunday first volume is erased and a new full backup is done. - other days same thing, but incremental. (i hope is not a foolish thing) Another issue: if your database etc servers are backed up as a single file (making a snapshot of the server), they'll actually be backed up as full backups every day, not as incremental ones (every file in the set of 1 files is new every time...) So you'll need same amount of storage every day (for full or incremental), if you expect Bacula to make the backups incremental. If your database server somehow takes care of this, things may be different) -- TiN - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] media change woes on weekends
I'm using a Daily pool for incremental backups on weekdays, and a Weekly pool for full backups on weekends. The Weekly pool has Volume Use Duration = 8h because the full backup goes into off-site storage. Now if Bacula hits the end of a Weekly tape, the weekend's remaining jobs will block waiting for the next tape. Come monday, the operator finally labels a new tape - which Bacula immediately transitions from Append to Used because it sees the maximum duration of use as exceeded. Apparently that duration is counted from the start of the job, not as I thought from the start of using that volume. So the volume's state has to be manually updated in order for the backup to proceed - something which is much too complicated for the tape operator, so I end up doing that myself. :-( Worse, if monday is a holiday, monday's jobs will queue up behind those of the weekend. When the tape change has finally been performed, the weekend jobs finish - except for the BackupCatalog job, which has Priority = 11 to make it run after the others, and is now postponed until *monday's* file backup jobs have run. Consequence: Bacula asks for the Daily tape, writes the incremental backups, and then asks for the Weekly tape again to append the catalog data - of course marking it not appendable again as soon as it sees it, see above. Obviously I'm doing something wrong. Can someone help my ignorance? Thanks Tilman -- Tilman Schmidt Phoenix Software GmbH www.phoenixsoftware.de 53227 Bonn, GermanyAmtsgericht Bonn HRB 2934 signature.asc Description: OpenPGP digital signature - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Ang. Re: Unable to find Qt4 installation needed by bat
Hello Deval, I went through the same process with trying to get BAT to work with Fedora7 and CentOS 5. Here is my own Howto after many hours of trial and error. I hope it helps. http://nordickiwi.no-ip.com/mediawiki/index.php/Install_notes_-_from_source - Roger Sinel - [EMAIL PROTECTED] Sänt av: [EMAIL PROTECTED] 02/05/2008 11:53 AM Till Ryan Novosielski [EMAIL PROTECTED] Kopia bacula-users@lists.sourceforge.net Ärende Re: [Bacula-users] Unable to find Qt4 installation needed by bat Dear sir Pls find attached my config.log file. I have tried to read through this file but didn't get any useful info. DEVAL KULSHRESTHA - Original Message From: Ryan Novosielski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, 4 February, 2008 8:14:50 PM Subject: Re: [Bacula-users] Unable to find Qt4 installation needed by bat .. Original Message ... On Mon, 04 Feb 2008 18:43:38 +0530 (IST) [EMAIL PROTECTED] wrote: Hi I am a new user of Bacula. Trying to set it up and evaluate all the features. My initial setup is working fine with Linux(RHEL) based servers and Windows servers. I wanted to enable bat(Bacula admin tool). I have prepared a new setup and completed all pre-requisite for Bacula and bat.(Mysql Database, Qt4 , qwt) and than trying to run CFLAGS ./configure.. with specifying all the right location of qwt. but configure's initial check always get stopped at error:Unable to find Qt4 installation needed by bat. Tried variation of installation and even someone suggested *.pc file copy from /usr/local to /usr/lib/pkgconfig. but still its not working. I need some clue and help from Bacula experts. how can i take it forward? Please comment. DEVAL KULSHRESTHA You'll want to show the relevant portions of config.log, which will tell you how it arrived at that conclusion (generally which file it wanted that it could not find). 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users config.log Description: Binary data - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Ang. Re: Unable to find Qt4 installation needed by bat
[EMAIL PROTECTED] wrote: Hello Deval, I went through the same process with trying to get BAT to work with Fedora7 and CentOS 5. Here is my own Howto after many hours of trial and error. I hope it helps. http://nordickiwi.no-ip.com/mediawiki/index.php/Install_notes_-_from_source This seems worthy of addition to the Bacula wiki: http://wiki.bacula.org/doku.php -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Ang. Re: Ang. Re: Unable to find Qt4 installation needed by bat
Done - http://wiki.bacula.org/doku.php?id=howto_compile_and_install_bacula_with_bat_on_fedora_7_or_centos_5 - Roger Sinel - Dan Langille [EMAIL PROTECTED] 02/05/2008 12:28 PM Till [EMAIL PROTECTED] Kopia [EMAIL PROTECTED], bacula-users@lists.sourceforge.net Ärende Re: [Bacula-users] Ang. Re: Unable to find Qt4 installation needed by bat [EMAIL PROTECTED] wrote: Hello Deval, I went through the same process with trying to get BAT to work with Fedora7 and CentOS 5. Here is my own Howto after many hours of trial and error. I hope it helps. http://nordickiwi.no-ip.com/mediawiki/index.php/Install_notes_-_from_source This seems worthy of addition to the Bacula wiki: http://wiki.bacula.org/doku.php -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Ang. Re: Ang. Re: Unable to find Qt4 installation needed by bat
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hello Deval, I went through the same process with trying to get BAT to work with Fedora7 and CentOS 5. Here is my own Howto after many hours of trial and error. I hope it helps. http://nordickiwi.no-ip.com/mediawiki/index.php/Install_notes_-_from_source This seems worthy of addition to the Bacula wiki: Done - http://wiki.bacula.org/doku.php?id=howto_compile_and_install_bacula_with_bat_on_fedora_7_or_centos_5 \o/ Thank you. :) -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problem with automatic mounting volumes
Yes, I did! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problem with automatic mounting volumes
Just so everyone is not confused. The question I asked was did the file storage run out of space. And the answer is below. On Feb 5, 2008 10:37 AM, Tomasz Moczadłowski [EMAIL PROTECTED] wrote: Yes, I did! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Force Bacula to skip failed jobs?
Maybe this is more of a comment than a question, as I've scoured the docs and haven't found and answer. But... I'm using Bacula for my home development network, web server, mail server, etc. I'm offsite except for 2 weekends a month. I don't have an autoloader, so I have 2 tape drives, and usually time it so one backup fits on one tape, and switch tapes every other weekend. A week ago I had just done more work than usual on one of the machines, and filled the tape prematurely. So, I woke up to a Nagios screen that looked like the set of a bad slasher movie. Not only had the tape runs stopped half way through (asking to label a new tape), but the subsequent differentials to disk were queueing up behind the failed tape runs - all just because of a filed tape. More importantly, I had another tape drive with an empty tape sitting there in the same pool. So, is there any way to, or any plans to add (in future releases) an option to: 1) allow backups to move to another storage resource in the same pool when the first one is full (if implemented, I guess a config file option) 2) NOT have backups pile up - i.e. if a backup to a tape pool A is waiting or failed, and another backup comes up going to a disk pool B, let the other backup run? Thanks, Jason - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] purging jobs
Hi, today i have purged some old clients from the catalog. *purge This command is can be DANGEROUS!!! It purges (deletes) all Files from a Job, JobId, Client or Volume; or it purges (deletes) all Jobs from a Client or Volume without regard for retention periods. Normally you should use the PRUNE command, which respects retention periods. The defined Catalog resources are: 1: MyCatalog 2: Verify Select Catalog resource (1-2): 1 Using Catalog MyCatalog You have the following choices: 1: files 2: jobs 3: volume Choose item to purge (1-3): 2 The defined Client resources are: 1: a.ic3s.de 2: b.ic3s.de ... 90: a7.ic3s.de ... 100: xf.ic3s.de Select Client (File daemon) resource (1-100): 90 Begin purging jobs from Client a7.ic3s.de No Files found for client a7.ic3s.de to purge from MyCatalog catalog. * after that all jobs/files from client a7.ic3s.de are successfully removed from the catalog, is No Files found for client a7.ic3s.de to purge from MyCatalog catalog. the correct message after purging jobs? it sounds like something went wrong or wasn't found... Regards Thomas -- [:O][O:] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] purging jobs
On Feb 5, 2008 1:15 PM, Thomas [EMAIL PROTECTED] wrote: Hi, today i have purged some old clients from the catalog. *purge This command is can be DANGEROUS!!! It purges (deletes) all Files from a Job, JobId, Client or Volume; or it purges (deletes) all Jobs from a Client or Volume without regard for retention periods. Normally you should use the PRUNE command, which respects retention periods. The defined Catalog resources are: 1: MyCatalog 2: Verify Select Catalog resource (1-2): 1 Using Catalog MyCatalog You have the following choices: 1: files 2: jobs 3: volume Choose item to purge (1-3): 2 The defined Client resources are: 1: a.ic3s.de 2: b.ic3s.de ... 90: a7.ic3s.de ... 100: xf.ic3s.de Select Client (File daemon) resource (1-100): 90 Begin purging jobs from Client a7.ic3s.de No Files found for client a7.ic3s.de to purge from MyCatalog catalog. * after that all jobs/files from client a7.ic3s.de are successfully removed from the catalog, is No Files found for client a7.ic3s.de to purge from MyCatalog catalog. the correct message after purging jobs? it sounds like something went wrong or wasn't found... If the jobs were already on volumes that got purged then the jobs were already purged. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Force Bacula to skip failed jobs?
2) NOT have backups pile up - i.e. if a backup to a tape pool A is waiting or failed, and another backup comes up going to a disk pool B, let the other backup run? If you enable concurrency this case will go away. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] purging jobs
John Drescher schrieb: On Feb 5, 2008 1:15 PM, Thomas [EMAIL PROTECTED] wrote: Hi, today i have purged some old clients from the catalog. *purge This command is can be DANGEROUS!!! It purges (deletes) all Files from a Job, JobId, Client or Volume; or it purges (deletes) all Jobs from a Client or Volume without regard for retention periods. Normally you should use the PRUNE command, which respects retention periods. The defined Catalog resources are: 1: MyCatalog 2: Verify Select Catalog resource (1-2): 1 Using Catalog MyCatalog You have the following choices: 1: files 2: jobs 3: volume Choose item to purge (1-3): 2 The defined Client resources are: 1: a.ic3s.de 2: b.ic3s.de ... 90: a7.ic3s.de ... 100: xf.ic3s.de Select Client (File daemon) resource (1-100): 90 Begin purging jobs from Client a7.ic3s.de No Files found for client a7.ic3s.de to purge from MyCatalog catalog. * after that all jobs/files from client a7.ic3s.de are successfully removed from the catalog, is No Files found for client a7.ic3s.de to purge from MyCatalog catalog. the correct message after purging jobs? it sounds like something went wrong or wasn't found... If the jobs were already on volumes that got purged then the jobs were already purged. before the purge command there were related job entries in the catalog, after the command they are gone, the volumes are not expired/purged/pruned/deleted. the command works like expected, but i wonder if this message is a bug or just a bad message that should show the successful execution of the command -- [:O][O:] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] purging jobs
before the purge command there were related job entries in the catalog, after the command they are gone, the volumes are not expired/purged/pruned/deleted. the command works like expected, but i wonder if this message is a bug or just a bad message that should show the successful execution of the command It is possible to have job entries in the catalog without any files associated with the jobs (result of a shorter file retention period than job retention). Could this be your case? John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] purging jobs
John Drescher schrieb: before the purge command there were related job entries in the catalog, after the command they are gone, the volumes are not expired/purged/pruned/deleted. the command works like expected, but i wonder if this message is a bug or just a bad message that should show the successful execution of the command It is possible to have job entries in the catalog without any files associated with the jobs (result of a shorter file retention period than job retention). Could this be your case? no, job and file retention are longer then volume retention. jobs and files are deleted from the catalog when the volume expires. (job and file retention 12 months, volume retention 9 months) -- [:O][O:] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
On Tue, 05 Feb 2008 05:56:21 -0500, Dan Langille said: Tilman Schmidt wrote: James Harper schrieb: I'm not sure if this is just something peculiar to my configuration, but in the text console for bacula, if I type a command then backspace over it then press enter, bacula still acts as if I typed the command, or at least part of it. Does anyone else see this or is it just me? I get wildly varying results with line editing in bconsole between different systems. On some systems, I can edit the command on the screen as expected, with backspace erasing characters from the end as usual, but when I finally type enter what gets sent as command is obviously not what I last saw on the screen. On others, hitting backspace once skips to a new line as if it had deleted the entire command, so line editing is guesswork at best, and never seems to result in what I intended. Bconsole itself doesn't really help in identifying the problem, since it never tells me what was the actual command it thought I sent or what was specifically wrong with it. On a single one of my systems, line editing actually works as expected, but I don't know why. All systems are running some version of Suse Linux. The one where line editing works correctly has openSUSE 10.3 and Bacula version 2.0.3 which came with that. One of those which skip to a new line as soon as I try any line editing at all has the same versions. Most others are older Suse releases with self-compiled Baculas from the 2.2.x range. Go figure. I suspect readline. Different versions and/or options. That depends on whether readline is being used. I think the default is to use the internal conio instead. __Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
Martin Simmons wrote: On Tue, 05 Feb 2008 05:56:21 -0500, Dan Langille said: Tilman Schmidt wrote: James Harper schrieb: I'm not sure if this is just something peculiar to my configuration, but in the text console for bacula, if I type a command then backspace over it then press enter, bacula still acts as if I typed the command, or at least part of it. Does anyone else see this or is it just me? I get wildly varying results with line editing in bconsole between different systems. On some systems, I can edit the command on the screen as expected, with backspace erasing characters from the end as usual, but when I finally type enter what gets sent as command is obviously not what I last saw on the screen. On others, hitting backspace once skips to a new line as if it had deleted the entire command, so line editing is guesswork at best, and never seems to result in what I intended. Bconsole itself doesn't really help in identifying the problem, since it never tells me what was the actual command it thought I sent or what was specifically wrong with it. On a single one of my systems, line editing actually works as expected, but I don't know why. All systems are running some version of Suse Linux. The one where line editing works correctly has openSUSE 10.3 and Bacula version 2.0.3 which came with that. One of those which skip to a new line as soon as I try any line editing at all has the same versions. Most others are older Suse releases with self-compiled Baculas from the 2.2.x range. Go figure. I suspect readline. Different versions and/or options. That depends on whether readline is being used. I think the default is to use the internal conio instead. Come up with a test for determining what is being used and let the investigations begin. Will this suffice? [EMAIL PROTECTED]:~] $ ldd `which bconsole` /usr/local/sbin/bconsole: libreadline.so.6 = /lib/libreadline.so.6 (0x280a2000) libhistory.so.6 = /usr/lib/libhistory.so.6 (0x280cf000) libncurses.so.6 = /lib/libncurses.so.6 (0x280d6000) libpthread.so.2 = /lib/libpthread.so.2 (0x28115000) libintl.so.8 = /usr/local/lib/libintl.so.8 (0x2813a000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28143000) libssl.so.4 = /usr/lib/libssl.so.4 (0x2823) libcrypto.so.4 = /lib/libcrypto.so.4 (0x2825e000) libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x28351000) libm.so.4 = /lib/libm.so.4 (0x2841c000) libc.so.6 = /lib/libc.so.6 (0x28432000) [EMAIL PROTECTED]:~] $ -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
[EMAIL PROTECTED]:~] $ ldd `which bconsole` /usr/local/sbin/bconsole: libreadline.so.6 = /lib/libreadline.so.6 (0x280a2000) libhistory.so.6 = /usr/lib/libhistory.so.6 (0x280cf000) libncurses.so.6 = /lib/libncurses.so.6 (0x280d6000) libpthread.so.2 = /lib/libpthread.so.2 (0x28115000) libintl.so.8 = /usr/local/lib/libintl.so.8 (0x2813a000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28143000) libssl.so.4 = /usr/lib/libssl.so.4 (0x2823) libcrypto.so.4 = /lib/libcrypto.so.4 (0x2825e000) libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x28351000) libm.so.4 = /lib/libm.so.4 (0x2841c000) libc.so.6 = /lib/libc.so.6 (0x28432000) [EMAIL PROTECTED]:~] $ -- I have this bug on x86_64 and here is my output: # ldd `which bconsole` libncurses.so.5 = /lib/libncurses.so.5 (0x2b68830d3000) libpthread.so.0 = /lib/libpthread.so.0 (0x2b6883335000) libdl.so.2 = /lib/libdl.so.2 (0x2b688355) libssl.so.0.9.8 = /usr/lib/libssl.so.0.9.8 (0x2b6883755000) libcrypto.so.0.9.8 = /usr/lib/libcrypto.so.0.9.8 (0x2b68839a6000) libstdc++.so.6 = /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libstdc++.so.6 (0x2b6883d2c000) libm.so.6 = /lib/libm.so.6 (0x2b6883f1d000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x2b68841a3000) libc.so.6 = /lib/libc.so.6 (0x2b68842ae000) /lib64/ld-linux-x86-64.so.2 (0x2b6882eb7000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x2b68845ef000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x2b688481b000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x2b6884aa6000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x2b6884caa000) libresolv.so.2 = /lib/libresolv.so.2 (0x2b6884ed) libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2b68850e4000) John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] slightly annoying bug in the console
On Tuesday 05 February 2008 14:19, Dan Langille wrote: Come up with a test for determining what is being used and let the investigations begin. Will this suffice? [EMAIL PROTECTED]:~] $ ldd `which bconsole` /usr/local/sbin/bconsole: libreadline.so.6 = /lib/libreadline.so.6 (0x280a2000) libhistory.so.6 = /usr/lib/libhistory.so.6 (0x280cf000) libncurses.so.6 = /lib/libncurses.so.6 (0x280d6000) libpthread.so.2 = /lib/libpthread.so.2 (0x28115000) libintl.so.8 = /usr/local/lib/libintl.so.8 (0x2813a000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28143000) libssl.so.4 = /usr/lib/libssl.so.4 (0x2823) libcrypto.so.4 = /lib/libcrypto.so.4 (0x2825e000) libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x28351000) libm.so.4 = /lib/libm.so.4 (0x2841c000) libc.so.6 = /lib/libc.so.6 (0x28432000) [EMAIL PROTECTED]:~] $ x86_64 Linux Debian Etch Bacula 1.38.11 Installed from the Debian binary packages. ~$ ldd /usr/sbin/bacula-console libncurses.so.5 = /lib/libncurses.so.5 (0x2b0369cbc000) libpthread.so.0 = /lib/libpthread.so.0 (0x2b0369e17000) libdl.so.2 = /lib/libdl.so.2 (0x2b0369f2d000) libssl.so.0.9.8 = /usr/lib/libssl.so.0.9.8 (0x2b036a03) libcrypto.so.0.9.8 = /usr/lib/libcrypto.so.0.9.8 (0x2b036a177000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x2b036a3ec000) libm.so.6 = /lib/libm.so.6 (0x2b036a5ea000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x2b036a76c000) libc.so.6 = /lib/libc.so.6 (0x2b036a87a000) /lib64/ld-linux-x86-64.so.2 (0x2b0369ba4000) libz.so.1 = /usr/lib/libz.so.1 (0x2b036aab6000) Backspace seems to work almost as expected. If I type status and then backspace so that nothing is showing on the line except for the * prompt bconsole still executes the status command. If I backspace fully then type over with something else, then the something else is executed. If I type something and then backspace until only one or two letters are remaining, for example time == t or trace == t then always, time is executed. That is, if the remaining letters are ambiguous, then bconsole executes the first command in the help list. HTH cmr -- Debian 'Etch' - Registered Linux User #241964 More laws, less justice. -- Marcus Tullius Ciceroca, 42 BC - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Must resource names match?
On Mon, 4 Feb 2008 12:52:06 -0500, Ben Hyde said: I have Bacula installed[1] and running, thanks. That installation gave me some sample configuration files. I got to writing up my notes as kind of self audit of my install and ... I'm so confused! I assume that if the same resource is described in two configuration files, and they both provide a name for that resource that name should be identical. Otherwise, at minimum, the reports created using bconsole are going to get confusing. But the storage daemon's resource, in the examples I got when I installed, don't follow that rule. In the director deamon's configuration file it's named File (sic), while in the storage deamon's configuration file it's called elm-sd. Presumably there isn't any code to check that the names match. That's my question? Should names attributes, if given, for a given resource be identical across configuration files? Or is it a must? In a related matter this text appears in the bacula-sd.conf.sample file: ... # # Devices supported by this Storage Daemon # To connect, the Directiors'bacula-dir.conf must have the # same Name and MediaType # Device { Name = FileStorage Media Type = File ... Which leads one to think that the storage daemon on the director side should be named after the device name. Which seems wrong. Like I said I have it all working, and at this point I've changed the director's config file to get rid of the storage resource called File. I changed it to the name used in the storage daemon's config file - since that's what feels correct to me. If somebody can point out where these sample configuration files are in the svn browser I'd can provide put together some patches. The director's configuration references the names of the storage daemon's devices, not the daemon itself. This is because a storage daemon can have several devices. The name of the storage daemon is not used outside that daemon's configuration file. __Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help With bacula excluding directories
On Fri, 01 Feb 2008 13:28:45 -0700, jeffrey Lang said: My question is this: On my netapp device i have .snapshot directories interspersed in the file system. I need to delete these from my backup. I have tried numerous things, first reading the manual but have not yet been successful in making this happen. Bacula version: Version: 2.2.3 ( i know there is newer versions) Here;s my configuration for the server to be backed up which NFS mounts the filesystems from the netapp. ... } # List of files to be backed up FileSet { Name = hp1-home Include { Options { signature = MD5 noatime= yes } File = /net/uwyo/vol/vol0 } Exclude { File = core File = .snapshot } } With the above job definition I still get the .snapshot directoies included in the backup. I know that i'm missing something about the EXCLUDE list but i can't seem to figure out what. What do i need to change to exclude all .snapshot direcories inthe file system? The problem with the above is that File = line must match the whole path. Instead of using an Exclude clause, you need to put an Options clause at the start of the Include clause containing something like wilddir = */.snapshot exclude = yes There are examples of this in the FileSet Examples section manual. __Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Getting device / autochanger status for external script?
Hi all, I'm writing an external perl script to query the bacula DB so I can grab out the list of tapes in the autochanger and do some formating on the resulting data to make it easier to read. But what I really want is to be able to: 1. know t he number of slots/drives in the autochanger(s). 2. query the drives. 3. query the slots. 4. then query the media DB to figure out the status of various pieces of media. I've got the intial script working, which only queries (via mysql) the Media DB to find out some info and pretty print the data. But of course the Storage and Device tables aren't actually populated. And I don't think I want to parse the Bacula configuration files to run my queries. Should I be running bconsole commands and parsing the output instead? Something like this: bconsole -c /etc/bacula/bacula-director.conf EOF status storage EOF And then take all the output and parse it with my perl script? Ugly... And does anyone else find it annoying that you can't do: status slots but instead you have to run: update slots drive=0 even if you *don't care* which drive gets used, bacula should just pick it's own damm drive for the checking, if needed. And since update slots hacks the Media table, what's the process to get the status without an update? Thanks, John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Running a group of scheduled jobs
Hi, So, I had a problem with Bacula (actually I just forgot to feed it some tapes). A few days worth of jobs piled up, and it made a big mess with all of the snapshots each job runs, so I just restarted Bacula to kill all of the jobs. So, now I want to run all of my scheduled jobs that should have ran on Sunday (my monthly schedule). Is there a way to run a group of jobs that are in a schedule all at once? I'm hoping there is an easier way then doing a 'run' for all 50 jobs in bconsole. Thanks in advance! --Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Running a group of scheduled jobs
[EMAIL PROTECTED] wrote: Hi, So, I had a problem with Bacula (actually I just forgot to feed it some tapes). A few days worth of jobs piled up, and it made a big mess with all of the snapshots each job runs, so I just restarted Bacula to kill all of the jobs. So, now I want to run all of my scheduled jobs that should have ran on Sunday (my monthly schedule). Is there a way to run a group of jobs that are in a schedule all at once? I'm hoping there is an easier way then doing a 'run' for all 50 jobs in bconsole. shell script: JOBNAMES=a b c for job in $JOBS do echo run job=$job yes | bconsole done Not tested but you get the idea. -- Dan Langille - http://www.langille.org/ BSDCan - The Technical BSD Conference: http://www.bsdcan.org/ PGCon - The PostgreSQL Conference:http://www.pgcon.org/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Getting device / autochanger status for external script?
John Stoffel wrote: even if you *don't care* which drive gets used, bacula should just pick it's own damm drive for the checking, if needed. And since update slots hacks the Media table, what's the process to get the status without an update? Does this give you what you need? #!/bin/sh bconsole -c /etc/bacula/bconsole.conf END_OF_DATA query 15 quit END_OF_DATA Mark - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mac OS X Leopard and Bacula 2.2.8 (ACLs)
On 2/4/08, Martin Simmons [EMAIL PROTECTED] wrote: On Sat, 2 Feb 2008 00:17:29 -1000, Hydro Meteor said: I wonder what would need to be done in the Bacula source to properly capture and restore ACL metadata on file systems mounted to Mac OS X Leopard (or Tiger for that matter) operating systems? Does anyone have any suggestions? It looks like Apple's acl_get_file does not support the ACL_TYPE_DEFAULT and ACL_TYPE_ACCESS types of query. Someone else has enjoyed this problem too: http://xarchiver.blogspot.com/2007/04/mac-os-x-acls-added.html Martin, thank you for pointing this out. I sent an email to Rob Braun (who is the author of the page on the blog your URI links to) to ask him if his statements made in April 2007 (about ACL API discrepancies on Mac OS X Tiger 10.4) continue to apply now on Mac OS X Leopard 10.5 ... I have not received a response from him yet but if I do receive one I will share it on this mailing list. One way or another, there ought to be a way to get to the bottom of what Apple has done (differently) with POSIX ACLs and then hopefully they can be incorporated into Bacula. Many of us want to use Bacula for back up and restore purposes (including very importantly that Bacula is open source / GPL) on Mac OS X and we do not want to become dependent on Apple's closed-source Time Machine software. Time Machine is probably going to be fine for mass consumers but for those of us running professional systems on OS X Server we will want control of our file system backup and recovery with Bacula. Cheers, Hydro __Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] RunBeforeJob on Win32 fails with no errors.
Hi Guys I am officially stumped. I am trying to run a script before the job to copy the bacula db before backing it up. The batch script works when its clicked. But, whether I use the 'ClientRunBeforeJob' not 'RunBeforeJob', the files are not copied, despite a successful report from the run: 06-Feb 10:40 SERVER01-dir JobId 5: Start Backup JobId 5, Job=Server-Backup.2008-02-06_10.40.03 06-Feb 10:40 SERVER01-dir JobId 5: Using Device FileStorage 06-Feb 10:40 Server JobId 5: ClientRunBeforeJob: run command e:/backup/backup-bacula-catalog.bat 06-Feb 10:40 SERVER01-sd JobId 5: Volume Server-0002 previously written, moving to end of data. 06-Feb 10:40 SERVER01-sd JobId 5: Ready to append to end of Volume Server-0002 size=4261675176 06-Feb 10:40 SERVER01-sd JobId 5: Job write elapsed time = 00:00:10, Transfer rate = 12.77 K bytes/second 06-Feb 10:40 SERVER01-dir JobId 5: Bacula SERVER01-dir 2.2.7 (24Dec07): 06-Feb-2008 10:40:32 Build OS: Linux Cross-compile Win32 JobId: 5 Job:Server-Backup.2008-02-06_10.40.03 Backup Level: Incremental, since=2008-02-06 10:37:51 Client: Server 2.2.7 (24Dec07) Linux,Cross-compile,Win32 FileSet:Server 2008-02-06 08:50:23 Pool: Server (From Job resource) Storage:SERVER01-sd (From Job resource) Scheduled time: 06-Feb-2008 10:40:17 Start time: 06-Feb-2008 10:40:22 End time: 06-Feb-2008 10:40:32 Elapsed time: 10 secs Priority: 4 FD Files Written: 8 SD Files Written: 8 FD Bytes Written: 126,283 (126.2 KB) SD Bytes Written: 127,732 (127.7 KB) Rate: 12.6 KB/s Software Compression: None VSS:no Encryption: no Volume name(s): Server-0002 Volume Session Id: 3 Volume Session Time:1202253713 Last Volume Bytes: 4,261,803,718 (4.261 GB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:Backup OK 06-Feb 10:40 SERVER01-dir JobId 5: Begin pruning Jobs. 06-Feb 10:40 SERVER01-dir JobId 5: No Jobs found to prune. 06-Feb 10:40 SERVER01-dir JobId 5: Begin pruning Files. 06-Feb 10:40 SERVER01-dir JobId 5: No Files found to prune. 06-Feb 10:40 SERVER01-dir JobId 5: End auto prune. Below is my batch script, and the relevant entries from the dir.conf. I would love it if someone could have a look and let me know where I have gone wrong. :( _backup-bacula-database.bat_ @echo off xcopy /y /q /k C:\MySQL\data\bacula E:\backup\bacula-database\ exit _Dir.conf_ Director{ Name=SERVER01-dir DIRport= 4 QueryFile=C:\\Program Files\\Bacula\\bin\\query.sql WorkingDirectory=C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work PidDirectory=C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work Maximum Concurrent Jobs=1 Password=PASSWD Messages=Daemon } Storage{ Name=SERVER01-sd Address=SERVER01 SDPort= 6 Password=PASSWD Device=FileStorage Media Type=File } Console { Name=SERVER01-mon Password=PASSWD CommandACL=status, .status } JobDefs{ Name=esite-backup Type=Backup Storage=SERVER01-sd Schedule=DailyBackup Messages=Standard Maximum Concurrent Jobs=1 } # production-Server Client { Name=production-Server Address=10.0.0.20 FDPort=9 Catalog=production-Server Password=PASSWD } Catalog{ Name=production-Server DB Address=10.0.0.20 dbname = bacula; user = bacula; password = PASSWD } Pool{ Name=Production-Server Label Format=
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
On Feb 5, 2008 8:21 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Guys I am officially stumped. I am trying to run a script before the job to copy the bacula db before backing it up. The batch script works when its clicked. But, whether I use the 'ClientRunBeforeJob' not 'RunBeforeJob', the files are not copied, despite a successful report from the run: If the director is the machine with the database then you can use RunBeforeJob otherwise you have to use ClientRunBeforeJob. Below is my batch script, and the relevant entries from the dir.conf. I would love it if someone could have a look and let me know where I have gone wrong. :( backup-bacula-database.bat @echo off xcopy /y /q /k C:\MySQL\data\bacula E:\backup\bacula-database\ exit Isn't there a mysqldump for windows? I do not think this is a good way of backing up a database that is in use. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] testing to get thru sourceforge
On Feb 5, 2008 9:13 PM, Peter Much [EMAIL PROTECTED] wrote: just testing It got here. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] testing to get thru sourceforge
just testing - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
Thanks :) If the director is the machine with the database then you can use RunBeforeJob otherwise you have to use ClientRunBeforeJob. Awsome! I could not find that anywhere :) Isn't there a mysqldump for windows? I do not think this is a good way of backing up a database that is in use I wasn't too sure about it either. I will use mysqldump instead. However, I have been testing with simple files, so I didn't put the db at risk. It seems that the targeted script is simply not run at all, the result would be the same with any script wouldn't it? Regards Dan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] testing to get thru sourceforge
just testing - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
However, I have been testing with simple files, so I didn't put the db at risk. It seems that the targeted script is simply not run at all, the result would be the same with any script wouldn't it? I was under the assumption that the xcopy command failed because the files that it was trying to copy were open. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Introduction
Hi all, I'm Peter, and I found bacula about a week ago. That week I was very busy and didnt sleep all nights, trying to get the thing together. Most of the time I was very delighted. I had been working with a (usually well known) IBM storage product for large enterprises, and had occasionally thought that it would be nice to have such a beast for my servers @home... Doesn't work out, because 1. that one's too bulky for small machines, and 2. it doesn't run on FreeBSD. So, it's really great somebody took the effort to write something similar for us self-compilers... Now, during this week I did run into lots of weirdnesses, a couple of bugs (some of them showing to be wetware bugs, i.e. between keyboard and monitor) and some race-conditions (wrong tape in autoloader is practically impossible if there is no autoloader, eh?) So, finally I decided to signup this mlist, although I hate it. (I have some couple of dozens of mailadresses gathered up over 20 years of internet, and long-lost any idea about which one is for what - so: where to push another mlist??? And how to find the correct sender address when I want to post??? And no, I don't have a better solution.) Alright, folks, so far for that. Different issues will follow in separate mails for better distinguishment. best regards, PMc -- ..having tossedaway Microsoft(tm) already in 1991! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
I apologise for the confusion. Thanks for the help though, I would have been testing everything twice otherwise! lol Dan John Drescher wrote: However, I have been testing with simple files, so I didn't put the db at risk. It seems that the targeted script is simply not run at all, the result would be the same with any script wouldn't it? I was under the assumption that the xcopy command failed because the files that it was trying to copy were open. John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
I apologise for the confusion. Now I think I confused you. Thanks for the help though, I would have been testing everything twice otherwise! lol Are you sure that the xcopy did not fail? I think the exit command returns 0 regardless of the success or failure of the xcopy. Or am I wrong about that? John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RunBeforeJob on Win32 fails with no errors.
I am pretty sure the xcopy script IS failing. I just can't figure out why. If I use my DEL script in place of the xcopy script, it works like a charm. Yet, if I run the xcopy batchfile manually it also completes flawlessly. I would assume this is a permissions thing, but bacula was installed under the Administrator account. Having decided to use mysqldump, this is now all moot. I am playing with mysqldump now, will let you know how it goes. Cheers for the help Dan John Drescher wrote: I apologise for the confusion. Now I think I confused you. Thanks for the help though, I would have been testing everything twice otherwise! lol Are you sure that the xcopy did not fail? I think the exit command returns 0 regardless of the success or failure of the xcopy. Or am I wrong about that? John - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] MySQL Errors being logged
The first thing I'd check is to make sure that the partition holding /tmp isn't running out of space. If it is, either tell MySQL to use a different directory with more space, or increase the amount of space allocated to /tmp. Just to follow up, I freed up some space and the problem hasn't come back. Thanks for the tip. James - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] I have a bug in 2.2.7 DIR: misbehave on kill
Hi all, I have a functional problem with the director daemon. The problem depends on the configuration of the scheduler. As long as there are only schedules in effect with any granularity of *daily*, there is no problem. But as soon as you configure a schedule with any kind of granularity of *hourly* (that is, a schedule that is run at specific times every hour) *AND* put that schedule into effect by calling it from some job, then following problem appears: The SIGTERM signal doesn't work anymore. Instead of terminating, the bacula-dir goes into an endless loop and eats all available cpu. Sending *another* SIGTERM at that point will terminate the daemon correctly. The problem therein is: when doing a main system shutdown, the rc.shutdown will send _one_ SIGTERM to the daemon, and then will just wait for the daemon to terminate. It will wait for 15 minutes; then a watchdog hits in and does a forced halt of the whole system - which isnt nice for all the other innocent daemons running. It is not too troublesome, as we usually do the shutdowning only twice a year, but it should occasionally be fixed, just for beauty. rgds, PMc -- ..having tossedaway Microsoft(tm) already in 1991! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] 2.2.7 DIR stalls on max Storage jobs
Hi all, my biggest problem currently is that after some days the whole system stalls with a couple of hundred jobs all being in that state: 699 Full MoveToTapeInternal.2008-02-05_17.55.29 is waiting on max Storage jobs At that point nothing at all is processed, the SD is perfectly idle without any jobs, and all new jobs are queued up with either the above max Storage state or with this one: 698 Full DBLogsInternal1.2008-02-05_17.55.28 is waiting execution Now ony can try and begin cancelling in this heap, but this will not make the jobs disappear - they will stay in the stat list of the DIR, only the state changes to has been cancelled. Occasionally one cancels somekind of specific job in the heap - and then a whole bunch of the already cancelled ones goes away! But in the end there will always stay about 10 jobs in the list as has been cancelled, and they will never go away, and any new backup jobs will again stall with waiting on max Storage. Restore jobs do still work at that point. The only help is to restart the DIR. How to reproduce: I start a migration from disk storage to tape storage. This will bring up maybe 100 migration jobs (most of them working on empty filesets, but nevertheless bringing up migration jobs). Now while this migration is running, the scheduler will continuously create new regular backupjobs according to schedules. Interestingly (and I do not know why) these new jobs are *not* just put at the end of the queue, to be processed after the whole migration; instead they are executed right after the current migration job (it seems like the migration running at a someway lower priority, which would make sense from a practical viewpoint - except that it does not work). And as long as it goes that way, everything is fine. But the migration works through different storage pools, and consequently it will request various tape volumes as targets, one after another. If maybe I am asleep or watching video, and do *not* change tapes immediately on request, then the nwewly created regular backupjobs will pile up; they will *not* be put in front and executed, instead everything seems to wait for that tapechange. (This is one of the problems I have with insufficient parallelism - I still have to work on these.) And after the tapechange is done, it will do some more work, and then the described deadlock appears! And I cannot find out where this max Storage jobs is configured. I have initally set up all the various concurrent jobs with values that seem to make sense from a practical viewpoint - not too high and not too low - mostly between 2 and 5 (except some special jobs that create locks and must never run in parallel). I fear I now must go the long and hard way, and set all concurrency back to 1, see if it works that way, and then bring it in again step by step while understanding the precise implications... (There is already quite a couple of facets of bacula which I had to do that way during the last days, while often it came out my initial understanding of the concepts being someway unsatisfactory...) rgds, PMc -- ..having tossedaway Microsoft(tm) already in 1991! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] testing to get thru sourceforge
[EMAIL PROTECTED] aka John Drescher schrieb mit Datum Tue, 5 Feb 2008 21:38:13 -0500 in m2n.bacula.users: | just testing | |It got here. Yeah, thanks to the Gods for that!!! But after what a hassle, I daresay! That Sourceforge site gave me a welcome message, but when I tried to post, it told me that I am not a member. :( So I started to forward the whole list to USENET, and write messages with the newsreader. Same game, got a welcome message and was told I am not a member. So in the end I did recompile the USENET forwarder, and hacked some code into it that it does insert a fake Sender: line into the header of outbound mails, and that seems did the trick. I don't like such actions, and actually it made me so angry that just when Your mail arrived, the keyboard controller of my desktop died; none of the keyboards work anymore. Now I've switched to an USB type, but thats rubber style.:( Hope there are adapters for sale, the laptop folks should need them anyway... So lets hope this will now work a little bit... best regards, PMc -- ..having tossedaway Microsoft(tm) already in 1991! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] 2.2.7: Mirror and Migrate don't like each other
Hi folks, in the definition of a Job there is the Run= option for making cloned Jobs. It is said in the documentation that by this you can create the same job again (or a different one), with some changed parameters (like the storage target). So, practically this would be the way to do tape mirroring. At first approach this seems to work (with some lesser pitfalls which I will come to soon). It results in two objects saved to the storage media, one from the primary job and one from the cloned. The big surprise comes when at a later time the created jobs shall be migrated from one storage to another. That migration will work, but after it has completed, the old cloned job will be run again with its original setup! So what do we have: 1. primary job - primary object on media 1a 2. cloned job - mirror object on media 1b and at a later time 3. migration a - move primary object to media 2a 4. migration b - move mirrored object to media 2b So far that would be what is intended. But then happens without reason and out of schedule: 5. cloned job - new mirror object on media 1b When this is an ordinary filespace backup, then it is just a nuisance and fills up media and disturbs schedule. It is worse when it is some special intelligent job doing some interlocking, like moving out database redo-logs which are not redundant and MUST exist COMPLETELY. In any case, I consider it a bug. rgds, PMc -- ..having tossedaway Microsoft(tm) already in 1991! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users