Re: [Bacula-users] Fileset depending on ClientRunBefore
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Lehmann Sent: mercredi 10 octobre 2007 11:22 To: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Fileset depending on ClientRunBefore Hi, 10.10.2007 05:13,, Troy Daniels wrote:: Dan Langille wrote: On 9 Oct 2007 at 20:05, Leon Bruno wrote: On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? Leon wrote: Yes I did the estimate command on the fileset and the result is what I expected. That's why I believe at the time bacula get the list of files to backup, the backup is not yet done, thus the runbefore command is actually executed after the fileset has been estimated. Please do not reply at the top of the email. I do not understand what you need. From the subject, I think you want to create a FileSet from ClientRunBefore. But I have a hard time parsing the content of your email to understand your objective. I will guess again: If you are trying to dynamically create a FileSet, I suggest reading this URL: http://www.bacula.org/rel-manual/Configuring_Director.html And search for this test: There are a number of special cases when specifying directories and files in a file-list. They are: If that is not what you need, please tell us your goal / objective. You are asking how to do the fileset estimation after the runbefore task. I think you've already decided what the solution is but I think some context will help us find a solution for you that will work. I might be wrong, but I read this to mean Bruno was having problems because Bacula builds the fileset/filelist it is going to back up before it runs the RunBefore job. However, Bruno's script is designed to do a Database backup first and then provide the fileset information on where this Backup is stored second. As far as I know there is no way to control this behavior, I can see a couple of ways to work around it: 1) Have the actual Database Backup done as part of an Admin job scheduled to occur just before the Bacula Backup job runs. If you are running multiple concurrent jobs this might be hard to implement. 2) Backup the files to a location you can calculate in advance - For example, make every days backup get created in a subfolder named after the date for example. The 'fileset building script' can then easily pass this folder back to Bacula. 3) Have the fileset building process run the backup directly first - No idea whether this would even work, nor exactly how bad an idea it would be. This works. Basically you create whatever files you need, and output their names. Arno Hope this helps, Troy. This does work indeed, but that would still be useful to be able to change that behavior. However I don't know if that requires a lot of changes in bacula itself. Thanks all for your help, Bruno. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset depending on ClientRunBefore
Hi, 10.10.2007 05:13,, Troy Daniels wrote:: Dan Langille wrote: On 9 Oct 2007 at 20:05, Leon Bruno wrote: On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? Leon wrote: Yes I did the estimate command on the fileset and the result is what I expected. That's why I believe at the time bacula get the list of files to backup, the backup is not yet done, thus the runbefore command is actually executed after the fileset has been estimated. Please do not reply at the top of the email. I do not understand what you need. From the subject, I think you want to create a FileSet from ClientRunBefore. But I have a hard time parsing the content of your email to understand your objective. I will guess again: If you are trying to dynamically create a FileSet, I suggest reading this URL: http://www.bacula.org/rel-manual/Configuring_Director.html And search for this test: There are a number of special cases when specifying directories and files in a file-list. They are: If that is not what you need, please tell us your goal / objective. You are asking how to do the fileset estimation after the runbefore task. I think you've already decided what the solution is but I think some context will help us find a solution for you that will work. I might be wrong, but I read this to mean Bruno was having problems because Bacula builds the fileset/filelist it is going to back up before it runs the RunBefore job. However, Bruno's script is designed to do a Database backup first and then provide the fileset information on where this Backup is stored second. As far as I know there is no way to control this behavior, I can see a couple of ways to work around it: 1) Have the actual Database Backup done as part of an Admin job scheduled to occur just before the Bacula Backup job runs. If you are running multiple concurrent jobs this might be hard to implement. 2) Backup the files to a location you can calculate in advance - For example, make every days backup get created in a subfolder named after the date for example. The 'fileset building script' can then easily pass this folder back to Bacula. 3) Have the fileset building process run the backup directly first - No idea whether this would even work, nor exactly how bad an idea it would be. This works. Basically you create whatever files you need, and output their names. Arno Hope this helps, Troy. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset depending on ClientRunBefore
On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? -- Dan Langille - http://www.langille.org/ Available for hire: http://www.freebsddiary.org/dan_langille.php - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset depending on ClientRunBefore
Yes I did the estimate command on the fileset and the result is what I expected. That's why I believe at the time bacula get the list of files to backup, the backup is not yet done, thus the runbefore command is actually executed after the fileset has been estimated. Bruno -Original Message- From: Dan Langille [mailto:[EMAIL PROTECTED] Sent: mardi 9 octobre 2007 19:58 To: Leon Bruno Cc: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Fileset depending on ClientRunBefore On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? -- Dan Langille - http://www.langille.org/ Available for hire: http://www.freebsddiary.org/dan_langille.php - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset depending on ClientRunBefore
On 9 Oct 2007 at 20:05, Leon Bruno wrote: On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? Leon wrote: Yes I did the estimate command on the fileset and the result is what I expected. That's why I believe at the time bacula get the list of files to backup, the backup is not yet done, thus the runbefore command is actually executed after the fileset has been estimated. Please do not reply at the top of the email. I do not understand what you need. From the subject, I think you want to create a FileSet from ClientRunBefore. But I have a hard time parsing the content of your email to understand your objective. I will guess again: If you are trying to dynamically create a FileSet, I suggest reading this URL: http://www.bacula.org/rel-manual/Configuring_Director.html And search for this test: There are a number of special cases when specifying directories and files in a file-list. They are: If that is not what you need, please tell us your goal / objective. You are asking how to do the fileset estimation after the runbefore task. I think you've already decided what the solution is but I think some context will help us find a solution for you that will work. -- Dan Langille - http://www.langille.org/ Available for hire: http://www.freebsddiary.org/dan_langille.php - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset depending on ClientRunBefore
Dan Langille wrote: On 9 Oct 2007 at 20:05, Leon Bruno wrote: On 9 Oct 2007 at 19:54, Leon Bruno wrote: Hi all, One of my job is calling a script to do some databases backup. The fileset is then defined to call that same script with another parameter that list the backup that has just been done. From what I've tested, it seems that the fileset is estimated before the runbefore task. This is preventing my backup because at the time the fileset is estimated, the backup is not yet done... Is there any way to tell bacula to do the fileset estimation after the runbefore task ? Have you considered the estimate command in bconsole? Would that output be useful for you? Leon wrote: Yes I did the estimate command on the fileset and the result is what I expected. That's why I believe at the time bacula get the list of files to backup, the backup is not yet done, thus the runbefore command is actually executed after the fileset has been estimated. Please do not reply at the top of the email. I do not understand what you need. From the subject, I think you want to create a FileSet from ClientRunBefore. But I have a hard time parsing the content of your email to understand your objective. I will guess again: If you are trying to dynamically create a FileSet, I suggest reading this URL: http://www.bacula.org/rel-manual/Configuring_Director.html And search for this test: There are a number of special cases when specifying directories and files in a file-list. They are: If that is not what you need, please tell us your goal / objective. You are asking how to do the fileset estimation after the runbefore task. I think you've already decided what the solution is but I think some context will help us find a solution for you that will work. I might be wrong, but I read this to mean Bruno was having problems because Bacula builds the fileset/filelist it is going to back up before it runs the RunBefore job. However, Bruno's script is designed to do a Database backup first and then provide the fileset information on where this Backup is stored second. As far as I know there is no way to control this behavior, I can see a couple of ways to work around it: 1) Have the actual Database Backup done as part of an Admin job scheduled to occur just before the Bacula Backup job runs. If you are running multiple concurrent jobs this might be hard to implement. 2) Backup the files to a location you can calculate in advance - For example, make every days backup get created in a subfolder named after the date for example. The 'fileset building script' can then easily pass this folder back to Bacula. 3) Have the fileset building process run the backup directly first - No idea whether this would even work, nor exactly how bad an idea it would be. Hope this helps, Troy. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users