Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

[PC SDK] Restoring Backup Programatically

Hi,

I'm trying to restore a backup with the Controller.Restore function, but I'm having a "Wait for mode failed" exception when the controller restarts. The code i'm using, following the remarks of the restore reference (Requires mastership of Rapid and Configuration domains. Requires UAS_RESTORE grant. Requires Auto mode.) is:

using (Mastership m = Mastership.Request(cont.Rapid))
using (Mastership m2 = Mastership.Request(cont.Configuration))
{
cont.Restore(backup_path);
}

Any idea? Regards,
HM