[Bacula-users] jobid duplicate, bacula client wrong
Hi, I have bacula 2.0.3 on a debian, I installed it on january of this year Recently, on one of my server I see an error on the bacula client of my2k3 server (windows 2003 server) I campared the jobs of bacula-dir against bacula-client you know... stat dir...stat client my2k3-fd. The result don't match, betwen client and server... With this question I perform a query (3: List last 20 Full Backups for a Client) but the result tell me that the database has a duplicate jobid. I know bacula-dir makes every day a full backup of that machine, but the bacula client and bacula-dir tell me wrong things Someone tell me what's wrong and how to fix it? Thanks Jea [EMAIL PROTECTED] Terminated Jobs: JobId LevelFiles Bytes Status FinishedName == 582 Full 86.821 G OK 10-Jun-07 11:53 my2k3 629 Full40330.65 G OK 18-Jun-07 20:14 my2k3 636 Full14123.56 G OK 20-Jun-07 14:03 my2k3 643 Full16223.59 G OK 20-Jun-07 20:10 my2k3 653 Full23123.79 G OK 21-Jun-07 22:40 my2k3 807 Incr11111.69 G OK 17-Jul-07 17:16 my2k3 *query Available queries: 1: List up to 20 places where a File is saved regardless of the directory 2: List where the most recent copies of a file are saved 3: List last 20 Full Backups for a Client 4: List all backups for a Client after a specified time 5: List all backups for a Client 6: List Volume Attributes for a selected Volume 7: List Volumes used by selected JobId 8: List Volumes to Restore All Files 9: List Pool Attributes for a selected Pool 10: List total files/bytes by Job 11: List total files/bytes by Volume 12: List Files for a selected JobId 13: List Jobs stored on a selected MediaId 14: List Jobs stored for a given Volume name 15: List Volumes Bacula thinks are in changer 16: List Volumes likely to need replacement from age or errors Choose a query (1-16): 3 Enter Client name: my2k3-fd +---+--+-+--++-+-+ | jobid | client | starttime | jobfiles | jobbytes | volfile | volumename | +---+--+-+--++-+-+ | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 150 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 151 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 152 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 153 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 154 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 155 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 156 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 157 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 158 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 159 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 160 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 161 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 162 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 163 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 164 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 165 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 166 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 167 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 168 | ka-backup11 | | 804 | my2k3-fd | 2007-07-16 23:30:05 |1,454 | 39,377,640,271 | 169 | ka-backup11 | +---+--+-+--++-+-+ * - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] how to increase write bandwith of bacula
Hi, my bacula client it's on a laptop with debian etch. My tape has a write bandwidth of 80mb/s, my wireless network goes to 11mbps, and my bacula-client do a backup with 361.4 KB/s of rate how to increase the bandwidth ? another example my servers have a gigabit, and my bacula do a backup with a maximum speed of dc2k3: 11736.6 KB/s (276.0 GB), 5,25 hours my2k3: 958.4 KB/s (25.16 GB), 2 hours 51 proyectos: 4884.6 KB/s, (180.7 GB), 9 hours 36 lawson2: 7216.5 KB/s, (844.3 MB), 1 min 24 secs carpanta: 5201.3 KB/s, (14.22 GB), 45 mins 52 secs How do I know what happen with the speed on servers with identical hardware, doing theirs backups in the midnight and no more Something wrong on my bacula-dir.conf? I have a LTO3 ultrium thanks lordjea JobId: 6457 Job:PCD-13.2007-07-17_14.09.00 Backup Level: Full (upgraded from Incremental) Client: PCD13-fd i686-pc-linux-gnu,debian,3.1 FileSet:DocumentosV2linux 2007-07-17 13:06:35 Pool: Default (From Job resource) Storage:Tape (From Job resource) Scheduled time: 17-jul-2007 14:09:00 Start time: 17-jul-2007 14:09:02 End time: 17-jul-2007 17:05:28 Elapsed time: 2 hours 56 mins 26 secs Priority: 10 FD Files Written: 84,190 SD Files Written: 84,190 FD Bytes Written: 3,826,004,761 (3.826 GB) SD Bytes Written: 3,839,512,725 (3.839 GB) Rate: 361.4 KB/s Software Compression: None VSS:no Encryption: no Volume name(s): Backups10 Volume Session Id: 35 Volume Session Time:1184578941 Last Volume Bytes: 396,675,062,784 (396.6 GB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:Backup OK - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] graphical interface for bacula
Hi, someone know if there is a graphical interface for bacula, easy to use for the backup operators? I talk about to that it can allow to run a job, to edit the schedule, and to do restore Thanks for your comments JeA __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Res: electrical cut during a job
Thanks, ask for the purchase of a UPS for our servers, at the moment the one who we have it's damaged. JeAn - Original Message - From: Kern Sibbald [EMAIL PROTECTED] To: bacula-users@lists.sourceforge.net Sent: Monday, November 13, 2006 8:52 PM Subject: Re: [Bacula-users] Res: electrical cut during a job On Monday 13 November 2006 19:51, Hristo Benev wrote: Alan Brown wrote: On Mon, 13 Nov 2006 [EMAIL PROTECTED] wrote: bacula sensible to the electrical cuts, as much as to make lose the data of a tape? If there is a power cut the job is lost. You should run mysqlcheck -A (or the postgres/sqlite equivalent) AND dbcheck before restarting Bacula, in order to ensure the database is not damaged. A UPS is relatively cheap. Why not buy one? Thanks again JeAn - Original Message - From: Georger Araujo [EMAIL PROTECTED] To: bacula-users@lists.sourceforge.net Sent: Monday, November 13, 2006 4:19 PM Subject: [Bacula-users] Res: electrical cut during a job Yup, that will do. I had the same problem and did exactly as Ryan instructed. I have a little script I put together. #Run bconsole #unmount #delete media volume=volume-name #Quit bconsole # Rewind the tape mt -f /dev/nst0 rewind # Write physical End Of File (EOF) to the tape mt -f /dev/nst0 weof #Run bconsole #label #mount Adapt the device file name to your environment. Regards, Georger - Mensagem original De: Ryan Novosielski [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: bacula-users@lists.sourceforge.net Enviadas: Segunda-feira, 13 de Novembro de 2006 12:10:24 Assunto: Re: [Bacula-users] electrical cut during a job -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If all you need is to re-init the tape and don't care about what's on it, mt rewind and mt weof will do fine. Look at mt's man page for more information. [EMAIL PROTECTED] wrote: Hi List, I have a trouble with bacula Last night when backup was being executed, suddenly there was an electrical cut. Bacula stopped and I don't not know how to continue doing backup with that tape. The error when I try to run a job it's: 13-nov 12:53 doom-sd: PCD-05.2006-11-13_12.49.42 Error: Unable to position to end of data on device LTO3 (/dev/nst0): ERR=dev.c:839 ioctl MTEOM error on LTO3 (/dev/nst0). ERR=Error de entrada/salida. It's possible to format the tape? or verify the integrity Thanks jean __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFWIrgmb+gadEcsb4RAjd/AJ9bObGl/N9LVP0l3zkDeC9E0CI0oQCdHQjL h238paL5Mg7XIPe4QvwrN6Q= =FJ7h -END PGP SIGNATURE- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
[Bacula-users] electrical cut during a job
Hi List, I have a trouble with bacula Last night when backup was being executed, suddenly there was an electrical cut. Bacula stopped and I don't not know how to continue doing backup with that tape. The error when I try to run a job it's: 13-nov 12:53 doom-sd: PCD-05.2006-11-13_12.49.42 Error: Unable to position to end of data on device LTO3 (/dev/nst0): ERR=dev.c:839 ioctl MTEOM error on LTO3 (/dev/nst0). ERR=Error de entrada/salida. It's possible to format the tape? or verify the integrity Thanks jean __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Res: electrical cut during a job
Thanks to all for your help guys my bacula it's running again, but I have a question: bacula sensible to the electrical cuts, as much as to make lose the data of a tape? Thanks again JeAn - Original Message - From: Georger Araujo [EMAIL PROTECTED] To: bacula-users@lists.sourceforge.net Sent: Monday, November 13, 2006 4:19 PM Subject: [Bacula-users] Res: electrical cut during a job Yup, that will do. I had the same problem and did exactly as Ryan instructed. I have a little script I put together. #Run bconsole #unmount #delete media volume=volume-name #Quit bconsole # Rewind the tape mt -f /dev/nst0 rewind # Write physical End Of File (EOF) to the tape mt -f /dev/nst0 weof #Run bconsole #label #mount Adapt the device file name to your environment. Regards, Georger - Mensagem original De: Ryan Novosielski [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc: bacula-users@lists.sourceforge.net Enviadas: Segunda-feira, 13 de Novembro de 2006 12:10:24 Assunto: Re: [Bacula-users] electrical cut during a job -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If all you need is to re-init the tape and don't care about what's on it, mt rewind and mt weof will do fine. Look at mt's man page for more information. [EMAIL PROTECTED] wrote: Hi List, I have a trouble with bacula Last night when backup was being executed, suddenly there was an electrical cut. Bacula stopped and I don't not know how to continue doing backup with that tape. The error when I try to run a job it's: 13-nov 12:53 doom-sd: PCD-05.2006-11-13_12.49.42 Error: Unable to position to end of data on device LTO3 (/dev/nst0): ERR=dev.c:839 ioctl MTEOM error on LTO3 (/dev/nst0). ERR=Error de entrada/salida. It's possible to format the tape? or verify the integrity Thanks jean __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFWIrgmb+gadEcsb4RAjd/AJ9bObGl/N9LVP0l3zkDeC9E0CI0oQCdHQjL h238paL5Mg7XIPe4QvwrN6Q= =FJ7h -END PGP SIGNATURE- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Bacula-users] problem after upgrade from 1.38.9 to 1.38.11
Hi guys, thanks your help, I've been added SD_USER=bacula SD_GROUP=tape in bacula-ctl-sd and everything it's fine Jea - Original Message - From: Martin Simmons [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; bacula-users@lists.sourceforge.net Sent: Thursday, September 28, 2006 8:41 PM Subject: Re: [Bacula-users] problem after upgrade from 1.38.9 to 1.38.11 On Thu, 28 Sep 2006 13:12:26 +0200 (CEST), lordjea said: yes, and the bacula user belong to tape group too [EMAIL PROTECTED]:/usr/local/bacula/var/bacula$ ls -l /dev/nst0 crw-rw 1 root tape 9, 128 2005-02-26 07:38 /dev/nst0 [EMAIL PROTECTED]:/usr/local/bacula/var/bacula$ id uid=3D1001(bacula) gid=3D1001(bacula) grupos=3D1001(bacula),26(tape) [EMAIL PROTECTED]:/usr/local/bacula/var/bacula$ Bacula 1.38.11 ignores the user's groups, so you need to pass -g tape when starting bacula-sd. This is the same in 1.38.9, so maybe you changed something? __Martin __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] what's the best way to do backup for a logical volume (LVM)
Hi gentlemen, I tried before to do things that could not be the best way to backup my logical volume. The problem: I have many logical volumes from machines that could not be sttoped, then I had two idea The alternatives: 1- to do a backup for whole RAW partition making a snapshot (lvcreate --snapshot -L 1Gb --name backup-root vg-uml-008/root) 2- to do a snapshot, then mount the snapshot and make a backup from the mounted point (to do this I'm trying to use a RunScript in Job resource**) 3-somebody have any idea reliable? I submit the question because you have a lot of experience that 3 weeks that I have ** but have a mistake: 29-sep 11:59 doom-dir: ERROR in parse_conf.c:853 Config error: Keyword RunScript not permitted in this resource. Perhaps you left the trailing brace off of the previous resource. : line 480, col 12 of file /usr/local/bacula/etc/bacula-dir.conf RunScript { my job it's: Client { Name = wrack-fd Address = wrack.mydomain.com Catalog = Catalogo Password = defwllkjh3g7834kjgetk4w84tn24f67g } Job { Name = wrack Client = wrack-fd #FileSet = Full UML FileSet = RawPartition Write Bootstrap = /usr/local/bacula/var/bacula/working/wrack.bsr #JobDefs = Default Servers JobDefs = Raw Servers RunScript { Command = /home/uml-homes/uml-base/scripts/uml_baculaINI.sh RunsOnClient = yes RunsWhen = Before AbortJobOnError = Yes } # RunScript { # RunsOnClient = yes # RunsWhen = After # RunsOnSuccess = Yes # Command = /home/uml-homes/uml-base/scripts/uml_baculaFIN.sh # } } thanks again lordjea __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] what's the best way to do backup for a logical volume (LVM)
Hi, I'm trying as you told me. The bacula it's backing up whole logical volume with the config: Client { Name = wrack-fd Address = wrack.mydomain.com Catalog = Catalogo Password = seknmit5fwllkjh3g78klwuethñkw4nk645tig } Job { Name = wrack Client = wrack-fd FileSet = RawPartition Write Bootstrap = /usr/local/bacula/var/bacula/working/wrack.bsr JobDefs = Raw Servers Client Run Before Job = /home/uml-homes/uml-base/scripts/scriptBacula/uml-008_baculaIni.sh Client Run After Job = /home/uml-homes/uml-base/scripts/scriptBacula/uml-008_baculaFin.sh } and FileSet, telling explicit to bacula the mount point to backup FileSet { Name = RawPartition Include { Options { signature=MD5; sparse=yes } File = /home/uml-homes/uml-008/mnt File = /home/uml-homes/uml-008/mnt/var File = /home/uml-homes/uml-008/mnt/usr } } Thanks again guys lordjea - Original Message - From: MaxxAtWork [EMAIL PROTECTED] To: [EMAIL PROTECTED]; bacula-users@lists.sourceforge.net Sent: Friday, September 29, 2006 12:53 PM Subject: Re: [Bacula-users] what's the best way to do backup for a logical volume (LVM) On 9/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ** but have a mistake: 29-sep 11:59 doom-dir: ERROR in parse_conf.c:853 Config error: Keyword RunScript not permitted in this resource. Perhaps you left the trailing brace off of the previous resource. : line 480, col 12 of file /usr/local/bacula/etc/bacula-dir.conf RunScript { my job it's: Client { Name = wrack-fd Address = wrack.mydomain.com Catalog = Catalogo Password = defwllkjh3g7834kjgetk4w84tn24f67g } Job { Name = wrack Client = wrack-fd #FileSet = Full UML FileSet = RawPartition Write Bootstrap = /usr/local/bacula/var/bacula/working/wrack.bsr #JobDefs = Default Servers JobDefs = Raw Servers RunScript { Command = /home/uml-homes/uml-base/scripts/uml_baculaINI.sh RunsOnClient = yes RunsWhen = Before AbortJobOnError = Yes } # RunScript { # RunsOnClient = yes # RunsWhen = After # RunsOnSuccess = Yes # Command = /home/uml-homes/uml-base/scripts/uml_baculaFIN.sh # } } I think what you need is a Client Run Before Job with a script to create the snapshot, then the regular Bacula backup of the snapshot, then a Client Run After Job to unmount the snapshot. -- Maxx __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restoring file to a logical volume
Hi Arno, I read these mails but it's not help me, I thnik I'm doing something wrong but I don't know what thanks lordjea - Original Message - From: Arno Lehmann [EMAIL PROTECTED] To: bacula lista bacula-users@lists.sourceforge.net Sent: Tuesday, September 26, 2006 9:31 PM Subject: Re: [Bacula-users] restoring file to a logical volume Hi, didn't you notice Kerns reply to your mail from September 22? I thought he explained things quite clearly... Arno On 9/26/2006 6:11 PM, lordjea wrote: Hi, I'm trying to restore a file with to a logical volume /dev/mappe r/vg--uml--008-backup--root, I can't understand what happening Thanks 26-sep 19:05 wrack-fd: Restore_Particiones_RAW.2006-09-26_16.55.44 Error: attribs.c:337 File size of restored file /dev/mappe r/vg--uml--008-backup--root not correct. Original 0, restored 1073741824. 26-sep 17:11 doom-dir: Restore_Particiones_RAW.2006-09-26_16.55.44 Error: Bacula 1.38.9 (02May06): 26-sep-2006 17:11:20 JobId: 649 Job:Restore_Particiones_RAW.2006-09-26_16.55.44 Client: wrack-fd Start time: 26-sep-2006 16:55:46 End time: 26-sep-2006 17:11:20 Files Expected: 1 Files Restored: 1 Bytes Restored: 1,070,530,936 Rate: 1146,2 KB/s FD Errors: 1 FD termination status: Error SD termination status: OK Termination:*** Restore Error *** 26-sep 17:11 doom-dir: Begin pruning Jobs. 26-sep 17:11 doom-dir: No Jobs found to prune. 26-sep 17:11 doom-dir: Begin pruning Files. 26-sep 17:11 doom-dir: No Files found to prune. 26-sep 17:11 doom-dir: End auto prune. -- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restoring file to a logical volume
Hi, after try restore the file with error, I try to mount the filesystem on the lvm, it show me an error. I think my trouble it's on the way that I do the backup, I will explain you: #1-take a snapshot with: lvcreate --snapshot -L 1G --name backup-root vg-uml-008/root #2-then run the job: Client { Name = wrack-fd Address = wrack.mydomain.com Catalog = Catalogo Password = kwhefwl9t34tn2467g9oo } Job { Name = wrack Client = wrack-fd #FileSet = Full UML FileSet = RawPartition Write Bootstrap = /usr/local/bacula/var/bacula/working/wrack.bsr #JobDefs = Default Servers JobDefs = Raw Servers } #The file set FileSet { Name = RawPartition Include { Options { signature=MD5; sparse=yes } File = /dev/mapper/vg--uml--008-backup--root #File = /home/jzam/mkfs/mnt-tmp } } #the jobdefs JobDefs { Name = Raw Servers Type = Backup Schedule = WeeklyCycleRawServer Messages = Standard Storage = Tape Pool = Default Priority = 10 } 3# the backup with no error #At the begening the backup do with no error, I tried again with the same file: 27-sep 01:05 doom-dir: Start Backup JobId 662, Job=wrack.2006-09-27_01.05.00 27-sep 01:20 doom-dir: Bacula 1.38.9 (02May06): 27-sep-2006 01:20:12 JobId: 662 Job:wrack.2006-09-27_01.05.00 Backup Level: Full Client: wrack-fd i686-pc-linux-gnu,debian,3.1 FileSet:RawPartition 2006-09-20 17:10:37 Pool: Default Storage:Tape Scheduled time: 27-sep-2006 01:05:00 Start time: 27-sep-2006 01:05:04 End time: 27-sep-2006 01:20:12 Elapsed time: 15 mins 8 secs Priority: 10 FD Files Written: 1 SD Files Written: 1 FD Bytes Written: 1,073,871,504 (1.073 GB) SD Bytes Written: 1,062,273,164 (1.062 GB) Rate: 1182,7 KB/s Software Compression: None Volume name(s): Backups1-dataware Volume Session Id: 15 Volume Session Time:1159280556 Last Volume Bytes: 222,551,069,894 (222.5 GB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:Backup OK 27-sep 01:20 doom-dir: Begin pruning Jobs. 27-sep 01:20 doom-dir: No Jobs found to prune. 27-sep 01:20 doom-dir: Begin pruning Files. 27-sep 01:20 doom-dir: No Files found to prune. 27-sep 01:20 doom-dir: End auto prune. 4# then the file it's backed up, I delete de logical volume to try to restore it and verify the file it's ok. lvremove /dev/vg-uml-008/backup-root -f 5# I delete the file because it was a snapshot, to retore it I need a empty logical volume in the same group lvcreate --size 1G --name backup-root vg-uml-008 #the logical volume it's not mounted 6# then I run the restore job, some time later I look the error message before showed 7# I try to mount the filesystem, Then I look an error 8# I don't know what I'm doing wrong =( thanks a lot lordjea - Original Message - From: John Drescher To: lordjea Sent: Tuesday, September 26, 2006 6:49 PM Subject: Re: [Bacula-users] restoring file to a logical volume On 9/26/06, lordjea [EMAIL PROTECTED] wrote: Hi, I'm trying to restore a file with to a logical volume /dev/mappe r/vg--uml--008-backup--root, I can't understand what happening Thanks 26-sep 19:05 wrack-fd: Restore_Particiones_RAW.2006-09-26_16.55.44 Error: attribs.c:337 File size of restored file /dev/mappe r/vg--uml--008-backup--root not correct. Original 0, restored 1073741824. 26-sep 17:11 doom-dir: Restore_Particiones_RAW.2006-09-26_16.55.44 Error: Bacula 1.38.9 (02May06): 26-sep-2006 17:11:20 JobId: 649 Job:Restore_Particiones_RAW.2006-09-26_16.55.44 Client: wrack-fd Start time: 26-sep-2006 16:55:46 End time: 26-sep-2006 17:11:20 Files Expected: 1 Files Restored: 1 Bytes Restored: 1,070,530,936 Rate: 1146,2 KB/s FD Errors: 1 FD termination status: Error SD termination status: OK Termination:*** Restore Error *** 26-sep 17:11 doom-dir: Begin pruning Jobs. 26-sep 17:11 doom-dir: No Jobs found to prune. 26-sep 17:11 doom-dir: Begin pruning Files. 26-sep 17:11 doom-dir: No Files found to prune. 26-sep 17:11 doom-dir: End auto prune. Did you try mounting the filesystem on the lvm after this command? I am assuming that there was some type of error in the recording of the filesize (during the backup) as I know you did not backup a 0 byte file and then try to restore it! John __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com