how to restore nandroid via adb


Android Enthusiast
my phone has been acting up today..i currently have fresh 2.1.1 and when the phone rings i get a Sorry! has gotten an error blah blah and i would have to reboot over and over again..i boot into recovery and i get Error: run ' restore' via adb! when i try to restore a previous do i do this?