Updated sendemail for check_updates.sh

Updated rsync for nasbackup.sh
This commit is contained in:
Matthew McKinnon 2015-10-14 15:57:24 +10:00
parent eb9fb79fc1
commit 55de5f1fc1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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