Skip to content

Commit 5bff930

Browse files
committed
Revert backup.sh change, fix README to match actual log output
1 parent 9f78416 commit 5bff930

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Files are stored canonically by camera, with date-based symlinks for browsing by
193193
- **Container shows unhealthy**: This is normal until the first successful backup completes. With `RUN_ON_START=true` (the default), this resolves within a few minutes of starting.
194194
- **Disk space**: The backup script logs two levels of disk space warnings that you can use to set up alerts (e.g., Docker log monitoring, webhook, etc.):
195195
- `[backup] ... WARN: Archive volume has less than 100 GB free` - time to plan cleanup
196-
- `[backup] ... CRITICAL: Archive volume has less than 10 GB free` - backups may start failing
196+
- `[backup] ... WARN: CRITICAL: Archive volume has less than 10 GB free` - backups may start failing
197197

198198
There is no automatic pruning yet (coming soon). You are responsible for managing retention (e.g., deleting old date folders, NAS-level quotas, or a cron job). Staging is cleaned after each run.
199199
- **Permissions**: The installer needs Docker access and write permissions to the archive path - on most NAS systems you're already root. The container runs as root internally for cron, SSH key handling, and volume writes. It does not expose any ports or accept inbound connections.

scripts/backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mkdir -p "${STAGING_DIR}/ubv" "$REMUX_DIR"
5252
# ── Disk space check ────────────────────────────────────────────────────────
5353
archive_avail_kb=$(df -k "$ARCHIVE_DIR" 2>/dev/null | tail -1 | awk '{print $4}')
5454
if [ "${archive_avail_kb:-0}" -lt 10485760 ]; then
55-
log "CRITICAL: Archive volume has less than 10 GB free — backups may fail"
55+
warn "CRITICAL: Archive volume has less than 10 GB free — backups may fail"
5656
elif [ "${archive_avail_kb:-0}" -lt 104857600 ]; then
5757
warn "Archive volume has less than 100 GB free — consider pruning old recordings"
5858
fi

0 commit comments

Comments
 (0)