-
Notifications
You must be signed in to change notification settings - Fork 1
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.
// 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();
// 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);