Skip to content

Backup Restore Virtual Server

HarpyWar edited this page May 29, 2017 · 1 revision

Backup files are compatible with Yulli Mur program. It contains all virtual server settings including channels, ACLs, users with certificates.

Backup

// create backup for a server with id = 1
var server1 = instance.GetServer(1);

// backup to a file
server1.Keeper.Backup("mybackup.xml");

// or backup to a string
string xml = server1.Keeper.BackupToXml();

Restore

// deploy previously created backup to a server with id = 2
var server2 = instance.GetServer(2);

// deploy from a file
server2.Keeper.Restore("mybackup.xml");

// or deploy from a string
string xml = File.ReadAllText("mybackup.xml");
string data = server2.Keeper.RestoreFromXml(xml);
Clone this wiki locally