# Fail to use PC SDK to backup for the real controller

**URL:** <https://tech-community.robotics.abb.com/t/fail-to-use-pc-sdk-to-backup-for-the-real-controller/9289>\
**Category:** Developer Tools\
**Tags:** real-controller, pc-sdk, backup\
**Created:** [January 21, 2020, 10:07am UTC](https://tech-community.robotics.abb.com/t/fail-to-use-pc-sdk-to-backup-for-the-real-controller/9289 "2020-01-21T10:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reinhardt](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/reinhardt/32/2123_2.png) [@Reinhardt](https://tech-community.robotics.abb.com/u/Reinhardt)\
**Post date:** [January 21, 2020, 10:07am UTC](https://tech-community.robotics.abb.com/t/fail-to-use-pc-sdk-to-backup-for-the-real-controller/9289/1 "2020-01-21T10:07:42Z")

</div>

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);  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![scottdf93](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@scottdf93](https://tech-community.robotics.abb.com/u/scottdf93)\
**Post date:** [October 26, 2020, 4:54pm UTC](https://tech-community.robotics.abb.com/t/fail-to-use-pc-sdk-to-backup-for-the-real-controller/9289/2 "2020-10-26T16:54:36Z")

</div>

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!
