TIBCBackupService : how to use it

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

TIBCBackupService : how to use it

Post by dehorter » Wed 20 Jan 2010 08:13

Hi

I have some pb to implemente this componant whereas it seems not very complicated...

I success to active the componant after connection to my database, but it didn't find the result of the backup ????

I didn't find an example of this componant of your demo,
is it possible to add it for a next demo ?

regards

olivier

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 21 Jan 2010 09:25

Call the Attach method to connect to the server. Then call the ServiceStart method to create backup. The backup is created in a file specified in the BackupFile property (on the server side).

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Post by upscene » Tue 26 Jan 2010 10:00

Plash wrote:Call the Attach method to connect to the server. Then call the ServiceStart method to create backup. The backup is created in a file specified in the BackupFile property (on the server side).
how do you specify the backup file size? With IBX, this would be possible by adding "=" behind the filename.

Does IBDac support this, if so, how?

When I try to do that, I get a "clumplet too long" error.

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Post by upscene » Thu 04 Feb 2010 14:57

upscene wrote:
Plash wrote:Call the Attach method to connect to the server. Then call the ServiceStart method to create backup. The backup is created in a file specified in the BackupFile property (on the server side).
how do you specify the backup file size? With IBX, this would be possible by adding "=" behind the filename.

Does IBDac support this, if so, how?

When I try to do that, I get a "clumplet too long" error.
Any news on this?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 05 Feb 2010 12:11

We have fixed this problem. The fix will be included in the next build of IBDAC.

dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

Post by dehorter » Tue 09 Mar 2010 14:06

hi

I tried but :oops:


I wrte this code on "beforedatabaseconnection"

Code: Select all

       GestBag_Backup.ClientLibrary := BaseBagueursFB.ClientLibrary;
       GestBag_Backup.Database := BaseBagueursFB.Database;
       GestBag_Backup.Server := BaseBagueursFB.Server;
       GestBag_Backup.Username := BaseBagueursFB.Username;
       GestBag_Backup.Password := BaseBagueursFB.Password;
       GestBag_Backup.BackupFile.Clear;
       GestBag_Backup.BackupFile.Text := 'C:\Users\EG\Documents\_test.fbk';
          GestBag_Backup.Attach;
          //GestBag_Backup.Active := True;
          GestBag_Backup.ServiceStart;
may i something wrong ?


regards

dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

Post by dehorter » Mon 05 Apr 2010 07:59

no answer :(

there is something wrong in the code ?

olivier

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 06 Apr 2010 08:25

Try to use the following code:

Code: Select all

  GestBag_Backup.Attach;
  GestBag_Backup.ServiceStart;
  while GestBag_Backup.IsServiceRunning do
  begin
    Application.ProcessMessages;
  end;
  GestBag_Backup.Detach;

dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

Post by dehorter » Tue 06 Apr 2010 08:43

Thanks for your answer

I received this message for the first time (so better to understand) :
EIBCerror with the message : cannot open backup file C:\Users\EG\Documents\_test.fbk
this helps you ?
where is my mistake ? :oops:

regards

olivie

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 06 Apr 2010 10:09

This is an InterBase server error.
Please specify the exact version of your InterBase server.

dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

Post by dehorter » Tue 06 Apr 2010 11:49

Hi

in fact i use firebird 2.1

regards

olivier

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 07 Apr 2010 08:57

It seems that this problem is connected with the specificity of Firebird server work and not with IBDAC.
Please try to use standard Delphi InterBase Service components and check if the problem still exists. IBDAC IBC Service components have interface that is compatible with standard Delphi InterBase Service components.

tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

Post by tsteinmaurer » Wed 07 Apr 2010 11:54

Is C:\Users\EG\Documents\ a valid directory on the server?

Thomas

dehorter
Posts: 45
Joined: Fri 16 Oct 2009 13:53

Post by dehorter » Wed 07 Apr 2010 12:36

Hi

Dimon
i tried to use the IBBackupService but i receive during the execution this message :
Interbase library gds32.dll not found in the directory, please install interbase to use this functionnality
I prefere not install interbase, maybe conflict could be occur with firebird !!


Thomas :
Yes this is a valid directory, but anyway i'll test with a public directory (just in case) :wink:


reagrds

olivier

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 08 Apr 2010 07:31

It seems that this problem is connected with the Firebird client library work.

Post Reply