Re: [Bacula-users] Bacula 5.2.13 ClientRunAfterJob
Hello, Bacula does not run a shell when it executes a command as you are doing. Consequently shell characters such as * will be treated as themselves rather than shell characters (in this case a wild card). This is because such interpretation is done by the shell. So the solution is to either prefix the command with a call to a shell (lots of escaping to do) or *much* simpler, run the command in a shell script that you execute. If I am not mistaken, there are nice examples in the manual. Obviously (I hope), if you can be more specific and avoid wild cards you will not need a shell command prefix or a script. I am not patient enough to work out all the escaping to pass shell characters correctly to the shell, so I always use a script when doing complicated stuff. Best regards, Kern On 15-03-19 06:54 AM, Peter Wood wrote: Thank you for the reply. Yes, I've done all the debug steps I can think of. Permissions is a good point though. The file permissions are 600 root:root. Only root can remove the file. Bacula-fd process runs as root so I'm expecting it will be able to remove the file, right? SELinux is disabled. On Thu, Mar 19, 2015 at 4:39 AM, Ana Emília M. Arruda emiliaarr...@gmail.com mailto:emiliaarr...@gmail.com wrote: Hi Peter, Have you checked if the job falis or not? The Client Run After Jog do not runs if the job falis. You can use the bellow if you want that the script runs despite of the job falis or not: Run Script { RunsWhen = After RunsOnFailure = yes Commnad = /bin/rm -f /backup/daily/mysql-Slave* } Have you tried to run the command at the commnad line? Have you checked permissions? Have you checked any messages at Bacula's log file? Is the mysqldump generating the file at /backup/daily/? Best regards, Ana On Wed, Mar 18, 2015 at 11:54 PM, Peter Wood peterwood...@gmail.com mailto:peterwood...@gmail.com wrote: In Bacula 5.2.13 I use Client Run Before Job = mysqldump to dump the database before the backup starts. After it is complete I use Client Run After Job = /bin/rm -f /backup/daily/mysql-Slave* with the intend to remove the backup file due to lack of free space to keep more then one backup. The backup report shows that it ran the command: 18-Mar 09:39 db1-fd JobId 12980: shell command: run ClientAfterJob /bin/rm -f /backup/daily/mysql-Slave* Unfortunately the file is not removed. Any idea? Is it the use of wildcard? Thanks, -- Peter -- 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 mailto:Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- 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 -- 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] [Bacula-devel] [Bacula-announce] Bacula Version 5.2.1 released
Ha ha ha :-) On 15-03-17 07:18 AM, Heitor Faria wrote: After a quick vacation Kern now suffers from what Alonso had after his last accident, but believing he is in 2011: http://www1.skysports.com/f1/news/24184/9746706/fernando-alonso-suffered-8216temporary-memory-loss8217-after-his-crash-at-barcelona lol == Heitor Medrado de Faria - LPIC-III | ITIL-F 01 a 13 de Abril - Novo Treinamento Telepresencial Bacula: http://www.bacula.com.br/?p=2174 61 8268-4220 Site: www.bacula.com.br | Facebook: heitor.faria | Gtalk: heitorfa...@gmail.com === - Mensagem original - De: John Drescher dresche...@gmail.com Para: Raymond Burns Jr. rbur...@gmail.com Cc: bacula-users...@lists.sourceforge.net, bacula-devel bacula-de...@lists.sourceforge.net, bacula-announce bacula-annou...@lists.sourceforge.net, bacula-users bacula-users@lists.sourceforge.net Enviadas: Terça-feira, 17 de março de 2015 14:12:39 Assunto: Re: [Bacula-users] [Bacula-devel] [Bacula-announce] Bacula Version 5.2.1 released I am now confused I thought future development would be on 7.x not 5.x What is going on? Did you read the date of that email? It was from 2011. Not sure how it was sent to you now. Someone earlier today responded me about a question from 2011 also. 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 -- 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-devel mailing list bacula-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel -- 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] Bacula email list spam
Hello, Clearly the echoed emails from 3 years ago is becoming a spam problem whether voluntary or not. As far as I know, I have no way to block this kind of a problem, so I have reported the problem to Source Forge. If they cannot resolve the problem, I will move the email lists to the bacula.org server where I can black list IP addresses. Best regards, Kern -- 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] Fwd: [Bacula-devel] Bacula Status + Bacula 5.2.0 release
Hello, Somehow, the message below, and possibly a few others were picked up by a German site and echoed back to everyone on 17 March 2015. Note that this message and the others date from 26 October 2011. You can verify what I am saying by looking at the source headers of the original message. I am on vacation in Hawaii from 10 March until 8 April 2015 so during that period it is highly unlikely I will be making any new release. Though I hope now to be able to answer a few emails. In fact I have had very very bad connectivity here until yesterday when I went to the local Radio Shack and bought a wifi extender. Sorry for the inconvenience. If it bothers any of you too much, you might find out who the author is and let him know as I am sure he will fix it. Best regards, Kern Forwarded Message Subject: [Bacula-devel] [Bacula-users] Bacula Status + Bacula 5.2.0 release Date: Wed, 26 Oct 2011 17:09:18 +0200 From: Kern Sibbald k...@sibbald.com To: bacula-users bacula-users@lists.sourceforge.net, bacula-devel bacula-de...@lists.sourceforge.net Hello, It has been a while since I have sent a Bacula status report, so it is a bit longer than usual. In this report, I have five things to mention: 1. Bacula Systems Support Job 2. Bacula Training course 3. Bacula Release version 5.2.0 4. No rpms for version 5.2.0 5. New Bacula Systems CEO 1. Bacula Systems Support Job: Recently I announced on these lists a Bacula Systems Support Job in the US, and I am very pleased to say that several members of the community showed an interest and shortly we will have a new employee (details to be announced next status report) that came from among you :-) Bacula Systems now has a similar position open in Europe, so if you like working with Bacula, have good sys admin skills, like helping customers, and want to learn more about Bacula, perhaps you would be interested in the job that is now open. If so, please see: http://www.baculasystems.com/index.php/company/careers/item/270.html 2. Bacula Training course: Due to some last minute cancellations, we have a few places available in the Bacula Administration I Course that I will be teaching on the 15-17 November in Yverdon-les-Bains, Switzerland. The only requirement for this course is that you have reasonable system administrator skills on Linux. If you would like to learn more about the course, please go to: www.baculasystems.com - Training Course Schedule If you are with a company, I offer you a 15% discount for one person and more for two. If you are a community member (not being paid by a company to come to the course), I can offer you a *very* substantial price reduction as our way of giving back to the community. There are, however, a limited number of community places available in each course we give. Last time I made this offer, a community member was able to profit from it, and I hope you can do the same. If you are interested in the community discount, please send me an email directly, rather than register on the web site, and I will ensure you can get into the class at a discount. This course was originally intended for beginners, but over the years we have been giving it, we have realized that quite a number of experienced Bacula users have attended the course, and they have all been very satisfied. As mentioned above, I will either be teaching the course myself, so hopefully you will join me in the course and have dinner with me on the 18 of November. 3. Bacula Release version 5.2.0 Bacula version 5.2.0 is ready. However, I have been holding it back because the normal community testing is not happening. The only user helping us to test is DassIT (thanks very much). This means that the new version has not been tested enough on FreeBSD, Mac OS, and Solaris. That said, I have done preliminary building and testing on Mac OS and a number of Linux releases (RedHat, Ubuntu, SLES). This is a major feature upgrade with quite a number of bug fixes as well. It is in the current git repo (hosted on bacula.org). In any case, we will be releasing it probably this weekend -- hopefully by then community members will have done additional testing. 4. No rpms for version 5.2.0 I am sorry to announce that Scott Barninger who has long served as the rpm builder for many years has decided to do other things. I wish him the best and thank him for all the hard work he did over many years. I have contacted several community members, and there is a possibility that they will pickup building rpm binaries for us, but for the moment, this is not sure. As a consequence, with much regret on my part, when version 5.2.0 is released, there will initially be no binaries. 5. New Bacula Systems CEO As many of you know, over the last 6-9 months, I have been very involved with Bacula Systems, and now I am pleased to announce that Bacula Systems has a new CEO, Frank Barker. Frank started his IT career with Hewlett-Packard in the
Re: [Bacula-users] Bacula Setup
Hello, If you are planning to use more than one Storage daemon to access the tape drive, you should consider contacting Bacula Systems to get the Enterprise version of Bacula which supports SAN shared tape storage with a plugin. The other alternative is to use the community version and partition your autochanger so that no drive sharing is involved. Even then, you probably need expert help to ensure that Bacula doesn't get confused about what Volumes can be uses by which Storage daemon (i.e. make sure every SD has a unique Media Type). Best regards, Kern On 15-03-17 10:06 AM, Mansoor Hafeez wrote: Hi I am setting up Bacula for backing up the data to the TAPES. I want to design the following setup with Bacula: 1. The tapes/autochanger are connected via SAN to the client machines. These client machines are hosting the files those need to be backed up. 2. The File daemon and Storage Daemon will be installed and configured on Client machines. 3. The Director will be installed on separate machine which will host only the Database. It will not connect directly to any autochanger device neither to any partition whose backup will be required on tape. In other words, it will only controlling/managing the backup jobs Please advice if this design is correct or not. Thanks in advance for answer. Regards Mansoor Hafeez -- 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 -- 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] Bacula 5.2.13 ClientRunAfterJob
Hi Peter, As Kern mentioned, I'd mention a shell script instead of the whole command in the Job definition. I do this on my jobs and it work like a charm. Hope it will help you to solve your problem. Best regards Davide On Sat, Mar 21, 2015 at 8:28 PM, Kern Sibbald k...@sibbald.com wrote: Hello, Bacula does not run a shell when it executes a command as you are doing. Consequently shell characters such as * will be treated as themselves rather than shell characters (in this case a wild card). This is because such interpretation is done by the shell. So the solution is to either prefix the command with a call to a shell (lots of escaping to do) or *much* simpler, run the command in a shell script that you execute. If I am not mistaken, there are nice examples in the manual. Obviously (I hope), if you can be more specific and avoid wild cards you will not need a shell command prefix or a script. I am not patient enough to work out all the escaping to pass shell characters correctly to the shell, so I always use a script when doing complicated stuff. Best regards, Kern On 15-03-19 06:54 AM, Peter Wood wrote: Thank you for the reply. Yes, I've done all the debug steps I can think of. Permissions is a good point though. The file permissions are 600 root:root. Only root can remove the file. Bacula-fd process runs as root so I'm expecting it will be able to remove the file, right? SELinux is disabled. On Thu, Mar 19, 2015 at 4:39 AM, Ana Emília M. Arruda emiliaarr...@gmail.com wrote: Hi Peter, Have you checked if the job falis or not? The Client Run After Jog do not runs if the job falis. You can use the bellow if you want that the script runs despite of the job falis or not: Run Script { RunsWhen = After RunsOnFailure = yes Commnad = /bin/rm -f /backup/daily/mysql-Slave* } Have you tried to run the command at the commnad line? Have you checked permissions? Have you checked any messages at Bacula's log file? Is the mysqldump generating the file at /backup/daily/? Best regards, Ana On Wed, Mar 18, 2015 at 11:54 PM, Peter Wood peterwood...@gmail.com wrote: In Bacula 5.2.13 I use Client Run Before Job = mysqldump to dump the database before the backup starts. After it is complete I use Client Run After Job = /bin/rm -f /backup/daily/mysql-Slave* with the intend to remove the backup file due to lack of free space to keep more then one backup. The backup report shows that it ran the command: 18-Mar 09:39 db1-fd JobId 12980: shell command: run ClientAfterJob /bin/rm -f /backup/daily/mysql-Slave* Unfortunately the file is not removed. Any idea? Is it the use of wildcard? Thanks, -- Peter -- 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 -- 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 listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users -- 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 -- 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