feat: add sync to blitz make target

This commit is contained in:
Stefan Stammberger 2021-12-05 21:14:25 +01:00
parent 7e2d383ea5
commit 5eb39c52a0
No known key found for this signature in database
GPG key ID: 645FA807E935D9D5
2 changed files with 16 additions and 1 deletions

11
scripts/sync_to_blitz.sh Normal file
View file

@ -0,0 +1,11 @@
# Set the IP of the Raspiblitz
ip=192.168.1.254
# admin password, WARNING only use with a dev machine
password="your_pw_here"
local=.
remote=admin@$ip:/home/admin/blitz_api
# Needs sshpass installed
sshpass -p "$password" rsync -re ssh --progress $local $remote