[Bacula-users] time since last non-virtual backup
Hi, I'm looking to work out a query or script which quotes me the time since the last live backup (ie I don't want to include virtual full backups) for each of our configured jobs. Not all of our backups are scheduled, some are triggered manually, so I need to produce a list of how long it has been in each case. It would be no harm to also check the scheduled ones, just in case there were some configuration error. Has anyone already been over this ground and care to share a query or solution? Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Waiting on Maximum Storage Jobs
I've got several jobs that are running at the same time and they are spooling data to the local disk, then writing to my Tape Drive for full backups. My Incremental and Differential's are being written to Disk. I can only run one Full job at a time. The rest of the jobs are all in the status Waiting on Maximum Storage Jobs I'm not sure where to look to set fix this. My Google-fu has failed me on the one :( Thanks -- Craig Van Tassle HUBzero.org System Administrator YONG 1006 Desk Phone : (765)496-6413 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Waiting on Maximum Storage Jobs
On Mon, Jun 20, 2011 at 09:56:29AM -0400, Craig Van Tassle wrote: I've got several jobs that are running at the same time and they are spooling data to the local disk, then writing to my Tape Drive for full backups. My Incremental and Differential's are being written to Disk. I can only run one Full job at a time. The rest of the jobs are all in the status Waiting on Maximum Storage Jobs I'm not sure where to look to set fix this. My Google-fu has failed me on the one :( Hello Craig, could you check the maximum concurrent jobs setting in your tape storage / device definition? HTH Uwe -- NIONEX ist ein Unternehmen der DirectGroup Germany www.directgroupgermany.de -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Waiting on Maximum Storage Jobs
On Mon, 20 Jun 2011 16:06:47 +0200 Uwe Schuerkamp uwe.schuerk...@nionex.net wrote: On Mon, Jun 20, 2011 at 09:56:29AM -0400, Craig Van Tassle wrote: I've got several jobs that are running at the same time and they are spooling data to the local disk, then writing to my Tape Drive for full backups. My Incremental and Differential's are being written to Disk. I can only run one Full job at a time. The rest of the jobs are all in the status Waiting on Maximum Storage Jobs I'm not sure where to look to set fix this. My Google-fu has failed me on the one :( Hello Craig, could you check the maximum concurrent jobs setting in your tape storage / device definition? HTH Uwe I have not I will make the updates and try that out. Thanks -- Craig Van Tassle HUBzero.org System Administrator YONG 1006 Desk Phone : (765)496-6413 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] time since last non-virtual backup
Hi, On Mon, 20 Jun 2011, Gavin McCullagh wrote: I'm looking to work out a query or script which quotes me the time since the last live backup (ie I don't want to include virtual full backups) for each of our configured jobs. Not all of our backups are scheduled, some are triggered manually, so I need to produce a list of how long it has been in each case. It would be no harm to also check the scheduled ones, just in case there were some configuration error. This seems quite close SELECT Job.Name, MAX(Job.RealEndTime) FROM Job WHERE Job.Type='B' AND Job.JobStatus='T' GROUP BY Job.Name; but we have clients who manually trigger their own incremental (eg once per week) and then there's a scheduled VirtualFull which runs every month. These would always appear to have a backup in the past month, even if it was 6-8 weeks since the incremental last ran, as the VirtualFull would appear there. Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volume Rotation Simulation?
This may sound a bit odd, but is there a way to simulate media rotation? For instance, tell the bacula to fast-forward to a point in time and see if volumes get recycled as expected. I'm trying out some different schemes and would to be able test things a bit faster than realtime... I think the best you can do is make the retention period very short. John -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Firewall traversal
My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
I have a similar setup. Can you add a rule in the firewall that will allow the FD access to the SD. That's what I did in order to get my backups to work. On 6/20/2011 9:11 AM, Kevin O'Connor wrote: My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
OpenVPN ? 2011/6/20 Kevin O'Connor kevin.ocon...@arc90.com: My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
2011/6/20 Kevin O'Connor kevin.ocon...@arc90.com: My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? The FD needs to initiate a connection to the SD. It does not work the other way. I believe there was a way you could setup an ssh tunnel and use that. http://wiki.bacula.org/doku.php?id=sshtunnel John -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
On Mon, 20 Jun 2011 12:11:21 -0400 Kevin O'Connor kevin.ocon...@arc90.com wrote: My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? As crazy as this sounds have you though of setting up something like an SSH tunnel? That could help bypass the NAT traversal issues. -- Craig Van Tassle HUBzero.org System Administrator YONG 1006 Desk Phone : (765)496-6413 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
Hi, On Mon, 20 Jun 2011, Kevin O'Connor wrote: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? As far as I understand it, both backups and restores involve a TCP session opening from the FD to the SD -- not the reverse. What you could do is to have software on the SD open up a channel onto the FD with a port forward. There are different tools for this but one is ssh or autossh. sd-host% ssh -L 9103:localhost:9103 fd-host then have the FD connect to localhost instead of the sd-host (in the director configuration). With autossh if the connection dies it'll restart itself. I've done this in one case and it worked pretty well. With SSH you are adding the extra load of encrypting all of the data in transit which might or might not be a problem, depending on your available CPU cycles and the quantities of data you need to ship. The same tunnel should work for a restore. Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset: How exclude all except...
On 06/18/2011 01:37 PM, Andrea Conti wrote: I want to exclude all dot files in home directories (/home/*/.*), *except* the directories /home/*/.backup/. Any hints on how to do this? If you want to exclude dot _files_ (i.e. you don't care about directories whose name starts with a dot other than .backup), and assuming you're backing up the whole /home directory, this would be enough: FileSet { Include { Options { exclude = yes wildfile = /home/*/.* } File = /home } } But this will backup .thunderbird/ with its 800MB mail cache, yes? That's what I want to avoid (without having to maintain a list of specific black-listed files/directories.) If you also wish to exclude other dot-directories, I would try something like: FileSet { Include { Options { wilddir = /home/*/.backup } Options { exclude = yes wild = /home/*/.* } File = /home } } That's what I tried before (along with some permutations -- I admit to still not understanding well how Bacula interprets Filesets.) The .backup directory is included in the backed up files but its contents are not. Regex directives are another option, but IMHO they are a bit overkill for this problem. I thought so too which is why I asked here. :-) -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
I understand how it's supposed to work (FD to SD), that's why I'm asking if there was some cryptic config option or something I was missing to make it do the reverse. It exists as Active/Passive in FTP, so it's not too crazy to think something similar might exist for Bacula. I guess not though. I'll look into the SSH tunneling, hopefully it won't be too bad! On Mon, Jun 20, 2011 at 1:05 PM, Gavin McCullagh gavin.mccull...@gcd.iewrote: Hi, On Mon, 20 Jun 2011, Kevin O'Connor wrote: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? As far as I understand it, both backups and restores involve a TCP session opening from the FD to the SD -- not the reverse. What you could do is to have software on the SD open up a channel onto the FD with a port forward. There are different tools for this but one is ssh or autossh. sd-host% ssh -L 9103:localhost:9103 fd-host then have the FD connect to localhost instead of the sd-host (in the director configuration). With autossh if the connection dies it'll restart itself. I've done this in one case and it worked pretty well. With SSH you are adding the extra load of encrypting all of the data in transit which might or might not be a problem, depending on your available CPU cycles and the quantities of data you need to ship. The same tunnel should work for a restore. Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] How do counters work?
So I am generating backup volumes limited in size to fit on a DVD. Since I use automatic volume labeling and some backups result in multiple volumes, I include a counter in the label name. I want its value to be 1 for the first volume of the job, 2 for the second, etc. First problem: counter does not get reset per job but only when director is restarted. (This strikes me as particularly useless behavior... is not the most frequent (only?) use of counters in a label? Why would one want a value in a long-lived label dependent on an arbitrary event like a service restart? Maybe I am missing something). So I specify a catalog and save the counter in the database. I write a before job script to reset the counter to its minimumvalue. But although the script seems to be working, it has no effect. Even if I change the counter value in the database by hand after the director has started but before running the job, the job uses the old counter value. Is it possible that the director reads the counter value at startup, maintains it internally, and only writes back to the database when its incremented? Please tell me I'm wrong! -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
Hi, On Mon, 20 Jun 2011, Kevin O'Connor wrote: I understand how it's supposed to work (FD to SD), that's why I'm asking if there was some cryptic config option or something I was missing to make it do the reverse. It exists as Active/Passive in FTP, so it's not too crazy to think something similar might exist for Bacula. I guess not though. I'll look into the SSH tunneling, hopefully it won't be too bad! An alternative, if the hosts aren't windows would be to set up IPv6. You could apply to sixxs or one of the other tunnel vendors for a tunnel on each network and then apply for a /48 for inside the NATed network. That should be less CPU-intensive and more natural than ssh tunnels. If you haven't used IPv6 yet this would be a bit of an adventure and take a little research, but then, these days it's probably quite a timely adventure. Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fileset: How exclude all except...
On Mon, 20 Jun 2011 11:13:39 -0600, Stuart McGraw said: If you also wish to exclude other dot-directories, I would try something like: FileSet { Include { Options { wilddir = /home/*/.backup } Options { exclude = yes wild = /home/*/.* } File = /home } } That's what I tried before (along with some permutations -- I admit to still not understanding well how Bacula interprets Filesets.) The .backup directory is included in the backed up files but its contents are not. Adding wild = /home/*/.backup/* to the first options clause should fix that. BTW, excluding all dot files will lose potentially important ones such as .bashrc and .gnupg. __Martin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Rescue CD/USB for Debian
I was wondering if anyone knew how to make a Rescue CD/USB key for Debian? I have not been able to really find documentation on how to make one for Debian, and I have not found one to download. Thanks -- Craig Van Tassle HUBzero.org System Administrator YONG 1006 Desk Phone : (765)496-6413 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] time since last non-virtual backup
On Mon, 20 Jun 2011, Gavin McCullagh wrote: This seems quite close SELECT Job.Name, MAX(Job.RealEndTime) FROM Job WHERE Job.Type='B' AND Job.JobStatus='T' GROUP BY Job.Name; but we have clients who manually trigger their own incremental (eg once per week) and then there's a scheduled VirtualFull which runs every month. Ah. It would appear that RealEndTime is the actual time the job ended, but StartTime and EndTime (in the case of a virtual full backup) seem to be the corresponding start and end times of the previous backup. That's at least a partial solution, in that I can use the EndTime. That previous backup could also be a virtual full, but I guess I might settle for that. Gavin -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How do counters work?
I;m posting this because nobody has answered you yet. Perhaps my prompts will get you to supply additional information. :) On Jun 20, 2011, at 1:41 PM, Stuart McGraw wrote: So I am generating backup volumes limited in size to fit on a DVD. Since I use automatic volume labeling and some backups result in multiple volumes, I include a counter in the label name. I want its value to be 1 for the first volume of the job, 2 for the second, etc. Well, that's not the purpose of counters. Volume names are really for Bacula, not for humans. Counters are there just to help with automated labeling of Volumes. I suggest that discussion on whether or not we like this behavior that is outside the scope of this discussion. :) First problem: counter does not get reset per job but only when director is restarted. (This strikes me as particularly useless behavior... is not the most frequent (only?) use of counters in a label? Just because a feature does not do what you want, does not make it useless. Clearly it was designed with a use case in mind. :) Why would one want a value in a long-lived label dependent on an arbitrary event like a service restart? Maybe I am missing something). We have not seen your counter usage, so we cannot comment upon it. You didn't mention the docs, so perhaps these will help. http://www.bacula.org/5.0.x-manuals/en/misc/misc/Variable_Expansion.html http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001819 So I specify a catalog and save the counter in the database. I write a before job script to reset the counter to its minimumvalue. But although the script seems to be working, it has no effect. Even if I change the counter value in the database by hand after the director has started but before running the job, the job uses the old counter value. Is it possible that the director reads the counter value at startup, maintains it internally, and only writes back to the database when its incremented? It is difficult to judge a script we have not seen. :) -- Dan Langille - http://langille.org -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Firewall traversal
On Jun 20, 2011, at 12:11 PM, Kevin O'Connor wrote: My setup is as follows: Bacula Server (DIR, SD) - Firewall/NAT - Server to be backed up (FD) The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW). When I start the backup, the Director connects to the FD without a problem, but then when the Director tells the FD to connect back to the SD it fails because of the NAT. I'm in a situation where I can't get the ports forwarded, but it would seem that there should be a way to have the SD connect out to the FD or something along those lines to get this working. Is there a way to do that that I've missed in the docs or is really the only way to get this working is to expose the SD? No, there is not. I highly recommend OpenVPN. It simplifies a great many things. -- Dan Langille - http://langille.org -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How do counters work?
On 06/20/2011 04:51 PM, Dan Langille wrote: I;m posting this because nobody has answered you yet. Perhaps my prompts will get you to supply additional information. :) Thanks, much appreciated. On Jun 20, 2011, at 1:41 PM, Stuart McGraw wrote: So I am generating backup volumes limited in size to fit on a DVD. Since I use automatic volume labeling and some backups result in multiple volumes, I include a counter in the label name. I want its value to be 1 for the first volume of the job, 2 for the second, etc. Well, that's not the purpose of counters. Volume names are really for Bacula, not for humans. Counters are there just to help with automated labeling of Volumes. I suggest that discussion on whether or not we like this behavior that is outside the scope of this discussion. :) That's fine. But I don't understand your statement that volume names (the things set by the LabelFormat directive, yes?) are solely for Bacula. Why then does the LabelFormat directive exist rather than Bacula simply using an incrementing serial number? It seems to me self-evident that both humans and Bacula need to use them and they should, to the extent possible, be constructed to meet both needs. First problem: counter does not get reset per job but only when director is restarted. (This strikes me as particularly useless behavior... is not the most frequent (only?) use of counters in a label? Just because a feature does not do what you want, does not make it useless. Of course. I was trying to convey that *I* could not see a use for it. Clearly it was designed with a use case in mind. :) That may well be but often, especially early in development, things that seemed like a good ideas turn out to be not as useful as envisioned. I asked if I was missing something as a way of soliciting an explanation of its use. However that was just an aside and not directly relevant to my problem. Why would one want a value in a long-lived label dependent on an arbitrary event like a service restart? Maybe I am missing something). We have not seen your counter usage, so we cannot comment upon it. Sorry, I though my explanation was sufficient. I create a (db persistent) counter and use that counter in a LabelFormat directive. See below. You didn't mention the docs, so perhaps these will help. http://www.bacula.org/5.0.x-manuals/en/misc/misc/Variable_Expansion.html http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001819 Thanks, I've read those (multiple times :-) So I specify a catalog and save the counter in the database. I write a before job script to reset the counter to its minimumvalue. But although the script seems to be working, it has no effect. Even if I change the counter value in the database by hand after the director has started but before running the job, the job uses the old counter value. Is it possible that the director reads the counter value at startup, maintains it internally, and only writes back to the database when its incremented? It is difficult to judge a script we have not seen. :) The script is irrelevant. Add a (db persistent) counter to a bacula-dir.conf file, eg; Counter { Name = MyCtr Minimum = 1 Catalog = MyCatalog } Use that counter in a Pool resource LabelFormat directive where the SD is set up to auto-label new volumes: LabelFormat = ${JobName}-${MyCtr+} Start the director (so that it will create the counter in the database), then stop the director. Manually change the counter value: psql# UPDATE counters SET currentvalue=6 WHERE counter='MyCtr'; Start director and run a job. Note that the label generated is ...-6. Change the value of the counter psql# UPDATE counters SET currentvalue=3 WHERE counter='MyCtr'; Run another job and note that the the label generated this time is not ...-3 but is instead, ...-7. Obviously, if Bacula does not ever re-read the counter value from the database, the most perfect counter- changing script in the world run in a RunBeforeJob will have no effect. If you still want to see my conf files and counter reset script, I'll be happy to post them -- I just thought that they provide the same information I give above in a more obfuscated form. But if you think they'll be helpful, fine. To recap, I am hoping there is some way of having Bacula auto-label volumes with first label in a *job* having a suffix of -1, and if a second or subsequent volumes are necessary, generated with suffixes of -2, -3, etc, with the next job starting at -1 again. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev