csharp
using System;
using VelocityDb;
using VelocityDb.Session;
class Program
{
static void Main(string[] args)
{
using (SessionNoServer session = new SessionNoServer("path/to/database"))
{
session.BeginUpdate();
session.BackupDatabase("path/to/backup/database");
session.Commit();
}
}
}
csharp
using System;
using VelocityDb;
using VelocityDb.Session;
class Program
{
static void Main(string[] args)
{
using (SessionNoServer session = new SessionNoServer("path/to/database"))
{
session.BeginUpdate();
session.Close();
session.RecoverDatabase("path/to/backup/database");
session.Commit();
}
}
}