Thanks !! Ivan, FirebirdSql.Data.Services is what I a looking for. So this snippet seems to work .. (compiles) have to test it more,though.
private void barButtonBackup_ItemClick(object sender, ItemClickEventArgs e) { string connectionString = Properties.Settings.Default.BizpracDevelopment; //string backupFile = "bpnt_" + DateTime.Now.ToString("f") + ".fbk"; FbBackup backupSvc = new FbBackup(); backupSvc.ConnectionString = connectionString; backupSvc.BackupFiles.Add(new FbBackupFile(@"c:\testdb.gbk", 2048)); backupSvc.Verbose = true; backupSvc.Options = FbBackupFlags.IgnoreLimbo; backupSvc.ServiceOutput += new ServiceOutputEventHandler(FbServiceOutput); backupSvc.Execute(); } static void FbServiceOutput(object sender, ServiceOutputEventArgs e) { Console.WriteLine(e.Message); } Bjoern, On 13/04/2010 16:15, Ivan Arabadzhiev wrote: > > Hi, > First of all - > http://sourceforge.net/projects/firebird/files/firebird-net-provider/1.7.2/FirebirdNETProvider-1.7.2-Doc.7z/download > is about as latest as "documentation" gets, there was a site with examples > but I can`t seem to find it atm; > > Second, The "FbBackup" seems to be part of FirebirdSql.Data.Services (I > had my doubts but I double checked the documentation), which is why you > get the error you pasted. > > Last but not least - you know that this utilizes the Services API and > therefore creates the backup at the server? I wrote a backup scheduler of > my own and since I`m to lazy for native code interaction (to "steal" a > part of gbak source) - The best solution I was able to come up with was to > use the precompiled binary itself :) > > > BTW If you need backup scheduling - FIBS is not really a bad tool (even > though it is written in delphi) > >> Hi, >> I would like to embed Backup and Restore functionality in my app. >> I found an older 1.7 snippet. But this one does not work.. >> >> using FirebirdSql.Data.FirebirdClient; >> using FirebirdSql.Data.Isql; >> ............ >> FbBackup backupSvc = new FbBackup(); >> >> THE type or namespace could not be found ... >> ============================================ >> ... >> backupSvc.Execute(); >> >> Is anybody willing to share a working snippet ? >> Thanks in advance, Bjoern >> Beside where can I find the latest examples/snippets and API >> documentation ? >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Firebird-net-provider mailing list >> Firebird-net-provider@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider