#!/bin/bash set -e REMOTE="root@minifridge" REMOTE_DIR="/mnt/user/appdata/sheepflix" echo "syncing to $REMOTE:$REMOTE_DIR..." rsync -avz --exclude '.git' --exclude 'testdata' --exclude 'sheepflix' \ ./ "$REMOTE:$REMOTE_DIR/" echo "rebuilding on remote..." ssh "$REMOTE" "cd $REMOTE_DIR && docker compose up -d --build" echo "done."