Firebird .NET: Database backup not working (small file)

Posted by Norbert on Stack Overflow See other posts from Stack Overflow or by Norbert
Published on 2010-03-16T17:06:52Z Indexed on 2010/03/16 17:11 UTC
Read the original article Hit count: 633

Filed under:
|

Hi,

I am trying to backup my Firebird 2.5 database file by code:

FbBackup backupSvc = new FbBackup();
backupSvc.ConnectionString = MyConnectionManager.buildConnectionString();
backupSvc.BackupFiles.Add(new FbBackupFile(backupPathFilenameAndExtension, 2048));
backupSvc.Verbose = true;
backupSvc.Options = FbBackupFlags.IgnoreLimbo;

backupSvc.Execute();

The database gets saved to the specified directory. However, the file saved file is only 168kB large. The original database is nearly 7MB in size. What goes wrong?

Thanks, Norbert

© Stack Overflow or respective owner

Related posts about firebird

Related posts about database-backups