Re: [Bacula-users] Is there a way...
Yeah sorry about my english, I'm not so clear. All these tapes are in the same pool, and the VOLUME retention is 18 days (cause the first tape goes to the bank, the second becomes first after 20 days, and so on..). I've read a lot about the retentions, I know that there is a thing about the priority, something like : VOLUME => JOBS => FILES. I assume that I don't really understand the roles of the jobs and files retention, any help is welcom on that one.. I don't do an "update slot" (you mean, manually ?). I thought I could set a tape to the "used" status manually when it goes to the bank, but the point is I don't want to do things manually. Hope you get my point ! Thx ! Alex Chekholko-4 wrote: > > On Thu, 8 Jul 2010 08:18:34 -0700 (PDT) > gnowar wrote: > >> >> Hey, >> >> I was wondering if there is a way to tell bacula not to ask the oldest >> tape >> it wrote on.. >> >> I mean, when a tape is pruned, it's status come to "Recycle". Is there a >> way >> to put all the status tape to recycle (those who the retention is over, >> that >> means they could be pruned), and not only the oldest one ? >> >> Why.. ? >> >> Because I'm using 20 tapes, but every twenty days (one tape per day), one >> tape goes to the bank. I take a new tape and the cycle goes on during >> twenty >> days etc.. >> >> The problème is, if I put a tape in the bank, 19 days later Bacula will >> ask >> me THIS special tape, which is not available (cause in the bank..). >> >> Is there a solution for this problem or it is inherent to the way Bacula >> actually works ? > > Your description is a bit confusing. > > Are these tapes all in the same pool? What is the retention period? > > Read up on the retention periods for files, jobs, volumes. > > Do you do an "update slots" after you remove the tape? Bacula > shouldn't ask for a tape that's not available. > > -- > Alex Chekholko ch...@genomics.upenn.edu > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Is-there-a-way...-tp29108233p29109284.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Is there a way...
Hey, I was wondering if there is a way to tell bacula not to ask the oldest tape it wrote on.. I mean, when a tape is pruned, it's status come to "Recycle". Is there a way to put all the status tape to recycle (those who the retention is over, that means they could be pruned), and not only the oldest one ? Why.. ? Because I'm using 20 tapes, but every twenty days (one tape per day), one tape goes to the bank. I take a new tape and the cycle goes on during twenty days etc.. The problème is, if I put a tape in the bank, 19 days later Bacula will ask me THIS special tape, which is not available (cause in the bank..). Is there a solution for this problem or it is inherent to the way Bacula actually works ? Thx by advance. -- View this message in context: http://old.nabble.com/Is-there-a-way...-tp29108233p29108233.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re cycling is not working.
In the webacula interface, the state of the current task is set to : "is waiting on Storage Tape" Come on, the tape is labeled, mounted ! What's wrong ! gnowar wrote: > > I think I've spoken too early.. > > I don't have a mistake now, but nothing happens.. > > lan-backup01-dir shell command: run BeforeJob > "/opt/bacula/sysconf/mount_tape" > BeforeJob: Connecting to Director lan-backup01:9101 > BeforeJob: 1000 OK: lan-backup01-dir Version: 5.0.1 (24 February 2010) > BeforeJob: Enter a period to cancel a command. > BeforeJob: mount storage=Tape > BeforeJob: Automatically selected Catalog: MyCatalog > BeforeJob: Using Catalog "MyCatalog" > BeforeJob: 3001 OK mount requested. Device="LTO-2" (/dev/st0) > BeforeJob: You have messages. > Start Backup JobId 146, Job=BackupCvsOnTape.2010-05-27_10.24.19_41 > > I remember the old times when recycling was working, I saw in the log the > prune, recycle, relabel etc. > > There is nothing here, the process is frozen.. > > Any idea ? > > > John M. Drescher wrote: >> >> On Wed, May 26, 2010 at 10:20 AM, John Drescher >> wrote: >>> On Wed, May 26, 2010 at 9:57 AM, John Drescher >>> wrote: >>>>> I've a problem (I guess) cause bacula doesn't recycle my tape, even >>>>> when >>>>> volume retention is over. >>>>> >>>>> Here is the pool part of my bacula-dir.conf : >>>>> >>>>> # Tape Pool definition >>>>> Pool { >>>>> Name = TapePool >>>>> Pool Type = Backup >>>>> Recycle = yes # Bacula can automatically >>>>> recycle >>>>> Volumes >>>>> AutoPrune = yes # Prune expired volumes >>>>> Volume Use Duration = 18 hours >>>>> Volume Retention = 20 days # one year >>>>> Maximum Volumes = 1 # Limit number of Volumes in Pool >>>>> Maximum Volume Jobs = 2 >>>>> Label Format = "Day-" >>>>> } >>>>> >>>>> Look at the tape day-20A (retention period and the last written thing) >>>>> http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/ >>>>> >>>>> And now look at the error (1month after the last written thing on the >>>>> tape, >>>>> bacula seems to not recycle the tape..) >>>>> http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/ >>>>> >>>>> >>>>> There is a problem, right ? >>>>> -- >>>> >>>> Yes there is a problem with your configuration. You have it configured >>>> to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20 >>>> days until it can be used again. I do not think this is what you want. >>>> >>> I missed the other condition. On top of a maximum of 2 jobs to a >>> volume you limit the volume to 18 hours of usage. So the second job >>> must be started within 18 hours of the first. >>> >> >> Sorry. I see what you mean from the pictures. I would still get rid of >> Maximum Volumes = 1 because that may be confusing bacula since you >> have way more than 1 volume in the pool. >> >> John >> >> -- >> >> ___ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> >> > > -- View this message in context: http://old.nabble.com/Recycling-is-not-working.-tp28680351p28692000.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re cycling is not working.
I think I've spoken too early.. I don't have a mistake now, but nothing happens.. lan-backup01-dir shell command: run BeforeJob "/opt/bacula/sysconf/mount_tape" BeforeJob: Connecting to Director lan-backup01:9101 BeforeJob: 1000 OK: lan-backup01-dir Version: 5.0.1 (24 February 2010) BeforeJob: Enter a period to cancel a command. BeforeJob: mount storage=Tape BeforeJob: Automatically selected Catalog: MyCatalog BeforeJob: Using Catalog "MyCatalog" BeforeJob: 3001 OK mount requested. Device="LTO-2" (/dev/st0) BeforeJob: You have messages. Start Backup JobId 146, Job=BackupCvsOnTape.2010-05-27_10.24.19_41 I remember the old times when recycling was working, I saw in the log the prune, recycle, relabel etc. There is nothing here, the process is frozen.. Any idea ? John M. Drescher wrote: > > On Wed, May 26, 2010 at 10:20 AM, John Drescher > wrote: >> On Wed, May 26, 2010 at 9:57 AM, John Drescher >> wrote: I've a problem (I guess) cause bacula doesn't recycle my tape, even when volume retention is over. Here is the pool part of my bacula-dir.conf : # Tape Pool definition Pool { Name = TapePool Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Use Duration = 18 hours Volume Retention = 20 days # one year Maximum Volumes = 1 # Limit number of Volumes in Pool Maximum Volume Jobs = 2 Label Format = "Day-" } Look at the tape day-20A (retention period and the last written thing) http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/ And now look at the error (1month after the last written thing on the tape, bacula seems to not recycle the tape..) http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/ There is a problem, right ? -- >>> >>> Yes there is a problem with your configuration. You have it configured >>> to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20 >>> days until it can be used again. I do not think this is what you want. >>> >> I missed the other condition. On top of a maximum of 2 jobs to a >> volume you limit the volume to 18 hours of usage. So the second job >> must be started within 18 hours of the first. >> > > Sorry. I see what you mean from the pictures. I would still get rid of > Maximum Volumes = 1 because that may be confusing bacula since you > have way more than 1 volume in the pool. > > John > > -- > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Recycling-is-not-working.-tp28680351p28691680.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re cycling is not working.
Yeah thanks ! I had not understood the "maximum volume" use, you're saying I've to wait 20 days from the last tape written right ? (cause there is only 1 volume in the pool ?) I thought it was from the "last written" value of a specific tape I had to care about to reuse the same one. It's ok for the volume use duration, I understand that one ;) Number of tapes will grow up every month so I've commented the "maximum volume", restarted the backup and it looks good now. Thanks John ! (again ! ;) John M. Drescher wrote: > > On Wed, May 26, 2010 at 9:57 AM, John Drescher > wrote: >>> I've a problem (I guess) cause bacula doesn't recycle my tape, even when >>> volume retention is over. >>> >>> Here is the pool part of my bacula-dir.conf : >>> >>> # Tape Pool definition >>> Pool { >>> Name = TapePool >>> Pool Type = Backup >>> Recycle = yes # Bacula can automatically recycle >>> Volumes >>> AutoPrune = yes # Prune expired volumes >>> Volume Use Duration = 18 hours >>> Volume Retention = 20 days # one year >>> Maximum Volumes = 1 # Limit number of Volumes in Pool >>> Maximum Volume Jobs = 2 >>> Label Format = "Day-" >>> } >>> >>> Look at the tape day-20A (retention period and the last written thing) >>> http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/ >>> >>> And now look at the error (1month after the last written thing on the >>> tape, >>> bacula seems to not recycle the tape..) >>> http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/ >>> >>> >>> There is a problem, right ? >>> -- >> >> Yes there is a problem with your configuration. You have it configured >> to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20 >> days until it can be used again. I do not think this is what you want. >> > I missed the other condition. On top of a maximum of 2 jobs to a > volume you limit the volume to 18 hours of usage. So the second job > must be started within 18 hours of the first. > > John > > -- > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Recycling-is-not-working.-tp28680351p28681737.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re cycling not working.
Hey, I've a problem (I guess) cause bacula doesn't recycle my tape, even when volume retention is over. Here is the pool part of my bacula-dir.conf : # Tape Pool definition Pool { Name = TapePool Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Use Duration = 18 hours Volume Retention = 20 days # one year Maximum Volumes = 1 # Limit number of Volumes in Pool Maximum Volume Jobs = 2 Label Format = "Day-" } Look at the tape day-20A (retention period and the last written thing) http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/ And now look at the error (1month after the last written thing on the tape, bacula seems to not recycle the tape..) http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/ There is a problem, right ? -- View this message in context: http://old.nabble.com/Recycling-not-working.-tp28680351p28680351.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: Can someone help me to solve my logical problem... ?
Yeah, you're right.. I'm dumb. I did something like that : Schedule { Name = "SchedTapeRetDay" # Run = Full mon-fri at 23:05 Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, w45, w49, w53 tue-fri at 23:05 Run = Full w02, w03, w04, w06, w07, w08, w10, w11, w12, w14, w15, w16, w18, w19, w20, w22, w23, w24, w26, w27, w28, w30, w31, w32, w34, w35, w36, w38, w49, w40, w42, w43, w44, w46, w47, w48, w50, w51, w52 mon-fri at 23:05 } Schedule { Name = "SchedTapeRetYear" Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, w45, w49, w53 Mon at 23:05 } That sould work fine. Thank you John. I'll be back in 1 month to confirm the process ;) John M. Drescher wrote: > > On Mon, Mar 29, 2010 at 4:40 AM, gnowar wrote: >> >> Well, about that.. >> >> Is there a way to use an exception for one or several days ? >> >> Schedule { >> Name = "SchedTapeRetDay" >> Run = Full mon-fri at 23:05 >> } >> >> Schedule { >> Name = "SchedTapeRetYear" >> Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, w45, >> w49, w53 Mon at 23:05 >> } >> >> You see the problem. For the mondays who are parts of w01, w05 etc. >> bacula >> will double the backup. >> > > I believe this will work if you use 1 schedule. I may be wrong. > > Schedule { > Name = "MySchedule" > Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, > w45, w49, w53 Mon at 23:05 > Run = Full mon-fri at 23:05 > } > > Now if that does not work. You can select the weeks individually for > Monday. Something like: > > Schedule { > Name = "MySchedule" > Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, > w45, w49, w53 Mon at 23:05 > Run = Full tue-fri at 23:05 > Run = Full w02, w03, w04, w06, w07, w08, w10, w11, w12, w14, w15, > w16 Mon at 23:05 > } > > And yes I stopped at week 16, you will have to fix that.. > > John > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p28069390.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: Can someone help me to solve my logical problem... ?
Well, about that.. Is there a way to use an exception for one or several days ? Schedule { Name = "SchedTapeRetDay" Run = Full mon-fri at 23:05 } Schedule { Name = "SchedTapeRetYear" Run = Full w01, w05, w09, w13, w17, w21, w25, w29, w33, w37, w41, w45, w49, w53 Mon at 23:05 } You see the problem. For the mondays who are parts of w01, w05 etc. bacula will double the backup. My only issue at this point is to stop the backup manually when this configuration appears. Any idea ? I just need to create 2 pools / 2 jobs now, one for 365 days vol retention (schedule for w01, w04 etc..) and the other one for 21 days vol retention. -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p28066342.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: Can someone help me to solve my logical problem... ?
Yeah that should work ! Thanks ! I upgraded bacula to the 5.0.1, it seems like I can reuse a tape when Vol Retention is exceeded (even if jobs and files retention are not exceeded). The volume status of the tape is set to Used when the Vol retention is reached. I just need to create 2 pools / 2 jobs now, one for 365 days vol retention (schedule for w01, w04 etc..) and the other one for 21 days vol retention. Am I right ? Thx guys Marcos Leão wrote: > > ok, there does not appear to be an easy way to schedule for every 20 days. > But for every 21 days it can by easy: > > w01, w04, w07, w10, w13, ... w5x Mon at 22:00 > > will do the trick! > > -- Forwarded message -- > From: John Drescher > Date: Thu, Mar 11, 2010 at 1:43 PM > Subject: Re: [Bacula-users] Can someone help me to solve my logical > problem... ? > To: gnowar > Cc: bacula-users@lists.sourceforge.net > > > On Thu, Mar 11, 2010 at 11:22 AM, gnowar wrote: >> >>>If the volume is pruned then the jobs and files on that volume have to >>>be pruned. If bacula is not operating this way this is a bug. >> >> I think it is. I understood that should works this way when I read the > spec >> but that doesn't work on my system.. >> > > What is the status of that volume? > > Use the console list media command: > > list media > >> >>>You need to modify your schedule how I explained in my first post. >> >> As you saw, I don't speak english so well, > > Yes. I guarantee that your English is better than the only other > language I know somewhat.. > >> I didn't find anything relevent >> in the spec you gave me. I understand how to use one pool for the > twentieth >> day of a month, but not for every 20 days. It's different cause it's >> completly random comared to the day, of a month (I don't know if I'm > clear, >> that should work like a "counter" ?) >> > > I think you are correct. There does not appear to be an easy way to > schedule this. > >> >> I don't know if it's possible, and if it is, that's the key of my >> problem. >> > > You could use a bash script that feeds commands to bconsole to force > bacula to run jobs on the 20th day. > >> Hope you understand me. >> > I'm trying.. > > John > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > -- > Marcos de Oliveira Leão > Consultor Linux/Unix > LPIC/1 - Linux Professional Institute Certification > (55 61) 8556-9956 > leao.mar...@gmail.com > marcos_l...@hotmail.com > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p27984956.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can someone help me to solve my logical problem... ?
>If the volume is pruned then the jobs and files on that volume have to >be pruned. If bacula is not operating this way this is a bug. I think it is. I understood that should works this way when I read the spec but that doesn't work on my system.. >You need to modify your schedule how I explained in my first post. As you saw, I don't speak english so well, I didn't find anything relevent in the spec you gave me. I understand how to use one pool for the twentieth day of a month, but not for every 20 days. It's different cause it's completly random comared to the day, of a month (I don't know if I'm clear, that should work like a "counter" ?) I don't know if it's possible, and if it is, that's the key of my problem. Hope you understand me. Thx for your help -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p27865765.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can someone help me to solve my logical problem... ?
I don't know if it's "normal", but I can't reuse a tape if files and jobs are not pruned, even if the volume is. Files retention and Jobs retention ar definited in the client section. Plus, how can I say to bacula, "use this pool every twentieth backup" ? John M. Drescher wrote: > > On Thu, Mar 11, 2010 at 10:01 AM, gnowar wrote: >> >> Hello, >> >> I have a problem with my personnal cycle tape. Let's see how it works : >> >> I have 20 tapes who are changed everyday. Everytime the 20s tape comes, I >> put it in a box during 365 days. >> >> It's like that : >> >> 1- >> 2- >> 3- >> 4- >> 5- >> . >> . >> . >> 20--> In the box during 1 year >> >> And so on... >> >> 1- (New tape) >> 2- (Ex 1st tape) >> 3- (Ex 2nd tape) >> . >> . >> . >> 20--> In the box during 1 year >> >> >> You see my problem ? I haven't the same retention times for the tapes who >> are rewritted every 20 days, and those who are keeped during one year. >> >> The problem is that I put the catalog name, the file and job retention in >> the client definition... and as I know, I can't have two same client >> right ? >> >> I can't find any solution, excepted keeping files, jobs and volumes >> during >> only 20 days and save the catalog in each tape, and rebuilt the catalog >> to >> recover datas... But that's not easy to use.. >> >> Can someone has an idea ? >> > > Use 1 pool for the tapes you keep for 1 year and 1 pool for the tapes > that you rotate. Adjust your schedule to make a full backup to the > "Year Pool" every 20 days. > > John > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p27865142.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Can someone help me to solve my logical problem... ?
Well, it looks like I can create 2 same client with a different name.. THAT'S GREAT ! gnowar wrote: > > Hello, > > I have a problem with my personnal cycle tape. Let's see how it works : > > I have 20 tapes who are changed everyday. Everytime the 20s tape comes, I > put it in a box during 365 days. > > It's like that : > > 1- > 2- > 3- > 4- > 5- > . > . > . > 20--> In the box during 1 year > > And so on... > > 1- (New tape) > 2- (Ex 1st tape) > 3- (Ex 2nd tape) > . > . > . > 20--> In the box during 1 year > > > You see my problem ? I haven't the same retention times for the tapes who > are rewritted every 20 days, and those who are keeped during one year. > > The problem is that I put the catalog name, the file and job retention in > the client definition... and as I know, I can't have two same client right > ? > > I can't find any solution, excepted keeping files, jobs and volumes during > only 20 days and save the catalog in each tape, and rebuilt the catalog to > recover datas... But that's not easy to use.. > > Can someone has an idea ? > > Thanks ! > -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p27864957.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Can someone help me to solve my logical problem... ?
Hello, I have a problem with my personnal cycle tape. Let's see how it works : I have 20 tapes who are changed everyday. Everytime the 20s tape comes, I put it in a box during 365 days. It's like that : 1- 2- 3- 4- 5- . . . 20--> In the box during 1 year And so on... 1- (New tape) 2- (Ex 1st tape) 3- (Ex 2nd tape) . . . 20--> In the box during 1 year You see my problem ? I haven't the same retention times for the tapes who are rewritted every 20 days, and those who are keeped during one year. The problem is that I put the catalog name in the client... and as I know, I can't have two same client right ? I can't find any solution, excepted keeping files, jobs and volumes during only 20 days and save the catalog in each tape, and rebuilt the catalog to recover datas... But that's not easy to use.. Can someone has an idea ? Thanks ! -- View this message in context: http://old.nabble.com/Can-someone-help-me-to-solve-my-logical-problem...---tp27864557p27864557.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Still have problems with backups on tape...
Hello, I've a problem with my tape backups. When I start the job BackCvsOnTape, it does anything. I set the setdebug to 200 and the trace to "on" but I got no relevent information. Here is my conf : Bacula-dir JobDefs { Name = "DefaultJob" Type = Backup Level = Full # FileSet = "FullSet" # Ex : pour file backup de lan-backup01 => desactive pour le moment Storage = Disk Messages = Standard Priority = 10 Write Bootstrap = "/opt/bacula/working/%c.bsr" } Job { Name = "BackupCvsOnTape" Client = cvs-fd Pool = TapePool FileSet = "cvsFileSet" Schedule = "SchedTape" # RunBeforeJob = "/opt/bacula/sysconf/mount_tape" JobDefs = "DefaultJob" Storage = Tape } FileSet { Name = "cvsFileSet" Include { Options { signature = MD5 } File = /cvs/vira.txt } } Schedule { Name = "SchedTape" Run = Full mon-sun at 23:05 } Client { Name = cvs-fd Address = cvs.klee.lan.net FDPort = 9102 Catalog = MyCatalog Password = "kleeklee" # password for FileDaemon File Retention = 365 days # 30 days Job Retention = 365 days# six months AutoPrune = yes # Prune expired Jobs/Files } Storage { Name = Tape # Do not use "localhost" here Address = 172.20.3.200# N.B. Use a fully qualified name here SDPort = 9103 Password = "kleeklee" Device = LTO-2 Media Type = Ultrium2 } Pool { Name = TapePool Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Use Duration = 18 hours Volume Retention = 10 minutes # one year # Maximum Volume Jobs = 10 Maximum Volumes = 1 # Limit number of Volumes in Pool Label Format = "Day-" } bacula-sd Device { Name = LTO-2 Drive Index = 0 Device Type = Tape Media Type = Ultrium2 Archive Device = /dev/st0 AutomaticMount = yes; AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = no; LabelMedia = yes; Spool Directory = /tmp/spool Maximum Spool Size = 7 Random Access = no; } When I run a job, I just got a : "lan-backup01-dir Start Backup JobId 125, Job=BackupCvsOnTape.2010-03-08_10.05.17_04" 2 days later, the job is still running but nothing append. I tried to purge everything (jobs, pools, volumes) several times, I've labeled the volume and.. that's it. I have the same job who backup on the disk and everything work fine. Where should I look ? Thx ! Ps : bacula 5.0.0, centos 5.4 x64 -- View this message in context: http://old.nabble.com/Still-have-problems-with-backups-on-tape...-tp27819474p27819474.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problems with automatic labeling
>> if you purge a tape , the tape label is still in the database. you would >> need to delete it. I didn't get that.. I'm ok now. >> i've never used your method to write "woef" with a pre-script. IMHO >> bacula is not designed to work this way (what doesn't mean that you could >> not do it this way with scripts and try and error). I did that cause I had errors with labelling.. >> The tape cycle is the following: >> label the tape -> write to it (append) -> full or used (when use duration >> is over) -> prune it (retention time is over, purged) -> reuse the tape >> (recycle) Yeah I saw the schem but it really doesn't explain the "labelling" process. >> you only label it once. the label remains also with recycling. so you >> write the bacula label on the tape and you will know which tape to insert >> if you need to restore something. Actually the label is rewritten everytime but with the same name. If Recycle is set to yes and all Jobs have been pruned, the volume status will be set to Purged and the volume may then be reused when another volume is needed. If the volume is reused, it is relabeled with the same Volume Name, however all previous data will be lost. I've made a test with the new label, it worked fine. But the volume name hasn't a "speaking" name, it's just Day-0016, Day-0017.. Thx a lot btw, I couldn't find it by myself ! Gilles -- View this message in context: http://old.nabble.com/Problems-with-automatic-labeling-tp27754420p27768724.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problems with automatic labeling
>> do you write the new tape labels on the tape every time you put the new one in it? Actually I don't. I just founded cleaner this labelling cleaner... >> or how do you read the tape label "manually"? I don't know, is it possible ? :) >> you could use "Day-" as label Format. Bacula will then append a number to it. or label them once manually. Yes I understood that bacula use to append a number to the label volumes, maybe this is my mistake cause I don't use it.. >> be sure to set Retention times on the pool (e.g. for your schedule maybe 18 days) and and a use duration (maybe 1 day as you change it on a daily basis). I know that my Retention times is wrong right now, but I'm just doing some test so I purge volumes manually. But Thanks for the use duration, I will set it up. Well, again, assuming that the volume is purged from the catalog, the tape is rewind and "woef-ed".. I still don't unterstand why bacula doesn't want to relabel the volume. I mean, the label format worked fine for the first backup but apparently there is no way to relabel the tape. Will it really fix the problem if I change the label format ? Gilles -- View this message in context: http://old.nabble.com/Problems-with-automatic-labeling-tp27754420p27766090.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problems with automatic labeling
Because I change tape everyday during 20 days. It easyer to know wich tape I need if the volume name include the date and time isn't it ? Define the label format like I did does impact the recycle fonction of bacula ? What should be set in the label format ? Thomas Mueller-13 wrote: > > Am Tue, 02 Mar 2010 02:45:58 -0800 schrieb gnowar: > >> Hello, >> >> I've some problems with automatic labeling. Here is my conf : > > >> Here is my BeforeJob script : >> >> #!/bin/sh >> mt -f /dev/st0 rewind >> mt -f /dev/st0 weof >> /opt/bacula/sbin/bconsole -c /opt/bacula/sysconf/bconsole.conf >> <> END_OF_DATA >> /opt/bacula/sbin/bconsole -c /opt/bacula/sysconf/bconsole.conf >> <> END_OF_DATA >> >> Pool { >> Name = TapePool >> Pool Type = Backup >> Recycle = yes # Bacula can automatically recycle >> Volumes >> AutoPrune = yes # Prune expired volumes Volume >> Retention = 365 days # one year Maximum Volume Jobs = 2 >> Maximum Volumes = 1 # Limit number of Volumes in Pool >> Label Format = >> "${Pool}_${Storage}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_ > ${Hour:p/2/0/r}h${Minute:p/2/0/r}m" >> } > > why do you wan't to create time based names for your tape volumes and why > not just enumerate and use volume recycling? this would be the standard > with tapes. > > - Thomas > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Problems-with-automatic-labeling-tp27754420p27757178.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Pool with AutoPrune=no
I guess you should set up a volume retention in your pool and set both Recycle and Autoprune to yes. When the value of your Volume retention is reached, it is automatically purged in your catalog. Then your volume can be recycled. If anyone can confirm ? Tino Schwarze-11 wrote: > > Hi there, > > in an attempt to prevent automatic volume recycling in a pool (we manage > recycling manually), I've set Recycle=no and AutoPrune=no in the pool's > definition. > > Now I found that the jobs don't run because they do not find a useable > volume even though the Scratch pool has enough recycleable volumes. > > Am I correct that I should set Recycle=no and AutoPrune=yes instead? > (The volumes will be updated from pool upon removal from the > autoloader.) > > Thanks, > > Tino. > > -- > "What we nourish flourishes." - "Was wir nähren erblüht." > > www.lichtkreis-chemnitz.de > www.tisc.de > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Pool-with-AutoPrune%3Dno-tp27746686p27756025.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Backup two clients to same tape...
You just need to create 2 Jobs for your clients : Job { Name = "BackupClient1OnTape" Client = Client1 Pool = YourPool FileSet = "Client1FileSet" Schedule = "YourSched" JobDefs = "DefaultJob" Storage = Tape } Job { Name = "BackupClient2OnTape" Client = Client2 Pool = YourPool FileSet = "Client2FileSet" Schedule = "YourSched" JobDefs = "DefaultJob" Storage = Tape } What's the problem ? Gilberto Nunes-3 wrote: > > Hi buddies... > > I have two clients with Windows 2003 server and I have need to backup > this clients into the same tape... > How can I create a job (or jobs) to make thia task??? > > Thanks for any help... > > > -- > Gilberto Nunes Ferreira > *Suporte T.I.* > *Selbetti Gestão de Documentos* > *(47) 3441-6004 / (47) 8861-6672* > *Fax (47) 3441-6027* > /*gilberto.nu...@selbetti.com.br*/ > > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- View this message in context: http://old.nabble.com/Backup-two-clients-to-same-tape...-tp27754901p27755041.html Sent from the Bacula - Users mailing list archive at Nabble.com. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Problems with automatic labeling
Hello, I've some problems with automatic labeling. Here is my conf : Bacula v5.0.0 bacula-dir.conf Job { Name = "BackupCvsOnTape" Client = cvs-fd Pool = TapePool FileSet = "cvsFileSet" Schedule = "SchedTape" RunBeforeJob = "/opt/bacula/sysconf/mount_tape" JobDefs = "DefaultJob" Storage = Tape } Here is my BeforeJob script : #!/bin/sh mt -f /dev/st0 rewind mt -f /dev/st0 weof /opt/bacula/sbin/bconsole -c /opt/bacula/sysconf/bconsole.conf