Codebase list metche / 17200dd
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
3 changed file(s) with 15 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
55 encrypt email for multiple recipients.
66 * EXCLUDES: added .cache, everchanging on LVM setup, and ssh private
77 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.
811
912 1.1 (2006 09 16)
1013
105105 STABLE_TIME="3"
106106 EMAIL_ADDRESS="root@`hostname -f`"
107107 ENCRYPT_EMAIL="no"
108 SEND_STABLE_REPORTS="yes"
108109 EXCLUDES="*.swp #* *~ *.gpg *.key ifstate adjtime ld.so.cache shadow* \
109110 .cache .gnupg blkid.tab* aumixrc net.enable mtab backup.d \
110111 vdirbase run.rev vdir run.rev \
632633 sed 's/-[0-9]*\./-latest\./'`"
633634 fi
634635 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
637640 }
638641
639642 # Print watched directory and files separated by spaces
766769 elif no_change_since "$STABLE_TIME_MIN"; then
767770 if changed_from "$BACKUP_DIR"/stable-latest.tar.bz2; then
768771 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
771776 debug " removing all saved testing states older" \
772777 "than STABLE_TIME ($STABLE_TIME)."
773778 find "$BACKUP_DIR" -name 'testing-*' \
3434
3535 # Encrypt emails with GnuPG ? (uncomment next line to do so)
3636 #ENCRYPT_EMAIL="yes"
37
38 # Email $EMAIL_ADDRESS after saving a stable state
39 SEND_STABLE_REPORTS="yes"
3740
3841 # Filename patterns to ignore (space-separated list)
3942 # GNU tar --exclude pattern matching rules are used: