C-Duv / sysadmin-scripts

Collection of scripts used for system administration.
GNU General Public License v3.0
9 stars 4 forks source link

duplicityBackup: only print output on error #5

Closed C-Duv closed 10 years ago

C-Duv commented 10 years ago

When running that script by cron, an e-mail is sent (by cron) containing the script output. It there is no output, no e-mail is sent. Then it could be useful if the script where only outputting on error, that way no e-mail would be sent for successful backups.

When an error occurs the whole output would be printed (including previous successful/debug lines). That setting would be disabled by default and configurable.