configs/bin/dap-update
bin/dap-updateRaw
1#!/usr/bin/env bash
2#
3
4
5DEVICE_PATH=$1
6
7if [ -z $DEVICE_PATH ] ; then
8 echo "missing 1st argument (DEVICE_PATH), ie. where to download the files"
9 exit 1
10fi
11
12rsync -avz --progress --ignore-existing tele-rpi5:/mnt/usb/audio/ $DEVICE_PATH
13
14# update from sd-card to the server:
15# rsync -avz --progress --ignore-existing ./ tele-rpi5:/mnt/usb/audio/
16#
17# DOWNLOAD raspberry to sdcard:
18# rsync -az -P --ignore-existing --exclude={'switch','switch_BACKUP','zips'} tele-rpi5:/mnt/usb/games/roms/ ./
19#
20# UPLOAD roms from sd-card to raspberrypi (in the `roms` dir):
21# rsync -az -P --ignore-existing --exclude={'switch','switch_BACKUP','zips'} ./ tele-rpi5:/mnt/usb/games/roms/