zip#
zip all contents of a directory, preserving directory structure#
zip -r foo.zip path/*as above, with encryption (prompt for password)#
zip -er foo.zip path/*as above, providing the password in-line (i.e. in a script)#
zip -er -P my_password foo.zip path/*