Compare commits
No commits in common. "81df6aaa8f5f3c8cea4e762833aca7f80f3cc83a" and "22b968a321764b2dc8bdc52e1e12bb337dc4041e" have entirely different histories.
81df6aaa8f
...
22b968a321
1 changed files with 2 additions and 3 deletions
|
@ -5,8 +5,7 @@ mkdir -p /tmp/mail-logger-big
|
|||
|
||||
cp /var/log/borg-cron.log /tmp/mail-logger-big
|
||||
cp /var/log/btrfs-raid-status.log /tmp/mail-logger
|
||||
cp /var/log/btrfs-scrub.log /tmp/mail-logger
|
||||
#cp /var/log/snowboard-download.log /tmp/mail-logger
|
||||
cp /var/log/snowboard-download.log /tmp/mail-logger
|
||||
|
||||
cat /tmp/mail-logger/* >> /tmp/mail-logger-meta/combined.log
|
||||
cat /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/combined.log
|
||||
|
@ -22,7 +21,7 @@ If you want to see the complete logs, open the attachment of this E-Mail.\n\n\
|
|||
tail -vn 300 /tmp/mail-logger/* >> /tmp/mail-logger-meta/mail.txt
|
||||
tail -vn 50 /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/mail.txt
|
||||
|
||||
mail-script "logs@cscherr.de" "logs@cscherr.de" "weekly mail report for $(hostname) $(date +"%Y-%m-%d")" /tmp/mail-logger-meta/combined.log < /tmp/mail-logger-meta/mail.txt | sendmail -oi -t
|
||||
mail-script "logs@cscherr.de" "logs@cscherr.de" "daily mail report for $(hostname) $(date +"%Y-%m-%d")" /tmp/mail-logger-meta/combined.log < /tmp/mail-logger-meta/mail.txt | sendmail -oi -t
|
||||
|
||||
rm -rf /tmp/mail-logger*
|
||||
rm -rf /tmp/mail-logger-meta
|
||||
|
|
Loading…
Add table
Reference in a new issue