#!/usr/bin/env bash
#


DEVICE_PATH=$1

if [ -z $DEVICE_PATH ] ; then
	echo "missing 1st argument (DEVICE_PATH), ie. where to download the files"
	exit 1
fi

rsync -avz --progress --ignore-existing tele-rpi5:/mnt/usb/audio/ $DEVICE_PATH

# update from sd-card to the server:
# rsync -avz --progress --ignore-existing ./ tele-rpi5:/mnt/usb/audio/
#
# DOWNLOAD raspberry to sdcard:
# rsync -az -P --ignore-existing --exclude={'switch','switch_BACKUP','zips'} tele-rpi5:/mnt/usb/games/roms/ ./
#
# UPLOAD roms from sd-card to raspberrypi (in the `roms` dir):
# rsync -az -P --ignore-existing --exclude={'switch','switch_BACKUP','zips'} ./ tele-rpi5:/mnt/usb/games/roms/
