Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 505 Bytes

services-backup.md

File metadata and controls

22 lines (17 loc) · 505 Bytes

Services - Backup

Steps

  • Install FirebirdSql.Data.FirebirdClient from NuGet.
  • Add using FirebirdSql.Data.Services;.

Code

var backup = new FbBackup("database=localhost:demo.fdb;user=sysdba;password=masterkey");
backup.BackupFiles.Add(new FbBackupFile(@"C:\backup.fbk"));
//backup.Options = ...
backup.Verbose = true;
backup.ServiceOutput += (sender, e) => Console.WriteLine(e.Message);
backup.Execute();

More

  • FbRestore
  • FbStreamingBackup
  • FbStreamingRestore