How to archive all Magento 1 files excluding not important for development ones?

tar \
	--exclude='*.gz' \
	--exclude='*.mov' \
	--exclude='*.mp4' \
	--exclude='*.ogv' \
	--exclude='*.pdf' \
	--exclude='*.tgz' \
	--exclude='*.webm' \
	--exclude='*.zip' \
	--exclude='./.cache' \
	--exclude='./.easyssl_backup' \
	--exclude='./.git' \
	--exclude='./.github' \
	--exclude='./.gnupg' \
	--exclude='./.sucuriquarantine' \
	--exclude='./.well-known' \
	--exclude='./__MACOSX' \
	--exclude='./adminer.php' \
	--exclude='./cgi-bin' \
	--exclude='./database' \
	--exclude='./dev' \
	--exclude='./dist' \
	--exclude='./export' \
	--exclude='./includes/src' \
	--exclude='./magmi' \
	--exclude='./media/catalog/product/cache' \
	--exclude='./media/css_secure' \
	--exclude='./media/js' \
	--exclude='./media/tmp' \
	--exclude='./media/upslabelinv' \
	--exclude='./ow_scripts' \
	--exclude='./phpMyAdmin' \
	--exclude='./sucuri-backups' \
	--exclude='./test' \
	--exclude='./tmp' \
	--exclude='./var' \
	--exclude='./wp' \
	-zcvf ../${PWD##*/}-$(date '+%Y-%m-%d-%H-%M').tgz .

See also:

Cleanup

Archiving