Write a basic Bash script that automates the backup of a critical system directory and sends an alert if the process fails.