[Bacula-users] Problem with webacula
Hi to all. I'm trying to install webacula but after do all tha config i get the next error Fatal error: Uncaught exception 'Zend_Exception' with message 'Version error for Catalog database (wanted 12, got 11) ' in /var/www/webacula/html/index.php:183 Stack trace: #0 {main} thrown in /var/www/webacula/html/index.php on line 183 I have to mention that when i run the script to check system requeriments and i get all right (but PostgreSQL because i'm running bacula with mysql). #!/usr/bin/php Check System Requirements... Current MySQL version = 5.0.45 OK Current PostgreSQL version =Warning. Upgrade your PostgreSQL version to 8.0.0 or later Current Sqlite version = 3.4.2 OK Current PHP version = 5.2.4 OK php pdo installed. OK php gd installed. OK php xml installed. OK php dom installed. OK php pdo_mysql installed.OK php pdo_pgsql installed.OK php-dom, php-xml installed. OK Actually im running bacula 3.03 and webacula 5.0 in the director and i don't have any idea what can be wrong. I don't know if i have provided all the information required, if i'm missing something i'll be so thanked you to tell me. Thanks in advance Daniel Beas Enriquez -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Variables in bacula
i'm doing backups of local and remote clients (the remote clients doesn't have too much information so there is not a big problem doing that). I have remember thah i had used the domain name for the storage because i had used the same storage for all the clients (remote and local) but now i have a storage for every client so i don't have this problem anymore and i can use the local ip address for local backups which are the most important. Thank you so much Daniel Beas Enriquez > Date: Mon, 2 Aug 2010 13:54:25 -0400 > From: ala...@metrocast.net > To: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] Variables in bacula > > On 08/02/10 13:17, Daniel beas wrote: > > > > Hi to all. > > I have a dsl connection with a dynamic ip and actually i'm resolving it > > with a subdomain from no-ip but sometimes i get this error > > gethostbyname() for host "mydomain.zapto.org" failed: > > ERR=Non-authoritative for host not found, or ServerFail. > > So i'm trying to change the way i get the ip for the Storage daemon by > > getting my public ip with a shell script (ran before the job) and > > putting it in a variable. > > > > IP=`wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address://' > > -e 's/<.*$//'` > > > > The problem i have is how can bacula-dir.conf get the $IP variable? > > > > i tried just this way but it doesn work > > Storage { > >Name = sxxx > >Address = $IP > >SDPort = 9103 > >Password = "SHexZ8mwXW4YkbJgu2HpJloZfkuT5Pj5yyWLiPxBhoZy" > >device = dxxx > >Media type = File > > } > > > > and then tried using brackets this way > > Storage { > >Name = sxxx > >Address = {$IP} > >SDPort = 9103 > >Password = "SHexZ8mwXW4YkbJgu2HpJloZfkuT5Pj5yyWLiPxBhoZy" > >device = dxxx > >Media type = File > > } > > but looks like bacula thinks there finish the storage resource > > Well, that latter syntax would be wrong for shell expansion; it would be > ${IP}, not {$IP}. But correct shell expansion is moot in the first > place because Bacula does not perform shell expansion when loading its > config files. > > About the only practical way you can do this is to maintain a template > config, generate a "live" config by processing the template and > replacing the IP, then starting Bacula on the live config. So you'd do > something like this: > > # bacula-dir.template > Storage { > Name = sxxx > Address = MYADDRESS > SDPort = 9103 > Password = "SHexZ8mwXW4YkbJgu2HpJloZfkuT5Pj5yyWLiPxBhoZy" > device = dxxx > Media type = File > } > > # prepscript > #!/bin/bash > IP=$(whatever means to get IP here) > cat bacula-dir.template | sed -e "s/MYADDRESS/${IP}/" > bacula-dir.conf > /etc/init.d/bacula start > > This step could probably actually be incorporated into your Bacula > startup script. > > You're also going to have to make your Director and your storage daemon > listen on both your internal address and your public IP, unless your > router is taking care of this via NAT. > > > All this said, I can't help but think there has to be an easier way to > do this, but it's hard to tell without knowing what your actual > infrastructure situation is. Do I understand correctly that you are > trying to make backups, over DSL, to a remote storage host on a > dynamic-IP connection somewhere off in the outside world? Or are you > trying to back up remote clients to a local storage daemon over a > dynamic-IP DSL connection? Either way seems likely to be both extremely > unreliable and, more likely than not, infeasibly slow. > > > -- > Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355 > ala...@caerllewys.net ala...@metrocast.net p...@co.ordinate.org > Renaissance Man, Unix ronin, Perl hacker, Free Stater > It's not the years, it's the mileage. > > -- > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Variables in bacula
Hi to all. I have a dsl connection with a dynamic ip and actually i'm resolving it with a subdomain from no-ip but sometimes i get this error gethostbyname() for host "mydomain.zapto.org" failed: ERR=Non-authoritative for host not found, or ServerFail. So i'm trying to change the way i get the ip for the Storage daemon by getting my public ip with a shell script (ran before the job) and putting it in a variable. IP=`wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address://' -e 's/<.*$//'` The problem i have is how can bacula-dir.conf get the $IP variable? i tried just this way but it doesn work Storage { Name = sxxx Address = $IP SDPort = 9103 Password = "SHexZ8mwXW4YkbJgu2HpJloZfkuT5Pj5yyWLiPxBhoZy" device = dxxx Media type = File } and then tried using brackets this way Storage { Name = sxxx Address = {$IP} SDPort = 9103 Password = "SHexZ8mwXW4YkbJgu2HpJloZfkuT5Pj5yyWLiPxBhoZy" device = dxxx Media type = File } but looks like bacula thinks there finish the storage resource Thanks in advance Daniel Beas Enriquez -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] autocreated volumes
Hi everyone i'm making backups of windows xp fd's and i'm creating a volume every day for every client by an script which runs before every Job, the name of the file has the date in it. Obviously when the fd is off and the director tries to run the backup the client doesn't answer, the backup is not made. It leaves a volume created and with status Appendable which is used next day. For example the volume called dis20100706 (20100706 is the date) it will contain a backup made in July 07 2010. This happens every day the client is off. How can avoid the backups store in volumes created behind, mark volume as error for example if the backup doesn't run correctly. Thanks in advance i hope somebody can help me have a nice day Daniel Beas Enriquez _ Prefiero un día sin coche que sin Messenger www.vivirmessenger.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] Backup to remote location
Yes it is, im just probing this config but you can add as many devices in your bacula-sd as you want. I don't know if it is a best practice, may be someone else can help us, considering we do not backup on tape. Daniel Beas Enriquez Well, thinking to it better it may just solve the naming of the volumes, not the location, as the Storage daemon would be always the same, unless I can decide even the storage daemon for full and incremental in a different way... Do you know if it's possible? 2010/6/27 Massimiliano Perantoni : > Got it! > If it works it is just a sample config on the website... > I can differentiate the pools for the kind of job... >Full Backup Pool = FullTest >Incremental Backup Pool = AllIncrementals >Differential Backup Pool = AllDifferentials > > If it works I may define a local pool for the full backup that then I > can copy elsewhere by hand, and the other pools as a different pool > that will be local. > That should solve the problem, as I would backup locally the files for > the full backup, then move the files to the other site for disaster > recovery, then move the rest by wire everyday. > > Ciao Massimiliano > > 2010/6/27 Daniel beas : >> This works for me: >> define a Job without specify a level >> >> Job { >>Name = diseno >>Type = Backup >>WriteBootstrap = /home/whatever.bsr >>Client = cdiseno >>FileSet = dis >>Pool = pdis >>Schedule = Weeklydis >>Storage = diseno >>RunBeforeJob = /home/whatever/creavolsdis >> } >> # And then define the Schedule this way >> >> Schedule { >>Name = Weeklydis >>Run = Full sat at 16:00 >>Run = Incremental mon-fri at 12:00 >> } >> >> I'm not so sure about the right sintax at this moment but this backup is >> made on site, the script creates a volume every day and it does the >> incremental backups in the week (about 1.5 gb mon-fri and 36 Gb on weekend). >> This because it is the same Job with 2 Schedule (only one schedule >> resource). >> >> I hope it is what you are looking for >> >> Daniel Beas Enriquez >> >> >> >> >>> Date: Sat, 26 Jun 2010 23:45:15 +0200 >>> Subject: Re: [Bacula-users] Backup to remote location >>> From: massimili...@perantoni.net >>> To: beasdan...@hotmail.com >>> >>> Hi thanks for the quick answer to all! Reading the answer I understand >>> that maybe I did not explain the situation well. >>> >>> My actual problem is that, for disaster recovery, the limitation is >>> bandwidth, not time. Actually the real problem is that, while I should >>> recover the failure rebuying or (in a better condition) reinstalling >>> all the servers during a complete failure of the systems, that's >>> acceptable for me to bring back all data from a remote location to >>> start working again after that I have put back in place all the >>> infrastructure: rebuying minimal sistems would take weeks, while >>> copying data would cost a day. The only matter is transfering data >>> from A to B. On B, infact, we have plenty of space to house the full >>> and the incremental backups (actually the data is 4TB and growing, >>> while the storage area is something like 12 TB). >>> >>> As of now the only problem is the unacceptable time to copy the full >>> backup from A to B; just a short calculation, lets suppose 10Mbps (the >>> full bandwidth between A and B), to copy 4 TB of data wold take >>> approximatively >>> 4 * 1024 * 1024 * 8 /( 10 * 3600) = 1342 hours >>> To transfer the full backup. It would mean that, to complete the full >>> backup job, it would take something like 55 days... That would make >>> the internet line unusable... >>> >>> The solution would be making a full backup onsite in A, then send it >>> to site B for storage, then work using incremental. My schedule would >>> be >>> >>> 1 Full per year (of every 6 months) in local, then moved someway to Site B >>> 2 Differential every week remotely >>> 3 Incremental daily remotely >>> The only problem, actually, is that if I create a job, it has its >>> name, sd and fd; when I change them the backup is different... >>> >>> Doug Forster has written some schedules that seem to be interesting... >>> Actually my default schedule says that the job runs everyday, does an >>> incremental every day, a differential per week and a full per month; >&
Re: [Bacula-users] Backup to remote location
hi massimiliano in my little experience you can define the job without especify full or Incremental backup and in the schedule you define schedule for full and for incremental backups. I'm so new to bacula, may be someone can tell you a better solution Mejor loado de los pocos sabios que aplaudidode los muchos necios Miguel de Cervantes Saavedra Daniel Beas Enriquez > Date: Fri, 25 Jun 2010 23:39:45 +0200 > From: massimili...@perantoni.net > To: bacula-users@lists.sourceforge.net > Subject: [Bacula-users] Backup to remote location > > Hi! > I'm going to plan a remote backup between two places in my company > that are connected with 10Mbps connectivity. I need to backup, to be > sure I will not have problems for disaster recovery, all the data in > "location A" to "location B". Up to the moment we have a local backup > working like a charm with bacula, the matter is the remote backup; we > have 4TB of data and growing and we calculated that we would spend a > lot of our time and bandwidth doing the backup, so we would like to > create a first full backup of "location A" (maybe yearly) to be sent > to "location B", where we would just do the incremental ones: the > great matter is that we would like to do it as automatically as > possible: the matter is that for what I understood up till now is that > bacula works on job names, not on backupped files, so that if I backup > everything with a job, a different job on the same fileset would start > with a full backup. > > How to solve this problem? > > Any help would be really appreciated... > > Ciao Massimiliano > > -- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users _ Enciende tu hotness con Hotmail www.hotmailhotness.com.mx-- 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] Problem with Volumes
I was looking for the problem and i found that the disk was full.Sorry, it was a newbie mistake Thank you so much for your help Daniel Beas Enriquez > Date: Tue, 18 May 2010 11:08:33 -0400 > Subject: Re: [Bacula-users] Problem with Volumes > From: dresche...@gmail.com > To: beasdan...@hotmail.com > CC: bacula-users@lists.sourceforge.net > > On Tue, May 18, 2010 at 11:02 AM, Daniel beas wrote: > > Hi John, thanks for your answer > > > > here i have an example for pool padir on full backup April 10th it was all > > rigth for volume asis-dir-abr1 > > > > 10-abr 12:11 bacula-dir JobId 1738: Start Backup JobId 1738, > > Job=asisdireccion.2010-04-10_12.00.00_35 > > 10-abr 12:11 bacula-dir JobId 1738: Using Device "FileStorage" > > 10-abr 12:11 bacula-sd JobId 1738: Volume "asis-dir-abr1" previously > > written, moving to end of data. > > 10-abr 12:11 bacula-sd JobId 1738: Ready to append to end of Volume > > "asis-dir-abr1" size=15019647040 > > 10-abr 12:03 casisdireccion JobId 1738: Generate VSS snapshots. Driver="VSS > > WinXP", Drive(s)="C" > > 10-abr 12:57 casisdireccion JobId 1738: VSS Writer (BackupComplete): "WMI > > Writer", State: 0x1 (VSS_WS_STABLE) > > 10-abr 12:57 casisdireccion JobId 1738: VSS Writer (BackupComplete): > > "Microsoft Writer (Bootable State)", State: 0x1 (VSS_WS_STABLE) > > 10-abr 12:57 casisdireccion JobId 1738: VSS Writer (BackupComplete): > > "MSDEWriter", State: 0x1 (VSS_WS_STABLE) > > 10-abr 12:57 casisdireccion JobId 1738: VSS Writer (BackupComplete): > > "Microsoft Writer (Service State)", State: 0x1 (VSS_WS_STABLE) > > 10-abr 13:05 bacula-sd JobId 1738: Job write elapsed time = 00:53:35, > > Transfer rate = 2.994 M bytes/second > > 10-abr 13:05 bacula-dir JobId 1738: Bacula bacula-dir 3.0.3 (18Oct09): > > 10-abr-2010 13:05:18 > > Build OS: i686-pc-linux-gnu redhat > > JobId: 1738 > > Job:asisdireccion.2010-04-10_12.00.00_35 > > Backup Level: Full > > Client: "casisdireccion" 3.0.3 (18Oct09) > > Linux,Cross-compile,Win32 > > FileSet:"resadir" 2009-12-02 06:45:15 > > Pool: "padir" (From Job resource) > > Catalog:"MyCatalog" (From Client resource) > > Storage:"Default" (From Job resource) > > Scheduled time: 10-abr-2010 12:00:00 > > Start time: 10-abr-2010 12:11:38 > > End time: 10-abr-2010 13:05:18 > > Elapsed time: 53 mins 40 secs > > Priority: 10 > > FD Files Written: 6,605 > > SD Files Written: 6,605 > > FD Bytes Written: 9,626,564,207 (9.626 GB) > > SD Bytes Written: 9,627,964,178 (9.627 GB) > > Rate: 2989.6 KB/s > > Software Compression: None > > VSS:yes > > Encryption: no > > Accurate: no > > Volume name(s): asis-dir-abr1 > > Volume Session Id: 23 > > Volume Session Time:1270823010 > > Last Volume Bytes: 24,654,945,320 (24.65 GB) > > Non-fatal FD errors:0 > > SD Errors: 0 > > FD termination status: OK > > SD termination status: OK > > Termination:Backup OK > > > > 10-abr 13:05 bacula-dir JobId 1738: Begin pruning Jobs. > > 10-abr 13:05 bacula-dir JobId 1738: No Jobs found to prune. > > 10-abr 13:05 bacula-dir JobId 1738: Begin pruning Files. > > 10-abr 13:05 bacula-dir JobId 1738: Pruned Files from 2 Jobs for client > > casisdireccion from catalog. > > 10-abr 13:05 bacula-dir JobId 1738: End auto prune. > > > > and then on April 12 it tries to use the same volume > > > > 12-abr 10:15 bacula-sd JobId 1756: Please mount Volume "asis-dir-abr1" or > > label a new one for: > > Job: asisdireccion.2010-04-12_10.15.00_01 > > Storage: "FileStorage" (/mnt/bacula) > > Pool: padir > > Media type: File > > > > and then it marks it with error in catalog > > > > 12-abr 10:15 bacula-dir JobId 1756: Start Backup JobId 1756, > > Job=asisdireccion.2010-04-12_10.15.00_01 > > 12-abr 10:15 bacula-dir JobId 1756: Using Device "FileStorage" > > 12-abr 10:07 casisdireccion JobId 1756: DIR and FD clocks differ by -482 > > seconds, FD automatically compensating. > > 1
Re: [Bacula-users] Problem with Volumes
1 | 31,325,919,430 |7 | 31,536,000 | 1 |0 | 0 | File | 2010-03-27 12:42:00 | | 94 | asis-dir-abr1 | Error | 1 | 24,654,945,320 |5 | 31,536,000 | 1 |0 | 0 | File | 2010-04-10 13:05:13 | | 109 | adir-abr01| Error | 1 | 19,717,889,601 |4 | 31,536,000 | 1 |0 | 0 | File | 2010-04-19 10:26:20 | | 116 | adir-abr19-30 | Used | 1 | 50,347,149,639 | 11 | 31,536,000 | 1 |0 | 0 | File | 2010-05-08 12:57:18 | | 142 | adir-may01-15 | Error | 1 | 11,289,242,671 |2 | 31,536,000 | 1 |0 | 0 | File | 2010-05-14 11:36:26 | | 164 | adir-may15-31 | Append| 1 | 10,190,580,742 |2 | 31,536,000 | 1 |0 | 0 | File | 2010-05-15 13:25:53 | +-+---+---+-++--+--+-+--+---+-------+-+ The file seems not to be available but i could label a new one and the next day the backup was ok in the new volume. I also could notice i have a volume marked as used, that means it changed the volume automatically so i'm doing something wrong. I only have a cuestion. If i label a new volume some days before it make 12 backups at the next backup shall it use the new volume? thanks in advance have a nice day Daniel Beas Enriquez > Date: Mon, 17 May 2010 22:26:44 -0400 > Subject: Re: [Bacula-users] Problem with Volumes > From: dresche...@gmail.com > To: beasdan...@hotmail.com > CC: bacula-users@lists.sourceforge.net > > 2010/5/17 Daniel beas : > > > > Hi to all, > > My name is Daniel Beas, i'm from Guadalajara Mexico and i'm new at this > > list. > > > > I have implemented a bacula server and am making backups in files (i don't > > have a tape drive). I have a volume for each client and i need to take out > > all the files every 2 weeks and then label a new volume to backup. > > Bacula is running an Incremental backup every day and a full backup once a > > week on weekend. > > Trying to do this i defined in the pool resource MaximumVolumeJobs = 12. > > Some days before of 12th day, i do label a new volume for the Pool and then, > > after de 12th Job i get the message "cannot find appendable Volumes for > > pool-x" and then it marks the volume as Error in catalog, so it is not ok > > for a recover. > > How can i do to avoid volume be marked with Error in catalog? > > this is an exampe of my pool definition > > Pool { > >Name = "pdis2" > >Pool Type = Backup > >Recycle = yes > >AutoPrune = yes > >Volume Retention = 365 days > >MaximumVolumeJobs = 15 > > } > > > > I'm running Bacula 3.0.3 on Fedora core 8 > > most of bacula-fd are windows XP sp2 > > > > Thanks in advance, I hope you can help me the way i would like can to help > > somebody in the future. > > > > Have a nice Day > > Do you have the logs? It would be helpful to post the part of log (or > messages) when this happens. Also if you have this please post status > storage pool=pdis2 > > John _ Enciende tu hotness con Hotmail www.hotmailhotness.com.mx-- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Problem with Volumes
Hi to all, My name is Daniel Beas, i'm from Guadalajara Mexico and i'm new at this list. I have implemented a bacula server and am making backups in files (i don't have a tape drive). I have a volume for each client and i need to take out all the files every 2 weeks and then label a new volume to backup. Bacula is running an Incremental backup every day and a full backup once a week on weekend. Trying to do this i defined in the pool resource MaximumVolumeJobs = 12. Some days before of 12th day, i do label a new volume for the Pool and then, after de 12th Job i get the message "cannot find appendable Volumes for pool-x" and then it marks the volume as Error in catalog, so it is not ok for a recover. How can i do to avoid volume be marked with Error in catalog? this is an exampe of my pool definition Pool { Name = "pdis2" Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 365 days MaximumVolumeJobs = 15 } I'm running Bacula 3.0.3 on Fedora core 8 most of bacula-fd are windows XP sp2 Thanks in advance, I hope you can help me the way i would like can to help somebody in the future. Have a nice Day Daniel Beas Enriquez _ Prefiero un día sin coche que sin Messenger www.vivirmessenger.com-- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users