tar directory mail attachment redhat

July 11, 2011

How do we tar a directory and mail it as an attachment in redhat?

tar -cf data.tar .; mutt -s "Logs" -a ./data.tar person@example.com 

tar directory mail attachment redhat