refactor(hosts): organize repository by server profiles (hosts/raspberrypi5, hosts/llm-node) and add host-aware installer
This commit is contained in:
1 parent
c53fc0a939
commit
c2740c9542
44 files changed
+528
-40
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
DUMP_FILE="${SHINKAN_DUMP_FILE:-/media/lars/paperless/db-backup/shinkan-prod.sql}"
|
||||
OUT_DIR="$(dirname "$DUMP_FILE")"
|
||||
TARGET="${SHINKAN_TARGET:-pi-prod}"
|
||||
ARCHIVE_ROOT="${SHINKAN_ARCHIVE_ROOT:-/backup/recovery_points}"
|
||||
RESULT_JSON="${OUT_DIR}/.shinkan-manifest-last-result.json"
|
||||
|
||||
/usr/bin/env python3 /etc/backup-orchestrator/scripts/shinkan/shinkan-backup-manifest \
|
||||
--target "$TARGET" \
|
||||
--dump "$DUMP_FILE" \
|
||||
--out-dir "$OUT_DIR" \
|
||||
--result "$RESULT_JSON"
|
||||
|
||||
if [[ -d "$(dirname "$ARCHIVE_ROOT")" && -w "$(dirname "$ARCHIVE_ROOT")" ]]; then
|
||||
/etc/backup-orchestrator/scripts/publish-backup-set.sh \
|
||||
"shinkan-${TARGET}" \
|
||||
"$DUMP_FILE" \
|
||||
"$ARCHIVE_ROOT"
|
||||
fi
|
||||
Reference in new issue
Block a user