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.

Fail to use PC SDK to backup for the real controller

I have completed the backup in the virtual controller, but when I tried this method for the real controller, it failed and did not show any exception, is there anybody know how to backup for the real controller and storage the backup in pc by pcsdk, thanks!

This is the program I wrote by pcsdk, which has completed backup function for the virtual controller.

using (m = Mastership.Request(controller.Rapid))
{
//choose the backup file storage directory in my pc
FolderBrowserDialog dialog = new FolderBrowserDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
try
{
controller.Backup(dialog.SelectedPath);
}
catch (BaseException baseexception)
{
MessageBox.Show(baseexception.Message);
}
}
}

Answers

  • You need to backup locally to the controller (hd0a:HOME) then copy the file over to a PC using Controller.FileSystem methods namely FileSystem.BeginCopyDirectory.

    Don't forget to request mastership first!