Restoring a Database from Multiple Backup Files
Go Up to Restoring Databases
InterBase allows you to restore a database from multiple files. The following code example shows how to do this.
procedure TForm1.Button3Click(Sender: TObject); begin with IBRestoreService1 do begin ServerName := 'Poulet'; LoginPrompt := False; Params.Add('user_name=sysdba'); Params.Add('password=masterkey'); Active := True; try Verbose := True; Options := [Replace, UseAllSpace]; PageBuffers := 3000; PageSize := 4096; BackupFile.Add('c:\temp\employee1.gbk'); BackupFile.Add('c:\temp\employee2.gbk'); BackupFile.Add('c:\temp\employee3.gbk'); DatabaseName.Add('employee.gdb'); ServiceStart; While not Eof do Memo1.Lines.Add(GetNextLine); finally Active := False; end; end; end;