aboutsummaryrefslogtreecommitdiffstats
path: root/backup-notes
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-03-29 13:58:06 +0100
committerMatthew Lemon <y@yulqen.org>2023-03-29 13:58:06 +0100
commit2d7340f61037df83eb82318fe88dcbe44b2ae673 (patch)
tree826a5eb70e14e7be0b347ab18b1a6bd5b232d8cb /backup-notes
parent496025799267b35d29b4d7a473f9920079bb1eae (diff)
fixed host key verification failed message with backup script
Diffstat (limited to '')
-rwxr-xr-xbackup-notes2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-notes b/backup-notes
index 6136d1a..bd499dd 100755
--- a/backup-notes
+++ b/backup-notes
@@ -11,4 +11,4 @@ remote_folder="/home/lemon/Backups/Notes"
ssh_key="/home/lemon/.ssh/id_rsa"
# Run rsync command to sync the folders
-rsync -avz -e "ssh -p ${remote_port} -i ${ssh_key}" ${src_folder} ${remote_user}@${remote_host}:${remote_folder}
+rsync -avz -e "ssh -p ${remote_port} -i ${ssh_key} -o \"StrictHostKeyChecking=no\"" ${src_folder} ${remote_user}@${remote_host}:${remote_folder}