Answer the question
In order to leave comments, you need to log in
How to set up automatic RSA key password entry?
Hello. You need to set up rsync backup from NAS running Nas4Free to Synology NAS. I configured SSH authorization by RSA key on N4F, the key is password protected. I found a script running on Synology to solve the specified task:
#!/bin/sh
USER="username"
SERVER="server.name"
PORT="22"
SSHID="/volume1/homes/admin/backups/websites/.ssh/id_rsa"
SOURCE="/home/username/public_html/"
TARGET="/volume1/homes/admin/backups/websites/sitename/"
LOG="/volume1/homes/admin/backups/websites/logs/sitename.log"
/usr/syno/bin/rsync -avz --delete --progress -e "ssh -p $PORT -i $SSHID" $USER@$SERVER:$SOURCE $TARGET >> $LOG 2>&1
rsync -h > /volume1/homes/admin/backups/websites/rsync_help.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question