Updates download_recordings with faster protocol

This commit is contained in:
Etienne Chassaing 2025-08-11 11:54:23 +02:00
parent 5ac459a0d5
commit 5bc81789e5

View File

@ -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