The first thing to do when you become a ransomware attack victim is to stop spreading the infection of ransomware to other computers that are not infected. Then restore the backup data. However, before doing so, you should eliminate the ransomware first from the infected system. This is typically done by resetting the system to factory defaults. If the operating system is Windows then one can also recover the file with the Windows System Restore utility.