Updated sendemail for check_updates.sh
Updated rsync for nasbackup.sh
This commit is contained in:
parent
eb9fb79fc1
commit
55de5f1fc1
@ -140,7 +140,7 @@ See the logfile for more info: vim $LOGFILE
|
||||
|
||||
Regards. " >/tmp/servermail.msg
|
||||
|
||||
cat /tmp/servermail.msg | sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[$THISSERVER] server may need some updates applied"
|
||||
sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[$THISSERVER] server may need some updates applied" -m "$(cat /tmp/servermail.msg)"
|
||||
|
||||
echo "`date` [MESSAGE] Packages need updating email sent to $MAILTO" >> $LOGFILE
|
||||
fi
|
||||
|
@ -18,7 +18,7 @@ echo "* Start Backup `date` *" >> $LOG 2>&1
|
||||
echo "****************************************************************" >> $LOG 2>&1
|
||||
|
||||
#rsync -urtlPO --delete /data/ /mnt/nas/ >> $LOG 2>&1
|
||||
rsync -urtlO --delete --partial /data/ /mnt/nas/ >> $LOG 2>&1
|
||||
rsync -urtlOv --partial --delete /data/ /mnt/nas/ >> $LOG 2>&1
|
||||
|
||||
echo "****************************************************************" >> $LOG 2>&1
|
||||
echo "* Finished Backup `date` *" >> $LOG 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user