#!/bin/sh # 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.home/backup/ alendvai@nafi42-dev.okm.gov.hu:/var/backups/hu.dwim.home #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.home/backup/ backup@jokaimor.dyndns.org:hu.dwim.home/ # server is gone #sudo -u alendvai rsync --quiet --progress --recursive --size-only --links --omit-dir-times --exclude="wal-up-to-*" --exclude="201[012]*-dwim.hu-main-*" --rsh='ssh -q -p 22 -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o "CheckHostIP no" -o "KbdInteractiveAuthentication no" -o "PasswordAuthentication no"' /opt/hu.dwim.home/backup/ backup@lendvai.name:hu.dwim.home/