How to archive a folder?

tar -zcvf ../${PWD##*/}-$(date '+%Y-%m-%d-%H-%M').tgz .

See also:

Cleanup

Archiving