-o PreferredAuthentications=publickey \
-o StrictHostKeyChecking=yes \
-o ClearAllForwardings=yes \
+ -o UserKnownHostsFile=/dev/null \
+ -o CheckHostIP=no \
-p $PORT \
-i ${ssh_key} \
$DEST backup; then
'';
backup_profile_tail = name: profile: ''
- ssh -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup"
+ ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup"
fi # [ "$skip" != "$DEST" ]
##### End ${name} #####
'';
EOF
OUT=$RSYNC_OUTPUT/$LOCAL
- ${pkgs.rsync}/bin/rsync -XAavbrz --fake-super -e "ssh -i ${ssh_key} -p $PORT" --numeric-ids --delete \
+ ${pkgs.rsync}/bin/rsync -XAavbrz --fake-super -e "ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT" --numeric-ids --delete \
--backup-dir=$BAK_BASE/$LOCAL \${
lib.optionalString (part.args != null) "\n ${part.args} \\"}${
lib.optionalString (builtins.length part.exclude_from > 0) "\n --exclude-from=$EXCL_FROM \\"}${