# ssh-keygen -t rsa -b 4096 -f /backup/etc/HOST-rsync-rsa.pub
# scp /backup/etc/HOST-rsync-rsa.pub REMOTE_HOST:~/.ssh
cat ~/.ssh/HOST-rsync-rsa.pub >> ~/.ssh/authorized_keys
rsync -avuHx -e "ssh -i /backup/etc/HOST-rsync-rsa" REMOTE_USER@REMOTE_HOST:/remote/dir/ /this/dir/
#!/bin/sh RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh RSYNC_OPTIONS="-avuHx" RSYNC_KEY=/backup/etc/HOST-rsync-rsa RSYNC_USER=remoteuser REMOTE_HOST=remotehost REMOTE_PATH=/remote/dir/ LOCAL_PATH=/this/dir/ $RSYNC $RSYNC_OPTIONS -e "$SSH -i $RSYNC_KEY" $RSYNC_USER@$RSYNC_HOST:$REMOTE_PATH $LOCAL_PATH
Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=RSYNC