17 lines
331 B
Bash
Executable File
17 lines
331 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='systemd/' \
|
|
--exclude='telemetry/' \
|
|
--exclude='scripts/' \
|
|
"$SOURCE/" "$TARGET/"
|
|
|
|
echo "Voyager deployed to $TARGET"
|