I'm currently working on a script where I have to send an email with this information:
List of files backed up.
What files were recently modified? Say 1 or 2 hours.
Size and location of the backup in the host.
This is what I have done so far:
echo "Message" | mailx -s "Subject" -a path/ofthe/file.tar aaa@mail.com
This sends a mail with attaching the .tar file but I need to know what files where changed, if there were any.