← back to Nas Setup

launchd/com.steve.nas-dwdump-mirror.plist

43 lines

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
  com.steve.nas-dwdump-mirror — pull the nightly Kamatera dw_unified dump to BOTH
  on-prem destinations (3-2-1 topology, DTD verdict 2026-06-26): Henry local drive
  + NAS 2TB share. Each leg is independent — the Henry leg works today; the NAS leg
  auto-activates once /Volumes/DW-Backups is mounted.
  Runs 03:45 (after the 03:00 Kamatera db-backup.sh has finished writing).
  Safe to load NOW: the Henry leg runs nightly, the NAS leg no-ops until mounted.
  Adjust the *_BACKUP_DIR env vars below if your paths differ.
-->
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.steve.nas-dwdump-mirror</string>
  <key>ProgramArguments</key>
  <array>
    <string>/bin/bash</string>
    <string>/Users/macstudio3/Projects/nas-setup/scripts/pull-dw-dump.sh</string>
  </array>
  <key>EnvironmentVariables</key>
  <dict>
    <key>HENRY_BACKUP_DIR</key>
    <string>/Volumes/Henry/dw-backups/dw_unified</string>
    <key>NAS_BACKUP_DIR</key>
    <string>/Volumes/DW-Backups/dw_unified</string>
    <key>PATH</key>
    <string>/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
  </dict>
  <key>StartCalendarInterval</key>
  <dict>
    <key>Hour</key><integer>3</integer>
    <key>Minute</key><integer>45</integer>
  </dict>
  <key>RunAtLoad</key>
  <false/>
  <key>StandardOutPath</key>
  <string>/Users/macstudio3/Projects/nas-setup/data/launchd.out.log</string>
  <key>StandardErrorPath</key>
  <string>/Users/macstudio3/Projects/nas-setup/data/launchd.err.log</string>
</dict>
</plist>