mailinabox/management/daily_tasks.sh

9 lines
330 B
Bash
Executable File

#!/bin/bash
# This script is run daily (at 3am each night).
# Take a backup.
management/backup.py | management/email_administrator.py "Backup Status"
# Run status checks and email the administrator if anything changed.
management/status_checks.py --show-changes | management/email_administrator.py "Status Checks Change Notice"