Re: [Bacula-users] Clarification on Exchange plugin

2011-05-31 Thread Marc Goujon
This is my client configurations, and in the Plugin directory I have 
exchange-fd.dll.


FileDaemon {# this is me
   Name = sbs-fd
   FDport = 9102# where we listen for the director
   WorkingDirectory = C:/Program Files/Bacula/working
   Pid Directory = C:/Program Files/Bacula/working
   Plugin Directory = C:/Program Files/Bacula/plugins
   Maximum Concurrent Jobs = 10
}

My fileSet is the one you suggested:


FileSet {
   Name = Exchange
   Include {
Options {
 signature = MD5
 compression = GZIP9
 IgnoreCase = yes
 }
   Plugin = exchange:@EXCHANGE/Microsoft Information Store

   }
}




The error I am getting is the following:

bacula-dir Start Backup JobId 59, Job=Backup_Exchange.2011-05-31_10.40.23_29

  Using Device FileStorage


sbs-fd Warning: VSS was not initialized properly. VSS support is disabled. 
ERR=An attempt was made to reference a token that does not exist.

Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 Command 
plugin exchange:@EXCHANGE/Microsoft Information Store requested, but is not 
loaded.
bacula-sd Volume HERE previously written, moving to end of data. Ready to 
append to end of Volume HERE size=12959845363
bacula-dir


I have taken note about the problem with the restore situation, but any help to 
sort this would be great.

marc



On 26/05/11 14:24, Graham Keeling wrote:
 On Thu, May 26, 2011 at 01:50:39PM +0100, Marc Goujon wrote:
 Hello,

 I know this might have been asked millions of times before, but I cannot
 seem to locate clear information via the archives or the official
 documentation and I feel I am almost there.

   From what I have understood, the Exchange plugin is basically that
 exchange-fd.dll file. The first question is: is that enough? I ask this
 because while reading the archives someone mentioned that bpipe plugin
 was needed, however the documentation says The purpose of the plugin is
 to provide an interface to any system program for backup and restore.
 So... a plugin requires another plugin? Is bpipe just allowing to
 include plugin =  expressions in the file sets?

 Secondly, my config for the director (a linux machine) says:

 FileSet {
 Name = Exchange
 #Enable VSS = yes
 Include {

 File = C:\\Program Files\\Microsoft\\Exchange Server\\Mailbox
 Plugin = exchange:@EXCHANGE/Microsoft Information Store

 }

 Exclude {
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox
 Database.edb
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox
 Database.edb
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\Second Storage Group\\Public Folder
 Database.edb

   }
 }

 However when my job fails, I get the following error:

 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange
 Server\Mailbox/First Storage Group/Mailbox Database.edb: ERR=The
 process cannot access the file because it is being used by another process.

 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange
 Server\Mailbox/Second Storage Group/Public Folder Database.edb: ERR=The
 process cannot access the file because it is being used by another process.

Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 
 Command plugin exchange:@EXCHANGE/Microsoft Information Store requested, 
 but is not loaded.


 There must be something I am missing here, as although those files are
 explicitly excluded, they are still causing the error?

 Any tips or docs you can point me to would be greatly  appreciated.
 a) I think you should only use forward slashes ('/') in your filesets, not
 backslashes.

 b) This is the fileset that I used to use:

 FileSet {
Name = Windows:2k3-pt2:Windows Exchange Server data
Include {
  Options {
signature = MD5
compression = GZIP9
IgnoreCase = yes
  }
  Plugin = exchange:/@EXCHANGE/Microsoft Information Store
}
 }

 c) Be very very careful with this. I believe that the plugin doesn't work
 properly. Specifically, it will restore from:
  * A full backup
  * A full backup, plus one incremental.
 But then it may not restore from:
  * A full backup, plus two incrementals.
 And be less and less likely to work for each incremental that you add.
 And without attempting to restore, it will seem as if it is working.

 See bacula bug number 0001647, which has the status closed with the
 resolution won't fix:
 http://marc.info/?l=bacula-bugsm=129690630228142w=2

 You might be OK if you always did Full backups, but that defeats the point.


 --
 vRanger cuts backup time in half-while increasing security.
 With the market-leading solution for virtual backup and recovery,
 you get blazing-fast, 

Re: [Bacula-users] Clarification on Exchange plugin

2011-05-31 Thread Graham Keeling
On Tue, May 31, 2011 at 10:52:21AM +0100, Marc Goujon wrote:
 This is my client configurations, and in the Plugin directory I have
 exchange-fd.dll.
 
 
 FileDaemon {# this is me
   Name = sbs-fd
   FDport = 9102# where we listen for the director
   WorkingDirectory = C:/Program Files/Bacula/working
   Pid Directory = C:/Program Files/Bacula/working
   Plugin Directory = C:/Program Files/Bacula/plugins
   Maximum Concurrent Jobs = 10
 }
 
 My fileSet is the one you suggested:
 
 
 FileSet {
   Name = Exchange
   Include {
Options {
 signature = MD5
 compression = GZIP9
 IgnoreCase = yes
 }
   Plugin = exchange:@EXCHANGE/Microsoft Information Store
 
   }
 }
 
 
 
 
 The error I am getting is the following:
 
 bacula-dir Start Backup JobId 59, Job=Backup_Exchange.2011-05-31_10.40.23_29
 
  Using Device FileStorage
 
 
 sbs-fd Warning: VSS was not initialized properly. VSS support is disabled. 
 ERR=An attempt was made to reference a token that does not exist.
 
 Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 Command 
 plugin exchange:@EXCHANGE/Microsoft Information Store requested, but is not 
 loaded.
 bacula-sd Volume HERE previously written, moving to end of data. Ready to 
 append to end of Volume HERE size=12959845363
 bacula-dir
 
 
 I have taken note about the problem with the restore situation, but any help 
 to sort this would be great.

Sorry, I think I have reached my limit of what I can help you with.
All I can suggest is that you check everything again and if everything looks
right to you, add some debug to relevant areas of the code.
It seems from the last error message that the exchange plugin wasn't loaded.
And upgrade to bacula-5.0.3 if you're not there already.

 marc
 
 
 
 On 26/05/11 14:24, Graham Keeling wrote:
 On Thu, May 26, 2011 at 01:50:39PM +0100, Marc Goujon wrote:
 Hello,
 
 I know this might have been asked millions of times before, but I cannot
 seem to locate clear information via the archives or the official
 documentation and I feel I am almost there.
 
   From what I have understood, the Exchange plugin is basically that
 exchange-fd.dll file. The first question is: is that enough? I ask this
 because while reading the archives someone mentioned that bpipe plugin
 was needed, however the documentation says The purpose of the plugin is
 to provide an interface to any system program for backup and restore.
 So... a plugin requires another plugin? Is bpipe just allowing to
 include plugin =  expressions in the file sets?
 
 Secondly, my config for the director (a linux machine) says:
 
 FileSet {
 Name = Exchange
 #Enable VSS = yes
 Include {
 
 File = C:\\Program Files\\Microsoft\\Exchange Server\\Mailbox
 Plugin = exchange:@EXCHANGE/Microsoft Information Store
 
 }
 
 Exclude {
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox
 Database.edb
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox
 Database.edb
   File = C:\\Program
 Files\\Microsoft\\Exchange\\Mailbox\\Second Storage Group\\Public Folder
 Database.edb
 
   }
 }
 
 However when my job fails, I get the following error:
 
 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange
 Server\Mailbox/First Storage Group/Mailbox Database.edb: ERR=The
 process cannot access the file because it is being used by another process.
 
 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange
 Server\Mailbox/Second Storage Group/Public Folder Database.edb: ERR=The
 process cannot access the file because it is being used by another process.
 
Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 
  Command plugin exchange:@EXCHANGE/Microsoft Information Store requested, 
  but is not loaded.
 
 
 There must be something I am missing here, as although those files are
 explicitly excluded, they are still causing the error?
 
 Any tips or docs you can point me to would be greatly  appreciated.
 a) I think you should only use forward slashes ('/') in your filesets, not
 backslashes.
 
 b) This is the fileset that I used to use:
 
 FileSet {
Name = Windows:2k3-pt2:Windows Exchange Server data
Include {
  Options {
signature = MD5
compression = GZIP9
IgnoreCase = yes
  }
  Plugin = exchange:/@EXCHANGE/Microsoft Information Store
}
 }
 
 c) Be very very careful with this. I believe that the plugin doesn't work
 properly. Specifically, it will restore from:
  * A full backup
  * A full backup, plus one incremental.
 But then it may not restore from:
  * A full backup, plus two incrementals.
 And be less and less likely to work for each incremental that you add.
 And without attempting to restore, it will seem as if it is working.
 

Re: [Bacula-users] Clarification on Exchange plugin

2011-05-31 Thread James Harper
 The error I am getting is the following:
 
 bacula-dir Start Backup JobId 59,
Job=Backup_Exchange.2011-05-31_10.40.23_29
 
   Using Device FileStorage
 
 
 sbs-fd Warning: VSS was not initialized properly. VSS support is
disabled.
 ERR=An attempt was made to reference a token that does not exist.
 
 Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223
Command
 plugin exchange:@EXCHANGE/Microsoft Information Store requested, but
is not
 loaded.
 bacula-sd Volume HERE previously written, moving to end of data.
Ready to
 append to end of Volume HERE size=12959845363
 bacula-dir
 

Questions I should have asked you earlier... this looks a lot like you
are trying to run a 32 bit fd on a 64 bit windows system with those VSS
failures. Is that the case? If so, you probably aren't using Exchange
2003, and I'm pretty sure that the plugin doesn't work on anything
newer.

James


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Clarification on Exchange plugin

2011-05-31 Thread Graham Keeling
On Wed, Jun 01, 2011 at 01:01:39AM +1000, James Harper wrote:
  The error I am getting is the following:
  
  bacula-dir Start Backup JobId 59,
 Job=Backup_Exchange.2011-05-31_10.40.23_29
  
Using Device FileStorage
  
  
  sbs-fd Warning: VSS was not initialized properly. VSS support is
 disabled.
  ERR=An attempt was made to reference a token that does not exist.
  
  Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223
 Command
  plugin exchange:@EXCHANGE/Microsoft Information Store requested, but
 is not
  loaded.
  bacula-sd Volume HERE previously written, moving to end of data.
 Ready to
  append to end of Volume HERE size=12959845363
  bacula-dir
  
 
 Questions I should have asked you earlier... this looks a lot like you
 are trying to run a 32 bit fd on a 64 bit windows system with those VSS
 failures. Is that the case? If so, you probably aren't using Exchange
 2003, and I'm pretty sure that the plugin doesn't work on anything
 newer.

It was supposed to work on 2007 too:
http://www.bacula.org/manuals/en/concepts/concepts/New_Features.html#SECTION00320


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Clarification on Exchange plugin

2011-05-26 Thread Marc Goujon
Hello,

I know this might have been asked millions of times before, but I cannot 
seem to locate clear information via the archives or the official 
documentation and I feel I am almost there.

 From what I have understood, the Exchange plugin is basically that 
exchange-fd.dll file. The first question is: is that enough? I ask this 
because while reading the archives someone mentioned that bpipe plugin 
was needed, however the documentation says The purpose of the plugin is 
to provide an interface to any system program for backup and restore. 
So... a plugin requires another plugin? Is bpipe just allowing to 
include plugin =  expressions in the file sets?

Secondly, my config for the director (a linux machine) says:

FileSet {
   Name = Exchange
   #Enable VSS = yes
   Include {

   File = C:\\Program Files\\Microsoft\\Exchange Server\\Mailbox
   Plugin = exchange:@EXCHANGE/Microsoft Information Store

   }

   Exclude {
 File = C:\\Program 
Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox 
Database.edb
 File = C:\\Program 
Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox 
Database.edb
 File = C:\\Program 
Files\\Microsoft\\Exchange\\Mailbox\\Second Storage Group\\Public Folder 
Database.edb

 }
   }

However when my job fails, I get the following error:

sbs-fd Cannot open C:\Program Files\Microsoft\Exchange 
Server\Mailbox/First Storage Group/Mailbox Database.edb: ERR=The 
process cannot access the file because it is being used by another process.

sbs-fd Cannot open C:\Program Files\Microsoft\Exchange 
Server\Mailbox/Second Storage Group/Public Folder Database.edb: ERR=The 
process cannot access the file because it is being used by another process.

  Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 Command 
plugin exchange:@EXCHANGE/Microsoft Information Store requested, but is not 
loaded.


There must be something I am missing here, as although those files are 
explicitly excluded, they are still causing the error?

Any tips or docs you can point me to would be greatly  appreciated.

marc


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Clarification on Exchange plugin

2011-05-26 Thread Graham Keeling
On Thu, May 26, 2011 at 01:50:39PM +0100, Marc Goujon wrote:
 Hello,
 
 I know this might have been asked millions of times before, but I cannot 
 seem to locate clear information via the archives or the official 
 documentation and I feel I am almost there.
 
  From what I have understood, the Exchange plugin is basically that 
 exchange-fd.dll file. The first question is: is that enough? I ask this 
 because while reading the archives someone mentioned that bpipe plugin 
 was needed, however the documentation says The purpose of the plugin is 
 to provide an interface to any system program for backup and restore. 
 So... a plugin requires another plugin? Is bpipe just allowing to 
 include plugin =  expressions in the file sets?
 
 Secondly, my config for the director (a linux machine) says:
 
 FileSet {
Name = Exchange
#Enable VSS = yes
Include {
 
File = C:\\Program Files\\Microsoft\\Exchange Server\\Mailbox
Plugin = exchange:@EXCHANGE/Microsoft Information Store
 
}
 
Exclude {
  File = C:\\Program 
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox 
 Database.edb
  File = C:\\Program 
 Files\\Microsoft\\Exchange\\Mailbox\\First Storage Group\\Mailbox 
 Database.edb
  File = C:\\Program 
 Files\\Microsoft\\Exchange\\Mailbox\\Second Storage Group\\Public Folder 
 Database.edb
 
  }
}
 
 However when my job fails, I get the following error:
 
 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange 
 Server\Mailbox/First Storage Group/Mailbox Database.edb: ERR=The 
 process cannot access the file because it is being used by another process.
 
 sbs-fd Cannot open C:\Program Files\Microsoft\Exchange 
 Server\Mailbox/Second Storage Group/Public Folder Database.edb: ERR=The 
 process cannot access the file because it is being used by another process.
 
   Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 Command 
 plugin exchange:@EXCHANGE/Microsoft Information Store requested, but is not 
 loaded.
 
 
 There must be something I am missing here, as although those files are 
 explicitly excluded, they are still causing the error?
 
 Any tips or docs you can point me to would be greatly  appreciated.

a) I think you should only use forward slashes ('/') in your filesets, not
backslashes.

b) This is the fileset that I used to use:

FileSet {
  Name = Windows:2k3-pt2:Windows Exchange Server data
  Include {
Options {
  signature = MD5
  compression = GZIP9
  IgnoreCase = yes
}
Plugin = exchange:/@EXCHANGE/Microsoft Information Store
  }
}

c) Be very very careful with this. I believe that the plugin doesn't work
properly. Specifically, it will restore from:
* A full backup
* A full backup, plus one incremental.
But then it may not restore from:
* A full backup, plus two incrementals.
And be less and less likely to work for each incremental that you add.
And without attempting to restore, it will seem as if it is working.

See bacula bug number 0001647, which has the status closed with the
resolution won't fix:
http://marc.info/?l=bacula-bugsm=129690630228142w=2

You might be OK if you always did Full backups, but that defeats the point.


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Clarification on Exchange plugin

2011-05-26 Thread Graham Keeling
On Thu, May 26, 2011 at 03:55:41PM +0100, Marc Goujon wrote:

 a) I think you should only use forward slashes ('/') in your filesets, not
 backslashes.
 
 Replaced all paths for forward slashes.
 However, exactly the same results are obtained. Bak to my original
 question, is the bpipe plugin required to run the exchange plugin?

I don't think so.

d) 
  Fatal error: /home/kern/bacula/k/bacula/src/filed/fd_plugins.c:223 Command 
  plugin exchange:@EXCHANGE/Microsoft Information Store requested, but is 
  not loaded.

I think This 'fatal error' is the big problem. You need the exchange-fd.dll
file somewhere on the client machine, and you need the client conf on the
client machine to have a 'Plugin Directory = C:/some/path/to/the/plugin/dir'
option in it.

e) I think you don't need your includes/excludes. In fact you have included a
directory and then excluded the same directory. Try the fileset that I posted
earlier. That will get rid of the 'process cannot access the file' messages.
And make things simpler.

f) I refer you again to (c) in my first reply, because it is very important.


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Clarification on Exchange plugin

2011-05-26 Thread James Harper
 
 c) Be very very careful with this. I believe that the plugin doesn't
work
 properly. Specifically, it will restore from:
 * A full backup
 * A full backup, plus one incremental.
 But then it may not restore from:
 * A full backup, plus two incrementals.
 And be less and less likely to work for each incremental that you add.
 And without attempting to restore, it will seem as if it is working.
 
 See bacula bug number 0001647, which has the status closed with the
 resolution won't fix:
 http://marc.info/?l=bacula-bugsm=129690630228142w=2
 
 You might be OK if you always did Full backups, but that defeats the
point.
 

I spent some time recently trying to fix this as I was able to reproduce
it. If you are careful it is possible to do the restore but you need to
know what you are doing.

Unfortunately I haven't had time to work on it since then :(

James

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users