[2026-05-23] vault-git-sync: Taiga arch, SSH alias, fix deployed

This commit is contained in:
Alexey Martemyanov
2026-05-23 11:31:57 +06:00
parent 5a07ecd023
commit f8717b314c
+16 -16
View File
@@ -40,25 +40,25 @@ The correct script for Taiga/Kraken is at `~/scripts/sync-vault-partial.sh` on E
It uses sparse checkout (only `personal/` and `family/`), which is an additional safeguard: It uses sparse checkout (only `personal/` and `family/`), which is an additional safeguard:
if Taiga never checks out `wiki/`, it can never delete wiki/ files even if the script has bugs. if Taiga never checks out `wiki/`, it can never delete wiki/ files even if the script has bugs.
## Taiga Fix (TODO) ## Taiga Architecture
Taiga runs TrueNAS. The broken script is at `/opt/data/sync-vault.sh`. Taiga is TrueNAS running Hermes in Docker (`/mnt/RED_2TB/docker/hermes/`).
The sync script runs **inside the container** with:
- `GIT_WORK_TREE=/vault` → mounted from `/mnt/RED_2TB/storage/obsidian`
- `GIT_DIR=/vault.git` → mounted from `/mnt/RED_2TB/storage/git/obsidian-vault.git` (the bare repo itself)
To fix (requires TrueNAS console or web UI → System → Advanced → Init/Shutdown Scripts): Taiga IS the repo — no remote push needed. Eagle pushes to `nas/main`, which is this same bare repo.
1. Copy correct script from Eagle: Script location: `/mnt/RED_2TB/docker/hermes/config/sync-vault.sh` (= `/opt/data/sync-vault.sh` inside container)
```bash
scp ~/scripts/sync-vault-partial.sh root@<taiga-ip>:/opt/data/sync-vault.sh SSH access: `ssh taiga` (alias in ~/.ssh/config → `truenas_admin@mallexxx.duckdns.org`)
```
2. On Taiga, ensure vault uses sparse checkout: To deploy a script fix:
```bash ```bash
cd /path/to/obsidian-vault scp ~/scripts/sync-vault-taiga.sh taiga:/mnt/RED_2TB/docker/hermes/config/sync-vault.sh
git config core.sparseCheckout true ```
echo "personal/" > .git/info/sparse-checkout
echo "family/" >> .git/info/sparse-checkout **NEVER use local IP for TrueNAS** — always `mallexxx.duckdns.org` or `ssh taiga`.
git read-tree -mu HEAD
```
3. Test: `bash /opt/data/sync-vault.sh`
## .gitignore ## .gitignore