zip -r filename.zip foldername/

This is how you can zip a folder via SSH on your Linux server. Works on Debian and other servers.