tar \
--exclude='*.gz' \
--exclude='*.mov' \
--exclude='*.mp4' \
--exclude='*.ogv' \
--exclude='*.pdf' \
--exclude='*.tgz' \
--exclude='*.webm' \
--exclude='*.zip' \
--exclude='./catalog/product/cache' \
--exclude='./css_secure' \
--exclude='./js' \
--exclude='./tmp' \
--exclude='./upslabelinv' \
-zcvf ~/${PWD##*/}-$(date '+%Y-%m-%d-%H-%M').tgz .
See also:
Cleanup
Archiving
- All files
- Magento 2
- Magento 1
- without not important for development files
- The
media
folder