new SEND_STABLE_REPORTS configuration setting
This setting controls whether a report email is sent after saving a stable
state; defaults to "yes" for backward compatibility.
intrigeri
14 years ago
5 | 5 |
encrypt email for multiple recipients.
|
6 | 6 |
* EXCLUDES: added .cache, everchanging on LVM setup, and ssh private
|
7 | 7 |
host keys.
|
|
8 |
* configuration: added SEND_STABLE_REPORTS configuration setting that
|
|
9 |
controls whether a report email is sent after saving a stable state;
|
|
10 |
defaults to "yes" for backward compatibility.
|
8 | 11 |
|
9 | 12 |
1.1 (2006 09 16)
|
10 | 13 |
|
105 | 105 |
STABLE_TIME="3"
|
106 | 106 |
EMAIL_ADDRESS="root@`hostname -f`"
|
107 | 107 |
ENCRYPT_EMAIL="no"
|
|
108 |
SEND_STABLE_REPORTS="yes"
|
108 | 109 |
EXCLUDES="*.swp #* *~ *.gpg *.key ifstate adjtime ld.so.cache shadow* \
|
109 | 110 |
.cache .gnupg blkid.tab* aumixrc net.enable mtab backup.d \
|
110 | 111 |
vdirbase run.rev vdir run.rev \
|
|
632 | 633 |
sed 's/-[0-9]*\./-latest\./'`"
|
633 | 634 |
fi
|
634 | 635 |
done
|
635 | |
echo "metche saved a new stable state: $stable." |
|
636 | |
email "$stable"
|
|
636 |
if [ "${SEND_STABLE_REPORTS}" = yes ]; then
|
|
637 |
echo "metche saved a new stable state: $stable." |
|
|
638 |
email "$stable"
|
|
639 |
fi
|
637 | 640 |
}
|
638 | 641 |
|
639 | 642 |
# Print watched directory and files separated by spaces
|
|
766 | 769 |
elif no_change_since "$STABLE_TIME_MIN"; then
|
767 | 770 |
if changed_from "$BACKUP_DIR"/stable-latest.tar.bz2; then
|
768 | 771 |
save_state "stable"
|
769 | |
echo "metche saved a new stable state: stable-${DATE}." |
|
770 | |
email "stable-$DATE"
|
|
772 |
if [ "${SEND_STABLE_REPORTS}" = yes ]; then
|
|
773 |
echo "metche saved a new stable state: stable-${DATE}." |
|
|
774 |
email "stable-$DATE"
|
|
775 |
fi
|
771 | 776 |
debug " removing all saved testing states older" \
|
772 | 777 |
"than STABLE_TIME ($STABLE_TIME)."
|
773 | 778 |
find "$BACKUP_DIR" -name 'testing-*' \
|
34 | 34 |
|
35 | 35 |
# Encrypt emails with GnuPG ? (uncomment next line to do so)
|
36 | 36 |
#ENCRYPT_EMAIL="yes"
|
|
37 |
|
|
38 |
# Email $EMAIL_ADDRESS after saving a stable state
|
|
39 |
SEND_STABLE_REPORTS="yes"
|
37 | 40 |
|
38 | 41 |
# Filename patterns to ignore (space-separated list)
|
39 | 42 |
# GNU tar --exclude pattern matching rules are used:
|