diff --git a/download_recordings b/download_recordings index 9296d7e..b503c72 100644 --- a/download_recordings +++ b/download_recordings @@ -9,7 +9,9 @@ LOCAL_FOLDER="/Users/Etienne/GitHub/NorthStar-HMI" echo "Starting folder download from Raspberry Pi" # Run scp with sshpass -scp -r "$PI_USER@$PI_HOST:$REMOTE_FOLDER" "$LOCAL_FOLDER" +rsync -avz --progress --ignore-existing\ + "$PI_USER@$PI_HOST:$REMOTE_FOLDER" \ + "$LOCAL_FOLDER" # Check if scp succeeded if [ $? -eq 0 ]; then