From: Ivan A. <int...@un...> - 2014-06-03 08:46:57
|
https://drive.google.com/file/d/0BxNlh1_CctC4NDhIRnh2VHBDbnM/edit?usp=sharing - it`s an empty database so "leaking" is not really an issue :) Here's the restore function (in case it helps) using(io.FileStream BackupInputStream = new FileStream(BackUpPath,FileMode.Open)) { fbServer.FbStreamingRestore restore = new fbServer.FbStreamingRestore(); restore.ConnectionString = getConnectionString(Host, User, Pass, Path, Port, 32767); SetRestoreOptions(Ovr, DeactivateIndexes, NoShadows, NoValidity, OneAtTime, UseAllSpace, PageSize, restore); restore.InputStream = BackupInputStream; restore.Execute(); return true; } Using a PageSize of 4096 or 16384 (both don't work). Options are Replace and NoShadows (defaults, stuck since the end of time). I'm willing to help debug if I can get my hands on sources :) 2014-06-03 8:50 GMT+03:00 Jiri Cincura <di...@ci...>: > On Mon, Jun 2, 2014 at 10:21 PM, Ivan Arabadzhiev > <int...@un...> wrote: > > Should anything be done to the stream apart from construction? Any > special > > modes or anything? > > Nope. It should just work. > > The restore is tricky 8-). It kept me 3x more time to do it than > backup. I'm wondering whether it's possible to put the backup > somewhere so I can try it? > > -- > Jiri {x2} Cincura > http://blog.cincura.net/ | http://www.ID3renamer.com > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > |