summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@nvandoorn.com>2023-05-31 21:50:48 +0000
committerNick Van Doorn <nick@nvandoorn.com>2023-05-31 21:50:48 +0000
commita16acd5c8997132993bb664a6e817677cb87bfa8 (patch)
tree9f7fe0b53fc0b9d2d9eefdfd94520069e7c3ddfb
parent7605a889795696e5789cb018c9a28f1159d852c9 (diff)
Include SSH key in rsync scripts
-rwxr-xr-xsync-music-local.sh2
-rwxr-xr-xsync-photos-local.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/sync-music-local.sh b/sync-music-local.sh
index 271404b..cf324a0 100755
--- a/sync-music-local.sh
+++ b/sync-music-local.sh
@@ -1 +1 @@
-sudo rsync -uvaO -e "ssh -p 19663" --delete --exclude "*.bmp" /mnt/cluster1/media/music nick@ftpski.com:/mnt/remote/media
+sudo rsync -uvaO -e "ssh -p 19663 -i $HOME/.ssh/id_ed25519" --exclude=".DS_Store" --delete /mnt/cluster1/media/music nick@ftpski.com:/mnt/remote/media
diff --git a/sync-photos-local.sh b/sync-photos-local.sh
index 34511c8..09b3f14 100755
--- a/sync-photos-local.sh
+++ b/sync-photos-local.sh
@@ -1 +1 @@
-sudo rsync -uvaO -e "ssh -p 19663" --exclude=".DS_Store" --delete /mnt/cluster1/home/nick/photos nick@ftpski.com:/mnt/remote/home/nick
+sudo rsync -uvaO -e "ssh -p 19663 -i $HOME/.ssh/id_ed25519" --exclude=".DS_Store" --delete /mnt/cluster1/home/nick/photos nick@ftpski.com:/mnt/remote/home/nick