Adjust file 'logrotate.conf.sample'.
This commit is contained in:
parent
b8287a003e
commit
642a5c84d1
@ -11,9 +11,6 @@
|
||||
|
||||
filesystem=`df`
|
||||
|
||||
#label=`tune2fs -l $backup_partition | grep -e "Filesystem volume name:" | awk '{print$4}'`
|
||||
#label="Root filesystem - /backup"
|
||||
|
||||
content_type='Content-Type: text/plain;\n charset="utf-8"'
|
||||
|
||||
extra_admin_email=""
|
||||
@ -26,6 +23,7 @@
|
||||
#from_address="root@`hostname -f`"
|
||||
#company="Warenform INET"
|
||||
#logFile=/backup/log/rsync.log
|
||||
#label
|
||||
|
||||
durations_top="\nBackup durations of the certain hosts:\n"
|
||||
durations="${durations_top}`cat $logDuration`\n"
|
||||
@ -36,7 +34,7 @@
|
||||
|
||||
echo -e "To:${admin_email}\n${content_type}\nSubject:Backup $company -- $datum\n$filesystem\n\nBackup resource / Label: $label\n$durations\n\n$send\n" | /usr/sbin/sendmail -F "BACKUP $company" -f $from_address $admin_email
|
||||
if [[ -n "$extra_admin_email" ]]; then
|
||||
echo -e "To:${extra_admin_email}\n${content_type}\nSubject:Backup $company -- $datum\n$filesystem\n\ndisk label: $label\n$durations\n\n$send\n" | /usr/sbin/sendmail -F "BACKUP $company" -f $from_address $extra_admin_email
|
||||
echo -e "To:${extra_admin_email}\n${content_type}\nSubject:Backup $company -- $datum\n$filesystem\n\nBackup resource / Labe: $label\n$durations\n\n$send\n" | /usr/sbin/sendmail -F "BACKUP $company" -f $from_address $extra_admin_email
|
||||
fi
|
||||
|
||||
declare -i error=`grep -e"\[ERROR" $logFile | wc -l`
|
||||
|
Loading…
Reference in New Issue
Block a user