Vanguard media stack: ingest, copyparty, Syncthing, normalize sweep, Authentik, Jellyfin + Vanguard Metadata plugin, MariaDB, Gitea, bot runtime

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 15:43:30 -05:00
commit c602a6ff52
66 changed files with 4229 additions and 0 deletions

19
home/rclone-archive.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Run nightly on the HOME box. Pulls originals older than 15 days off the server,
# moves originals AND their .src raw files; nothing is left behind.
# Setup once: rclone config -> new remote "vanguard", type sftp, host media.example.com, user debian, key file.
set -euo pipefail
REMOTE=vanguard
ARCHIVE=/mnt/archive # local HDD
MIN_AGE=15d
LOG=/var/log/vanguard-archive.log
for sub in streams clips; do
rclone move "$REMOTE:/srv/media/$sub" "$ARCHIVE/$sub" \
--min-age "$MIN_AGE" \
--exclude '*.part' --exclude '*.normalize-failed.log' \
--transfers 4 --checkers 8 \
--delete-empty-src-dirs=false \
--log-file "$LOG" --log-level INFO
done
echo "$(date '+%F %T') archive pull done" >> "$LOG"