How to setup alarm recording to FTP

How to setup alarm recording to FTP