#!/bin/sh AGENT=/root/agent.sh # $AGENT has to belong to me (root) and must not be writeable. # Otherwise: cancel! [ -O $AGENT -a ! -w $AGENT ] || exit 255 # If everything is okay, pars and allow connection to # SSH agent . $AGENT /usr/bin/rsync -rlHpt --delete /Users/ backupuser@backuphost:/export/backup