Hallo Zusammen,
ich erzeuge im laufenden Betrieb über TFDIBBackup ein Bakup und anschließend ein Restore über TFDIBRestore, das funktioniert perfekt.
Strarte ich die Aktion erneut, kommt die Fehlermledung:
BackupError:[FireDAC][Phys][FB]Client attempted to attach unencrypted but wire encryption is required
Wenn die Anwendung neu starte, funktioniert es wieder.
Das setze ich einmalig.
Delphi-Quellcode:
// set Backup
FDIBBackup1.UserName := TFDPhysFBConnectionDefParams(con.Params).UserName;
FDIBBackup1.Password := TFDPhysFBConnectionDefParams(con.Params).Password;
FDIBBackup1.Host := TFDPhysFBConnectionDefParams(con.Params).Server;
FDIBBackup1.Protocol := TFDPhysFBConnectionDefParams(con.Params).Protocol;
FDIBBackup1.Port := TFDPhysFBConnectionDefParams(con.Params).Port;
FDIBBackup1.Database := TFDPhysFBConnectionDefParams(con.Params).Database;
FDIBBackup1.BackupFiles.Clear;
FDIBBackup1.BackupFiles.Add(INIBackupFile);
// set Restore
FDIBRestore1.UserName := TFDPhysFBConnectionDefParams(con.Params).UserName;
FDIBRestore1.Password := TFDPhysFBConnectionDefParams(con.Params).Password;
FDIBRestore1.Host := TFDPhysFBConnectionDefParams(con.Params).Server;
FDIBRestore1.Protocol := TFDPhysFBConnectionDefParams(con.Params).Protocol;
FDIBRestore1.Port := TFDPhysFBConnectionDefParams(con.Params).Port;
FDIBRestore1.Database := INIRestoreFile;
FDIBRestore1.BackupFiles.Clear;
FDIBRestore1.BackupFiles.Add(INIBackupFile);
Danach Backup und Restore. Das funktioniert genau einmal
Delphi-Quellcode:
FDIBBackup1.Backup;
FDIBRestore1.Restore;
Hat jemand eine Idee?