rename appdata folder and repo from unraid_scripts to varaverk
- TARGET_DIR, DATA_DIR: /mnt/user/appdata/unraid_scripts → /mnt/user/appdata/varaverk - GITEA_REPO_PATH: Varaverk/Unraid_Scripts.git → Varaverk/varaverk.git - DEV_ROOT: .../Development/Unraid_Scripts → .../Development/varaverk - deploy hook path updated in .claude/settings.json - All script comments, docs, and manual paths updated throughout
This commit is contained in:
@@ -89,8 +89,8 @@ hostname
|
||||
### ── Clone on HOST1 ───────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
git clone <your_repo_url> /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
git clone <your_repo_url> /mnt/user/appdata/varaverk
|
||||
cd /mnt/user/appdata/varaverk
|
||||
```
|
||||
|
||||
---
|
||||
@@ -98,8 +98,8 @@ cd /mnt/user/appdata/unraid_scripts
|
||||
### ── Clone on HOST2 ───────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
git clone <your_repo_url> /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
git clone <your_repo_url> /mnt/user/appdata/varaverk
|
||||
cd /mnt/user/appdata/varaverk
|
||||
```
|
||||
|
||||
---
|
||||
@@ -112,7 +112,7 @@ credentials. Set up sparse checkout so each server only receives its own conf fi
|
||||
|
||||
**On HOST1** — exclude host2.conf:
|
||||
```bash
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/varaverk
|
||||
git sparse-checkout init --no-cone
|
||||
git sparse-checkout set '/*' '!/Configurations/host2.conf'
|
||||
git checkout
|
||||
@@ -120,7 +120,7 @@ git checkout
|
||||
|
||||
**On HOST2** — exclude host1.conf:
|
||||
```bash
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/varaverk
|
||||
git sparse-checkout init --no-cone
|
||||
git sparse-checkout set '/*' '!/Configurations/host1.conf'
|
||||
git checkout
|
||||
@@ -235,7 +235,7 @@ prompted for HOST1's root password once (for the initial key copy). After that,
|
||||
all SSH is keyless.
|
||||
|
||||
```bash
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/varaverk
|
||||
bash Partnership/ssh_setup.sh
|
||||
```
|
||||
|
||||
@@ -249,7 +249,7 @@ When prompted, enter HOST1's root password. The script:
|
||||
### ── Run on HOST1 ──────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
cd /mnt/user/appdata/unraid_scripts
|
||||
cd /mnt/user/appdata/varaverk
|
||||
bash Partnership/ssh_setup.sh
|
||||
```
|
||||
|
||||
@@ -312,15 +312,15 @@ paste the command. Name the entry to match the script name.
|
||||
|
||||
| Script | Cron schedule | Command |
|
||||
|--------|--------------|---------|
|
||||
| `array_started` | At Array Start | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/array_started.sh` |
|
||||
| `watchdog_orchestrator` | `* * * * *` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/watchdog_orchestrator.sh` |
|
||||
| `transcode_management` | `*/7 * * * *` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/transcode_management.sh` |
|
||||
| `critical_sync_maintenance` | `*/30 * * * *` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/critical_sync_maintenance.sh` |
|
||||
| `emby_fallback_sync` | `*/30 * * * *` | `bash /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/Media_Server/Emby --profile=emby-fallback` |
|
||||
| `intermediate_sync_maintenance` | `0 */4 * * *` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/intermediate_sync_maintenance.sh` |
|
||||
| `daily_sync_maintenance` | `0 1 * * *` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh` |
|
||||
| `weekly_sync_maintenance` | `30 2 * * 0` | `bash /mnt/user/appdata/unraid_scripts/Orchestrators/weekly_sync_maintenance.sh` |
|
||||
| `weekly_health_digest` | `0 8 * * *` | `bash /mnt/user/appdata/unraid_scripts/Monitors/weekly_health_digest.sh` |
|
||||
| `array_started` | At Array Start | `bash /mnt/user/appdata/varaverk/Orchestrators/array_started.sh` |
|
||||
| `watchdog_orchestrator` | `* * * * *` | `bash /mnt/user/appdata/varaverk/Orchestrators/watchdog_orchestrator.sh` |
|
||||
| `transcode_management` | `*/7 * * * *` | `bash /mnt/user/appdata/varaverk/Orchestrators/transcode_management.sh` |
|
||||
| `critical_sync_maintenance` | `*/30 * * * *` | `bash /mnt/user/appdata/varaverk/Orchestrators/critical_sync_maintenance.sh` |
|
||||
| `emby_fallback_sync` | `*/30 * * * *` | `bash /mnt/user/appdata/varaverk/Rsync/rsync.sh /mnt/user/Media_Server/Emby --profile=emby-fallback` |
|
||||
| `intermediate_sync_maintenance` | `0 */4 * * *` | `bash /mnt/user/appdata/varaverk/Orchestrators/intermediate_sync_maintenance.sh` |
|
||||
| `daily_sync_maintenance` | `0 1 * * *` | `bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh` |
|
||||
| `weekly_sync_maintenance` | `30 2 * * 0` | `bash /mnt/user/appdata/varaverk/Orchestrators/weekly_sync_maintenance.sh` |
|
||||
| `weekly_health_digest` | `0 8 * * *` | `bash /mnt/user/appdata/varaverk/Monitors/weekly_health_digest.sh` |
|
||||
|
||||
> `array_started` uses the built-in "At Array Start" schedule option in User Scripts —
|
||||
> it is not a cron expression.
|
||||
@@ -354,7 +354,7 @@ will take a while depending on library size.
|
||||
|
||||
```bash
|
||||
# On HOST1 — preview what would sync, check paths and profiles
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh --dry-run --log
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh --dry-run --log
|
||||
```
|
||||
|
||||
Review the output. Check that:
|
||||
@@ -368,7 +368,7 @@ Review the output. Check that:
|
||||
|
||||
```bash
|
||||
# On HOST1 — run the full daily sync (this includes rsync for all DAILY_SYNC_SHARES)
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh --log
|
||||
```
|
||||
|
||||
This will take longer than future nightly runs — it is transferring everything for
|
||||
@@ -381,7 +381,7 @@ watch -n5 'ls -lh /mnt/user/Movies/ | tail -5'
|
||||
|
||||
After it finishes, also run the critical sync to populate auth and Emby state:
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/critical_sync_maintenance.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/critical_sync_maintenance.sh --log
|
||||
```
|
||||
|
||||
---
|
||||
@@ -410,7 +410,7 @@ Commit and pull on both servers so both pick up the change.
|
||||
|
||||
To start it now without a reboot:
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Fallback/fallback.sh &
|
||||
bash /mnt/user/appdata/varaverk/Fallback/fallback.sh &
|
||||
```
|
||||
|
||||
---
|
||||
@@ -437,10 +437,10 @@ simulates an outage using `iptables` — no real downtime, no real data changes.
|
||||
|
||||
```bash
|
||||
# On HOST2 — dry run first (sees the sequence, no container starts)
|
||||
bash /mnt/user/appdata/unraid_scripts/Fallback/fallback_test.sh --dry-run --log
|
||||
bash /mnt/user/appdata/varaverk/Fallback/fallback_test.sh --dry-run --log
|
||||
|
||||
# When ready — real test (uses iptables to simulate HOST1 unreachable)
|
||||
bash /mnt/user/appdata/unraid_scripts/Fallback/fallback_test.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Fallback/fallback_test.sh --log
|
||||
```
|
||||
|
||||
The test runs in phases — blocks HOST1's Tailscale IP, waits for `fallback.sh` to
|
||||
@@ -478,9 +478,9 @@ HOST2 runs first — it generates its SSH key and waits. The owner completes set
|
||||
|
||||
```bash
|
||||
# On HOST2
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/partnership_onboard.sh --dry-run --log
|
||||
bash /mnt/user/appdata/varaverk/Partnership/partnership_onboard.sh --dry-run --log
|
||||
# Review output, then:
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/partnership_onboard.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Partnership/partnership_onboard.sh --log
|
||||
```
|
||||
|
||||
HOST2's work is done after Step 1 (SSH key setup). The rest happens on HOST1.
|
||||
@@ -491,9 +491,9 @@ HOST2's work is done after Step 1 (SSH key setup). The rest happens on HOST1.
|
||||
|
||||
```bash
|
||||
# On HOST1
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/partnership_onboard.sh --dry-run --log
|
||||
bash /mnt/user/appdata/varaverk/Partnership/partnership_onboard.sh --dry-run --log
|
||||
# Review output — this will deploy auth + arr stacks to HOST2 remotely
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/partnership_onboard.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Partnership/partnership_onboard.sh --log
|
||||
```
|
||||
|
||||
The owner path deploys containers to HOST2 via SSH, configures WebUI targets, runs
|
||||
@@ -542,8 +542,8 @@ cat /boot/config/fallback_state.db
|
||||
Bandwidth monitor records every sync:
|
||||
```bash
|
||||
# Latest transfer log
|
||||
ls -lt /mnt/user/appdata/unraid_scripts/data/bandwidth_monitor/
|
||||
cat /mnt/user/appdata/unraid_scripts/data/bandwidth_monitor/<latest_log>
|
||||
ls -lt /mnt/user/appdata/varaverk/data/bandwidth_monitor/
|
||||
cat /mnt/user/appdata/varaverk/data/bandwidth_monitor/<latest_log>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user