send serial monitor to server and save data in hdd
You could look and see if there was any data logging libraries already written or you would need to develop a function that wrote to a file held on an SD card.  There are plenty of SD libraries.

If you mean you have a computer connected to the serial connection from the ATMega then there are probably logging programs out there, some terminal monitors save what they receive.