#!/bin/sh . /opt/hu.dwim.number-toss/workspace/hu.dwim.number-toss/bin/environment.sh ERROR_LOG_FILE="${DWIM_LOG_DIRECTORY}/error.log" if [ -s ${ERROR_LOG_FILE} ]; then head -2000 ${ERROR_LOG_FILE} | mail --subject "hu.dwim.number-toss error log" admin@dwim.hu fi # keep a mirror of the backup dir on the nafi dev machine #sudo -u alendvai rsync --quiet --recursive --links --times --omit-dir-times --progress /opt/hu.dwim.number-toss/backup/ alendvai@nafi42-dev.okm.gov.hu:/var/backups/hu.dwim.number-toss #sudo -u alendvai rsync --quiet --progress --recursive --size-only --links --omit-dir-times --rsh='ssh -q -p 222 -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o "CheckHostIP no" -o "KbdInteractiveAuthentication no" -o "PasswordAuthentication no"' /opt/hu.dwim.number-toss/backup/ backup@jokaimor.dyndns.org:hu.dwim.number-toss/ sudo -u alendvai rsync --quiet --progress --recursive --size-only --links --omit-dir-times --rsh='ssh -q -p 22 -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o "CheckHostIP no" -o "KbdInteractiveAuthentication no" -o "PasswordAuthentication no"' /opt/hu.dwim.number-toss/backup/ backup@lendvai.name:hu.dwim.number-toss/