Files

21 lines
432 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SOURCE="/opt/git/voyager"
TARGET="/opt/docker/caddy/site/voyager"
rsync -av --delete \
--exclude='.git/' \
--exclude='.gitignore' \
--exclude='*.backup*' \
--exclude='*.pyc' \
--exclude='__pycache__/' \
--exclude='systemd/' \
--exclude='telemetry/' \
--exclude='collectors/' \
--exclude='scripts/' \
--exclude='data/' \
"$SOURCE/" "$TARGET/"
echo "Voyager deployed to $TARGET"