Link to home
Start Free TrialLog in
Avatar of Peev711
Peev711

asked on

backup fbird

How can i backup my database from app.
The name of the backup file must be Tdate(now) .
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Peev711,

What type of database?  What app?  Are you just a user or are you trying to modify that app to do this?  If so what language?

What is Tdate(now) suppose to refer to?  If a specific language then which.  This in the Misc zone so you must provide a lot more info.

Let me know if you have any questions or need more information.

b0lsc0tt
Avatar of Peev711
Peev711

ASKER

sorry.database is firebird.language - delphi(pascal).
a want a create a app. that will be make a backup and the backup have a name for example date.
If you using Delphi program you must use service API to implement backup/restore service.
You can name the backup file whatever you want.
ASKER CERTIFIED SOLUTION
Avatar of Nguyen Huu Phuoc
Nguyen Huu Phuoc
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peev711

ASKER

Ok i Try whit this
with IBBackupService1 do
  begin
    ServerName := 'localhost';
    LoginPrompt := False;
    Params.Clear;
    Params.Add('user_name=sysdba');
    Params.Add('password=masterkey');
    Protocol := TCP;
    Active := True;
    try
      Verbose := True;
      Options := [NonTransportable, IgnoreLimbo];
      DatabaseName := '127.0.0.1:D:\OPIT.FDB';
      BackupFile.Clear;
      BackupFile.Add('D:\XX.FBK');
      ServiceStart;
      While not Eof do
        Memo1.Lines.Add(IBBackupService1.GetNextLine);
    finally
      Active := False;
    end;
  end;
But get some error 'connection rejected by remote interface '
I Use FireBird 2.1 delphi 7.
Some Help Please !
Avatar of Peev711

ASKER

I Have GDS32.dll only in system directory
I think you are using different version between gds32.dll and firebird server.
Please copy fbclient.dll from bin directory from firebird install directory to system32 then rename it to gds32.dll
Thank your points!