I am writing a script to tar a group of files andthen email it to a an account I have setup. The problem is when I use mail like this
mail -s "Backup tar"
backup@mydomain.com < /var/backups/backup.tar
it puts the tar into the boy of he message. How do I get it to attach in a cmd line properly. No I don't want to start a debate on if the body is an attachment
I just want to it to show up as an attachment. Thanks a bunch for reading.