praeclarum / sqlite-net

Simple, powerful, cross-platform SQLite client and ORM for .NET
MIT License
4.06k stars 1.42k forks source link

Restore/Backup Database #931

Open Zujaj opened 4 years ago

Zujaj commented 4 years ago

By using SQLiteConnection.Backup(string destinationDatabasePath, string databaseName = "main") , we can create a backup of the database.

  1. Is there a way to encrypt the saved backup?
  2. What is the method to restore this backup?
hualiao commented 4 years ago

I also has this question, finally decide to copy file to backup, before copy file I close all connection to prevent problem.

ivanteles commented 3 years ago

does anyone have any working examples?