Thanks. Sorry for being stupid and not reading that right. Cheers, Moritz
Sent from my iPhone > On 18 Sep 2015, at 16:50, Clemens Ladisch <clemens at ladisch.de> wrote: > > Moritz Angermann wrote: >> with the online backup capabilities, I was wondering if anyone >> hand ome insight into performing an online restore, e.g. restore >> data from a backup into an active instance. > > <http://www.sqlite.org/backup.html> says: > | The online backup API allows the contents of one database to be copied > | into another database, overwriting the original contents of the target > | database. > > There is not much of a difference between backup and restore. > > The bottom of <http://www.sqlite.org/c3ref/backup_finish.html> has some > scary words about concurrency: > | the application must guarantee that the destination database > | connection is not passed to any other API (by any thread) after > | sqlite3_backup_init() is called and before the corresponding call to > | sqlite3_backup_finish(). > > However, this applies only to the connection object itself, not to the > database. Both source and destination databases are correctly locked > within transactions, and can be open in other connections. > > > Regards, > Clemens > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users