How to setup alarm recording to SD card

How to setup alarm recording to SD card