Re: [Bacula-users] regexdir stops bacula backup...
Nobody has an idea? On Tue, Feb 24, 2009 at 22:19, Thomas Manson dev.mansontho...@gmail.comwrote: I forgot to mention the bacula version : server : 2.4.2-1ubuntu6 client : Redhat ES4 with version : bacula-client-2.4.2-1.el4.i386.rpm Thomas On Tue, Feb 24, 2009 at 22:16, Thomas Manson dev.mansontho...@gmail.comwrote: Hi, I want to backup this kind of directories : /home/user1/web/public_html /home/user2/web/public_html /home/user3/web/public_html /home/user4/web/public_html and subdirectories. I've run a find to list all dir of the home directory and test the following regexp on it with success : /home/.*/web/public_html (with quote in the configuration file). When I run the backup, the job crashes : My SSH tunnel is stopped and when I run another backup, it tells me that the last volume do not have the correct number of byte (can't remember the exact message). If I comment the regexdir, it works normally. here is the fileSet : FileSet { Name = computer.domain.com.FileSet Include { Options { signature = SHA1 compression = GZIP #regexdir= /home/.*/web/public_html } File = /etc File = /home/special/master File = /usr/src/makeHttpd File = /root File = /backup/databases/lastbackup } } Any idea of how I can see what's going wrong? Thx, Thomas. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Windows restore: Can not browse or restore files
Foo wrote: The file selection subsection is a little bit broken, my experience with this is that you need to know the exact syntax in both config and while selecting files. For example, I notice you have a capital C: while in my backups I have a lower case c:, maybe try using it without a slash change the capital to lower case (both while selecting and in your fileset for backup). I looked my configuration over again to check for uppercase C etc. It turns out that things work so much better when I only use one '/' to separate directories in the paths :) For some reason I had C://blabla - I think I started out with backslashes, and when that did not work I escaped them with another one, and when that did not work I substituted with forward slashes. Now I have substituted '//' with '/' and it works :) If all else fails and you need to get data back from already made backups you could try using the 'all' keyword to restore everything without selection (and then restore it to somewhere else so you don't overwrite stuff you don't want to), or use one of the bscan/bextract utils. There is nothing in the old backups that I need - I have deleted the volume and started over. Thanks for input. -- Regards Thomas Lindgaard -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restoring from volumes on multiple storages
I started this thread on the bacula-users list, but I'm now also sending it to the bacula-devel list, as I seem to have taken that sort of turn. On Wed, Feb 25, 2009 at 10:12:19PM +0100, Arno Lehmann wrote: Hi, 25.02.2009 18:37, Graham Keeling wrote: Hello, Here I'm using bacula-2.2.8. I have a bacula storage daemon, 'Disk 1' (Device 'Disk 1.0') and a bacula storage daemon, 'BPL2Disk 1' (Device 'BPL2Disk 1.0'). There is one backup job allowed per volume. 'BPL2Disk 1' has a full backup and several incrementals. 'Disk 1' has the latest incremental. When I try to restore a job that needs four volumes in total including the latest one on 'Disk 1', it seems as if bacula doesn't bother trying to find the last volume on the second storage. It just tries the first and gives up. I have attached the .bsr file that was produced for the restore job. You can see that it has got the device names correct. The attached file 'log' shows the commands that I entered for the restore job into bconsole, the questions that it asked me, and the messages that bacula logged when it tried to run the restore. It clearly shows that bacula knows where the different volumes are, but it then ignored that information and tried to find all the volumes on 'BPL2Disk 1'. Have a found a bug, a limitation, a feature, or am I doing it wrong? A limitation (which should be documented somewhere...) The solution is to either pick the jobs manually, and start a restore for the set from one storage device first, then run a restore from the second storage devices volumes. Or, alternatively, you can take the bootstrap file you already have, split it in two in this location: FileIndex=320-321 FileIndex=540 Count=7 split here Volume=backup-0145 MediaType=File Device=Disk 1.0 VolSessionId=70 and run two separate restore jobs with the resulting bootstrap files. Thanks for your reply. I would have thought that the bacula director should be able to do this splitting up of the jobs to the separate storage daemons by itself. After all, it has already figured out where the volumes are. Whilst I was entering the commands into bconsole, it said this: Bootstrap records written to /var/lib/bacula/testingserv.examples.co.uk-di.restore.9.bsr The job will require the following Volume(s) Storage(s)SD Device(s) === backup-0031 BPL2Disk 1BPL2Disk 1.0 backup-0013 BPL2Disk 1BPL2Disk 1.0 backup-0297 BPL2Disk 1BPL2Disk 1.0 backup-0145 Disk 1Disk 1.0 809 files selected to be restored. You can see that it knows all the information that is needed. What needs to happen to get this 'fixed' so that it requires no fiddly manual intervention and just does what I told it to do (and what it knows it should do)? It seems to me that the director just needs to feed separate .bsr files to the separate storages that it needs the data from. Can this happen easily? Has anybody come across this, or thought about this before? It seems to me that this must be a reasonably common occurence. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Could not stat ... ERR=The system cannot find the path specified.^M
Hi All I would like to know if it's possible to backup something on a dataStore (where there is no DIR and SD daemon, just disks). My client is a Windows server 2003 (bacula-fd) , my bacula-dir/sd is on a freeBSD, and I want to backup my client in another place which is not a bacula-dir, sd, fd ... In my bacula-dir on my freeBSD: FileSet { Name = xxx Enable VSS = no Include { Options { compression = GZIP ignore case = yes } File = J:/BACKUP } } In my log I have this error : 25-Feb 18:00 xxx: Could not stat J:/BACKUP: ERR=The system cannot find the path specified.^M J:/ is a virtual disk on my Windows client, which is my dataStore, the place where I want to backup my client Thanks for your help François -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Could not stat ... ERR=The system cannot find the path specified.^M
I read my mail and i say myself that i have to give you more details In fact I have a ClientRunBefore and ClientRunAfter for my job. The ClientRunBefore creates the directory BACKUP on the datastore (J:/ virtual disk on the client ), it's a directory for dump of a database of my client (bacula-fd). Then I have to save this dump on my freeBSD (bacula-fd, bacula-sd) so my FreeBSD have to contact the dataStore via my client, that is why I put in the ressource FileSet, the directive File = « J:/BACKUP » ClientAfterJob removes the directory BACKUP on the datastore. DataStore-- Client Windows-- - FreeBSD Just disks | bacula-fd | bacula-dir, bacula-sd A disk for the dump | database to save | Of the database But i have this error 25-Feb 18:00 xxx: Could not stat J:/BACKUP: ERR=The system cannot find the path specified.^M And in want to know in general if it's possible to backup something on a dataStore (where there is no DIR, SD daemon and impossible to install also a FD daemon, just disks). My client is a Windows server 2003 (bacula-fd) , my bacula-dir/sd is on a freeBSD, and I want to backup my client in another place which is not a bacula-dir, sd, fd ... Regards, François De : François Mehault [mailto:francois.meha...@netplus.fr] Envoyé : jeudi 26 février 2009 13:51 À : bacula-users@lists.sourceforge.net Objet : [Bacula-users] Could not stat ... ERR=The system cannot find the path specified.^M Hi All I would like to know if it's possible to backup something on a dataStore (where there is no DIR and SD daemon, just disks). My client is a Windows server 2003 (bacula-fd) , my bacula-dir/sd is on a freeBSD, and I want to backup my client in another place which is not a bacula-dir, sd, fd ... In my bacula-dir on my freeBSD: FileSet { Name = xxx Enable VSS = no Include { Options { compression = GZIP ignore case = yes } File = J:/BACKUP } } In my log I have this error : 25-Feb 18:00 xxx: Could not stat J:/BACKUP: ERR=The system cannot find the path specified.^M J:/ is a virtual disk on my Windows client, which is my dataStore, the place where I want to backup my client Thanks for your help François -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restoring from volumes on multiple storages
On Wed, Feb 25, 2009 at 05:37:05PM +, Graham Keeling wrote: Hello, Here I'm using bacula-2.2.8. I have a bacula storage daemon, 'Disk 1' (Device 'Disk 1.0') and a bacula storage daemon, 'BPL2Disk 1' (Device 'BPL2Disk 1.0'). There is one backup job allowed per volume. 'BPL2Disk 1' has a full backup and several incrementals. 'Disk 1' has the latest incremental. When I try to restore a job that needs four volumes in total including the latest one on 'Disk 1', it seems as if bacula doesn't bother trying to find the last volume on the second storage. It just tries the first and gives up. I have attached the .bsr file that was produced for the restore job. You can see that it has got the device names correct. The attached file 'log' shows the commands that I entered for the restore job into bconsole, the questions that it asked me, and the messages that bacula logged when it tried to run the restore. It clearly shows that bacula knows where the different volumes are, but it then ignored that information and tried to find all the volumes on 'BPL2Disk 1'. Have a found a bug, a limitation, a feature, or am I doing it wrong? Hi Graham, sorry I cannot help you with your question, but I was under the impression that bacula is able to handle multiple storages and devices in a pool just fine (or are your volumes in different backup pools?). As we'll be adding a 2nd tape library / changer to an existing bacula installation next week I'd be very interested in some comments from the list gurus. All the best, Uwe -- uwe.schuerk...@nionex.net phone: [+49] 5242.91- 4740 fax:-9722 Hauptsitz: Avenwedder Str. 55, D-33311 Guetersloh, Germany Registergericht Guetersloh HRB 4196, Geschaeftsfuehrer: Horst Gosewehr NIONEX ist ein Unternehmen der DirectGroup Germany www.directgroupgermany.de -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restoring from volumes on multiple storages
On Thu, Feb 26, 2009 at 01:30:36PM +0100, Uwe Schuerkamp wrote: On Wed, Feb 25, 2009 at 05:37:05PM +, Graham Keeling wrote: Hello, Here I'm using bacula-2.2.8. I have a bacula storage daemon, 'Disk 1' (Device 'Disk 1.0') and a bacula storage daemon, 'BPL2Disk 1' (Device 'BPL2Disk 1.0'). There is one backup job allowed per volume. 'BPL2Disk 1' has a full backup and several incrementals. 'Disk 1' has the latest incremental. When I try to restore a job that needs four volumes in total including the latest one on 'Disk 1', it seems as if bacula doesn't bother trying to find the last volume on the second storage. It just tries the first and gives up. I have attached the .bsr file that was produced for the restore job. You can see that it has got the device names correct. The attached file 'log' shows the commands that I entered for the restore job into bconsole, the questions that it asked me, and the messages that bacula logged when it tried to run the restore. It clearly shows that bacula knows where the different volumes are, but it then ignored that information and tried to find all the volumes on 'BPL2Disk 1'. Have a found a bug, a limitation, a feature, or am I doing it wrong? Hi Graham, sorry I cannot help you with your question, but I was under the impression that bacula is able to handle multiple storages and devices in a pool just fine (or are your volumes in different backup pools?). As we'll be adding a 2nd tape library / changer to an existing bacula installation next week I'd be very interested in some comments from the list gurus. Hello, In the Job resource, I had a pool for Fulls, a pool for Incrementals, and a Storage. After leaving it for a couple of weeks, I changed the Job so that it was now using a different Storage. So, it did a single Full backup and several Incrementals to the first Storage, then some more Incrementals on the second Storage. When I run the restore, the bacula director knows perfectly well what Storages the volumes are on, but it creates a single .bsr file and only sends it to the first Storage. The first Storage can't find one of the volumes that has been told about, and the director hangs around waiting for a 'mount request' until the Job times out. I've now looked at the bacula code a bit, and what I think it does is this (bear in mind that I'm not one of the proper bacula development guys, so I might be talking utter rubbish here): When you tell it to restore something, it creates a single .bsr file. Though the director knows the Storage that has each volume, the .bsr file does not contain that information. The director then takes that .bsr file and sends a run job= command back through the bconsole interface, like this (with the %s bits filled in - src/dird/ua_restore.c): run job=\%s\ client=\%s\ restoreclient=\%s\ storage=\%s\ bootstrap=\%s\ files=%u catalog=\%s\ As you can see, the Storage is set outside of the bootstrap file, and I think you can only specify one of them. So, that single Storage gets told to restore from all of the volumes, even if the director knows that some of the volumes shouldn't be there. I suppose that it's possible that if there was a volume in that place with the correct label, it would happily restore from it and give you odd files. One kludgy solution that I may have a go at trying is to make the director write out a separate .bsr file containing the correct set of volumes that it needs for each Storage, and then doing multiple run job= commands. This will set off multiple restores and you'd end up with multiple confirmation messages. It might all go horribly wrong if you're using plugins, mind. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Catalog Cleanup (Remove Pool)
Hi all, Because my Bacula setup keeps evolving over time, so does the specifics of the database. Currently I have 2 pools with volumes and jobs that I want to get rid of. I tried purging and then deleting them (it would be nice if BAT allowed the selection of multiple volumes and it would stop jumping back to the console) but when I look at the bacula DB, it seems like a number of jobs are still present in the database. I've searched for a tool to check integrity or something that would allow me to specify a pool to delete and then clean up any reference in the database to this pool. I've looked to see if the DB schema was documented somewhere (I've found a lot of references but starting a blind delete is probably not a good idea) but so far I've yet to find something. Regards, Berend Dekens -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Catalog Cleanup (Remove Pool)
On Thu, Feb 26, 2009 at 8:55 AM, Berend Dekens ber...@cyberwizzard.nl wrote: Hi all, Because my Bacula setup keeps evolving over time, so does the specifics of the database. Currently I have 2 pools with volumes and jobs that I want to get rid of. I tried purging and then deleting them (it would be nice if BAT allowed the selection of multiple volumes and it would stop jumping back to the console) but when I look at the bacula DB, it seems like a number of jobs are still present in the database. delete pool from a bacula console I've searched for a tool to check integrity or something that would allow me to specify a pool to delete and then clean up any reference in the database to this pool. I've looked to see if the DB schema was documented somewhere (I've found a lot of references but starting a blind delete is probably not a good idea) but so far I've yet to find something. dbcheck from the shell will clean the database. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] use of multiple tape drives
Hi all I have a tape library w/ 2 drives. I have max jobs set to 3 in bacula-dir.conf I have autoselect set to yes in bacula-sd.conf For some reason, when I am trying to run 2 concurrent jobs of the same of different priority, Bacula is only using 1 tape drive. Obviously, I am missing something, but, kinda stumped as to what that might be. Anybody have some pointers on a direction I need to be checking? Thanks! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] backup cifs fileset
Hi All I have to backup a dump of a database which is on a remote disk (cifs) of my client machine (bacula-fd). I succeed to backup something which is on the disk C:/ (disk system of my client) but I don't succeed to backup on the disk J:/ , the remote disk. How can I succeed to do this ? Bacula-dir : FileSet { Name = xxx Enable VSS = no Include { Options { signature = MD5 compression = GZIP } File = C:/test File = J:/test } } Log : Could not stat J:/test: ERR=The system cannot find the path specified Regards, François -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] use of multiple tape drives
Have you precised the directives Max concurrent jobs in the Director, Job, Client, and Storage resources. ? http://www.bacula.org/en/dev-manual/Tips_Suggestions.html#SECTION003817 De : rjustinwilli...@gmail.com [mailto:rjustinwilli...@gmail.com] Envoyé : jeudi 26 février 2009 16:34 À : Bacula-users@lists.sourceforge.net Objet : [Bacula-users] use of multiple tape drives Hi all I have a tape library w/ 2 drives. I have max jobs set to 3 in bacula-dir.conf I have autoselect set to yes in bacula-sd.conf For some reason, when I am trying to run 2 concurrent jobs of the same of different priority, Bacula is only using 1 tape drive. Obviously, I am missing something, but, kinda stumped as to what that might be. Anybody have some pointers on a direction I need to be checking? Thanks! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup cifs fileset
On Thu, Feb 26, 2009 at 10:40 AM, François Mehault francois.meha...@netplus.fr wrote: Hi All I have to backup a dump of a database which is on a remote disk (cifs) of my client machine (bacula-fd). I succeed to backup something which is on the disk C:/ (disk system of my client) but I don’t succeed to backup on the disk J:/ , the remote disk. How can I succeed to do this ? Bacula-dir : FileSet { Name = xxx Enable VSS = no Include { Options { signature = MD5 compression = GZIP } File = C:/test File = J:/test } } Log : Could not stat J:/test: ERR=The system cannot find the path specified This is because remote drives are only mapped for the logged in user and not the SYSTEM user or administrator. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup cifs fileset
François Mehault wrote: Could not stat J:/test: ERR=The system cannot find the path specified The short answer: you can't - not like that anyway. The networked drive you create on windows only exists for the current user or even the current session of that user. Since bacula runs as a service, it will not see the remote drive. You have 3 options here: 1. Mount the remote FS on the backup server and unmount afterwards 2. Install a file daemon on the remote system you want to back up in the first place (unless you have a good reason not to). 3. Run 'net use //yourserver/share J:' or similar to mount the drive using the system account on windows before backupping (use the RunBeforeJobOnClient - or similar - command). Option 2 is the best solution in my opinion as I found remote mounting scripts to be error prone at best. Also, SMB/CIFS is slow as hell - making me guess that a direct FD - SD transport would outperform a backup by a factor 2 at least (if I look at my own network). Regards, Berend Dekens -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup cifs fileset
Thanks a lot John Drescher and Berend Dekens for your help !!! Regards, François -Message d'origine- De : Berend Dekens [mailto:ber...@cyberwizzard.nl] Envoyé : jeudi 26 février 2009 17:04 À : François Mehault Cc : bacula-users@lists.sourceforge.net Objet : Re: [Bacula-users] backup cifs fileset François Mehault wrote: Could not stat J:/test: ERR=The system cannot find the path specified The short answer: you can't - not like that anyway. The networked drive you create on windows only exists for the current user or even the current session of that user. Since bacula runs as a service, it will not see the remote drive. You have 3 options here: 1. Mount the remote FS on the backup server and unmount afterwards 2. Install a file daemon on the remote system you want to back up in the first place (unless you have a good reason not to). 3. Run 'net use //yourserver/share J:' or similar to mount the drive using the system account on windows before backupping (use the RunBeforeJobOnClient - or similar - command). Option 2 is the best solution in my opinion as I found remote mounting scripts to be error prone at best. Also, SMB/CIFS is slow as hell - making me guess that a direct FD - SD transport would outperform a backup by a factor 2 at least (if I look at my own network). Regards, Berend Dekens -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup cifs fileset
We cannot use option 2 because the share is published on a NetApp Filer. We are investigated option 3 but is doesn't seem to work, the job never ends (we are just trying to backup a simple file) -Message d'origine- De : Berend Dekens [mailto:ber...@cyberwizzard.nl] Envoyé : jeudi 26 février 2009 17:04 À : François Mehault Cc : bacula-users@lists.sourceforge.net Objet : Re: [Bacula-users] backup cifs fileset François Mehault wrote: Could not stat J:/test: ERR=The system cannot find the path specified The short answer: you can't - not like that anyway. The networked drive you create on windows only exists for the current user or even the current session of that user. Since bacula runs as a service, it will not see the remote drive. You have 3 options here: 1. Mount the remote FS on the backup server and unmount afterwards 2. Install a file daemon on the remote system you want to back up in the first place (unless you have a good reason not to). 3. Run 'net use //yourserver/share J:' or similar to mount the drive using the system account on windows before backupping (use the RunBeforeJobOnClient - or similar - command). Option 2 is the best solution in my opinion as I found remote mounting scripts to be error prone at best. Also, SMB/CIFS is slow as hell - making me guess that a direct FD - SD transport would outperform a backup by a factor 2 at least (if I look at my own network). Regards, Berend Dekens -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] storage directories based on job names
I have bacula configured to use an attached storage array mounted as /bk_vol_1. I've ran some tests and I have bacula dynamically naming the volumes based on the full, unique, job names using the internal bacula variables. The question I have is can I make the storage director create a new directory for each job name? Example of current file location would be: /bk_vol_1/Inc-ldh0500.p1.2009-02-26_10.07.42.03 Example of the file location I would like to have: /bk_vol_1/ldh0500.p1/Inc-ldh0500.p1.2009-02-26_10.07.42.03 Any insight is appreciated. -WJ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] cloning tapes for offsite storage
Hi List, i'm currently evaluating cloning of tapes with a two drive autochanger. has someone suggestions or experience with that? currently i'm playing with bcopy for cloning and bextract/bscan to read the data from the offsite tape Best Regards Thomas -- [:O]###[O:] -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] regexdir stops bacula backup...
On Thu, 26 Feb 2009 10:00:26 +0100, Thomas Manson said: Nobody has an idea? Bacula uses the File lines as the roots when it looks for files and none of yours are going to find files in /home/user1 etc. Also, you can't do what you want directly with a single Options clause -- you need to exclude everything that doesn't match the regex and include all of the directories above /home/user1/web. Crashing is unexpected though. What does the Bacula log say? Can you repeat it on a local machine without the ssh tunnel? __Martin On Tue, Feb 24, 2009 at 22:19, Thomas Manson dev.mansontho...@gmail.comwrote: I forgot to mention the bacula version : server : 2.4.2-1ubuntu6 client : Redhat ES4 with version : bacula-client-2.4.2-1.el4.i386.rpm Thomas On Tue, Feb 24, 2009 at 22:16, Thomas Manson dev.mansontho...@gmail.comwrote: Hi, I want to backup this kind of directories : /home/user1/web/public_html /home/user2/web/public_html /home/user3/web/public_html /home/user4/web/public_html and subdirectories. I've run a find to list all dir of the home directory and test the following regexp on it with success : /home/.*/web/public_html (with quote in the configuration file). When I run the backup, the job crashes : My SSH tunnel is stopped and when I run another backup, it tells me that the last volume do not have the correct number of byte (can't remember the exact message). If I comment the regexdir, it works normally. here is the fileSet : FileSet { Name = computer.domain.com.FileSet Include { Options { signature = SHA1 compression = GZIP #regexdir= /home/.*/web/public_html } File = /etc File = /home/special/master File = /usr/src/makeHttpd File = /root File = /backup/databases/lastbackup } } Any idea of how I can see what's going wrong? Thx, Thomas. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] re-syncing volumes and catalog
hi! i am looking for a script that would re-sync my volumes and the catalog as it is stored in the database (postgresql 8.1 in my case). The volumes are full, so i try to get rid of some bloated, unnecessary backups. after some manual probing and fiddling with the database, and some auto-pruning (only the jobs, with the files still there even though i thought they should get pruned just the same, as i configured it to do that) i now have a catalog out of sync with the volumes, which are still full. New backups fail with a full error. so i want to get rid of all data on the volumes that is not referneced in the catalog anymore. furthermore i want to be able to get rid of entries in the catalog where the files are not presents in the volumes anymore. i do backups to disk-storage, so the script could do a find and then go over the database and try to sync that with the files present, and then remove the orphaned files. i am not yet familiar with the layout of the database but i dont imagine it would be so complicated to do. i imagine i have to watch out for references to files in the catalog when removing orphans. where would those be found and what should i do about it? /andreas -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] restore to a different client
All- Is it possible to restore a job to a different client, using the restore all option and changing the client using the mod option? I'm using 2.4.4 on Linux with Linux clients. thanks for your time -Steve -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restore to a different client
Steve Hood wrote: All- Is it possible to restore a job to a different client, using the restore all option and changing the client using the mod option? I'm using 2.4.4 on Linux with Linux clients. Yes, that's exactly how. Why do you ask? -- Dan Langille BSDCan - The Technical BSD Conference : http://www.bsdcan.org/ PGCon - The PostgreSQL Conference: http://www.pgcon.org/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restore to a different client
Maybe a better way to ask the question: I'm backing up servers with encryption on the backups. I would like to do a restore to another server, I have copied the PKI files to the new server adjusted the fd and dir for the restore server. when i do restore all and mod and change the restore client. status - director says waiting for fd on the restore server. Dan Langille wrote: Steve Hood wrote: All- Is it possible to restore a job to a different client, using the restore all option and changing the client using the mod option? I'm using 2.4.4 on Linux with Linux clients. Yes, that's exactly how. Why do you ask? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restore to a different client
Steve Hood wrote: Dan Langille wrote: Steve Hood wrote: All- Is it possible to restore a job to a different client, using the restore all option and changing the client using the mod option? I'm using 2.4.4 on Linux with Linux clients. Yes, that's exactly how. Why do you ask? Maybe a better way to ask the question: I'm backing up servers with encryption on the backups. I would like to do a restore to another server, I have copied the PKI files to the new server adjusted the fd and dir for the restore server. when i do restore all and mod and change the restore client. status - director says waiting for fd on the restore server. Yes, that's better. The real issue. ;) Sounds like the problem is not related neither restore nor encryption. Start from scratch. Ensure the client is running. That the Director can contact it (status client), etc. It's most likely comms of some type. -- Dan Langille BSDCan - The Technical BSD Conference : http://www.bsdcan.org/ PGCon - The PostgreSQL Conference: http://www.pgcon.org/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] restore to a different client
I can try more at work tomorrow morning. thank you all its great to know the open source world can make really good products with great support. kudos Dan Langille wrote: Steve Hood wrote: Dan Langille wrote: Steve Hood wrote: All- Is it possible to restore a job to a different client, using the restore all option and changing the client using the mod option? I'm using 2.4.4 on Linux with Linux clients. Yes, that's exactly how. Why do you ask? Maybe a better way to ask the question: I'm backing up servers with encryption on the backups. I would like to do a restore to another server, I have copied the PKI files to the new server adjusted the fd and dir for the restore server. when i do restore all and mod and change the restore client. status - director says waiting for fd on the restore server. Yes, that's better. The real issue. ;) Sounds like the problem is not related neither restore nor encryption. Start from scratch. Ensure the client is running. That the Director can contact it (status client), etc. It's most likely comms of some type. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backup cifs fileset
Could not stat J:/test: ERR=The system cannot find the path specified The short answer: you can't - not like that anyway. The networked drive you create on windows only exists for the current user or even the current session of that user. Since bacula runs as a service, it will not see the remote drive. You have 3 options here: 1. Mount the remote FS on the backup server and unmount afterwards 2. Install a file daemon on the remote system you want to back up in the first place (unless you have a good reason not to). 3. Run 'net use //yourserver/share J:' or similar to mount the drive using the system account on windows before backupping (use the RunBeforeJobOnClient - or similar - command). On Thu, 26 Feb 2009 17:59:11 +0100, François Mehault wrote: We cannot use option 2 because the share is published on a NetApp Filer. We are investigated option 3 but is doesn't seem to work, the job never ends (we are just trying to backup a simple file) if using option 3 the bacula-fd service needs to be run as a user with rights to access the share on netapp. certanly the SYSTEM user has no rights on the netapp. So go to the control panel - administrative tools - services - bacula- fd and change the logon credentials to a user that has a) local administrator rights and b) rights to access the netapp folder. if you wan't check if you can do a net use as SYSTEM user, check this page how to get a console runnign with SYSTEM credentials: http:// blogs.msdn.com/adioltean/articles/271063.aspx - Thomas -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users