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:
+25
-25
@@ -134,10 +134,10 @@ and updates `host*.conf` with the key path automatically.
|
||||
|
||||
```bash
|
||||
# On HOST1 — after the repo is cloned:
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/ssh_setup.sh
|
||||
bash /mnt/user/appdata/varaverk/Partnership/ssh_setup.sh
|
||||
|
||||
# On HOST2:
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/ssh_setup.sh
|
||||
bash /mnt/user/appdata/varaverk/Partnership/ssh_setup.sh
|
||||
```
|
||||
|
||||
Key naming convention: hostname lowercased, `unraid-` prefix stripped.
|
||||
@@ -150,7 +150,7 @@ unRAID-Jayred365 → /root/.ssh/jayred365_rsync_automation
|
||||
generated key. Run `--status` to verify:
|
||||
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/ssh_setup.sh --status
|
||||
bash /mnt/user/appdata/varaverk/Partnership/ssh_setup.sh --status
|
||||
```
|
||||
|
||||
> **`ssh_setup.sh` is idempotent** — safe to re-run. Use `--force` to regenerate
|
||||
@@ -174,15 +174,15 @@ cat /root/.ssh/unraid_gitea.pub
|
||||
|
||||
```bash
|
||||
# Create target directory:
|
||||
mkdir -p /mnt/user/appdata/unraid_scripts
|
||||
mkdir -p /mnt/user/appdata/varaverk
|
||||
|
||||
# Clone:
|
||||
GIT_SSH_COMMAND="ssh -i /root/.ssh/unraid_gitea" \
|
||||
git clone git@YOUR_GITEA_HOST:FailedProxy/Unraid_Scripts.git \
|
||||
/mnt/user/appdata/unraid_scripts
|
||||
git clone git@YOUR_GITEA_HOST:Varaverk/varaverk.git \
|
||||
/mnt/user/appdata/varaverk
|
||||
|
||||
# Make scripts executable:
|
||||
find /mnt/user/appdata/unraid_scripts -name "*.sh" -exec chmod +x {} \;
|
||||
find /mnt/user/appdata/varaverk -name "*.sh" -exec chmod +x {} \;
|
||||
```
|
||||
|
||||
Expected structure after clone:
|
||||
@@ -204,7 +204,7 @@ Docker_Essentials/
|
||||
## ━━━ STEP 5 — CONFIGURE MASTER.CONF ━━━
|
||||
|
||||
```bash
|
||||
nano /mnt/user/appdata/unraid_scripts/master.conf
|
||||
nano /mnt/user/appdata/varaverk/master.conf
|
||||
```
|
||||
|
||||
### Host Identity
|
||||
@@ -223,8 +223,8 @@ HOST2_SSH_KEY="/root/.ssh/Jayred365-rsync-key"
|
||||
|
||||
```bash
|
||||
GITEA_CONTAINER="Gitea"
|
||||
GITEA_REPO_PATH="FailedProxy/Unraid_Scripts.git"
|
||||
TARGET_DIR="/mnt/user/appdata/unraid_scripts"
|
||||
GITEA_REPO_PATH="Varaverk/varaverk.git"
|
||||
TARGET_DIR="/mnt/user/appdata/varaverk"
|
||||
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
|
||||
SSH_PORT=221
|
||||
```
|
||||
@@ -274,8 +274,8 @@ to their unprefixed names. Scripts only ever reference the unprefixed name — t
|
||||
work identically on both servers.
|
||||
|
||||
```bash
|
||||
nano /mnt/user/appdata/unraid_scripts/host1.conf # on HOST1
|
||||
nano /mnt/user/appdata/unraid_scripts/host2.conf # on HOST2
|
||||
nano /mnt/user/appdata/varaverk/host1.conf # on HOST1
|
||||
nano /mnt/user/appdata/varaverk/host2.conf # on HOST2
|
||||
```
|
||||
|
||||
Every variable is documented in the conf files. Key values to set:
|
||||
@@ -432,7 +432,7 @@ Individual scripts are never scheduled directly except the 30-minute Emby sync.
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/array_started.sh
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/array_started.sh
|
||||
# Schedule: At Startup of Array
|
||||
# Run as: Background Task
|
||||
```
|
||||
@@ -447,28 +447,28 @@ Watchdogs (resource, docker, system, stability) run separately via watchdog_orch
|
||||
```bash
|
||||
# Every 30 minutes — Emby dirty sync:
|
||||
*/30 * * * *
|
||||
bash /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh \
|
||||
bash /mnt/user/appdata/varaverk/Rsync/rsync.sh \
|
||||
/mnt/user/Media_Server/Emby --profile=emby-fallback
|
||||
|
||||
# Every 6 hours — failed import + stalled download recovery:
|
||||
0 */6 * * *
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/arrs_failed_stalled_recovery.sh
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/arrs_failed_stalled_recovery.sh
|
||||
|
||||
# 1am daily — full maintenance window:
|
||||
0 1 * * *
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh
|
||||
|
||||
# 2:30am Sunday — weekly maintenance window:
|
||||
30 2 * * 0
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/weekly_sync_maintenance.sh
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/weekly_sync_maintenance.sh
|
||||
|
||||
# 8am daily — health digest:
|
||||
0 8 * * *
|
||||
bash /mnt/user/appdata/unraid_scripts/Monitors/weekly_health_digest.sh
|
||||
bash /mnt/user/appdata/varaverk/Monitors/weekly_health_digest.sh
|
||||
|
||||
# Every 6 hours — inotify + php-fpm snapshot:
|
||||
0 */6 * * *
|
||||
bash /mnt/user/appdata/unraid_scripts/Monitors/system_tuning_monitor.sh
|
||||
bash /mnt/user/appdata/varaverk/Monitors/system_tuning_monitor.sh
|
||||
|
||||
# Sunday morning — weekly reports:
|
||||
0 6 * * 0 bash .../Monitors/zfs_memory_snapshot.sh
|
||||
@@ -491,7 +491,7 @@ Test with `--dry-run` first — all pre-flight checks run, no changes made.
|
||||
### Test a Single Profile Sync
|
||||
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh \
|
||||
bash /mnt/user/appdata/varaverk/Rsync/rsync.sh \
|
||||
/mnt/user/appdata-Fallback/Arrs_Stack --dry-run --log
|
||||
```
|
||||
|
||||
@@ -514,13 +514,13 @@ Expected output (healthy):
|
||||
### Test the Daily Orchestrator
|
||||
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh --dry-run
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh --dry-run
|
||||
```
|
||||
|
||||
### Check Configuration Resolution
|
||||
|
||||
```bash
|
||||
bash /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh \
|
||||
bash /mnt/user/appdata/varaverk/Rsync/rsync.sh \
|
||||
/mnt/user/appdata-Fallback/Arrs_Stack --status
|
||||
```
|
||||
|
||||
@@ -532,10 +532,10 @@ If HOST2 is being set up from scratch with empty shares:
|
||||
|
||||
```bash
|
||||
# Create share directories on HOST2:
|
||||
bash /mnt/user/appdata/unraid_scripts/Tools/recreate_shares.sh
|
||||
bash /mnt/user/appdata/varaverk/Tools/recreate_shares.sh
|
||||
|
||||
# Initial push from HOST1 — first run may take several hours for large libraries:
|
||||
bash /mnt/user/appdata/unraid_scripts/Orchestrators/daily_sync_maintenance.sh --log
|
||||
bash /mnt/user/appdata/varaverk/Orchestrators/daily_sync_maintenance.sh --log
|
||||
```
|
||||
|
||||
The scheduled nightly sync will be incremental after the initial push.
|
||||
@@ -584,7 +584,7 @@ ssh -i /root/.ssh/gmer4lfe_rsync_automation \
|
||||
# If password prompted: key not authorised — re-run ssh_setup.sh
|
||||
|
||||
# Re-run setup (idempotent, re-copies key to remote):
|
||||
bash /mnt/user/appdata/unraid_scripts/Partnership/ssh_setup.sh
|
||||
bash /mnt/user/appdata/varaverk/Partnership/ssh_setup.sh
|
||||
```
|
||||
|
||||
### Pre-flight Aborts on Remote Rootfs
|
||||
|
||||
Reference in New Issue
Block a user