Skip to main content

max / makenotwork

761 B · 20 lines History Blame Raw
1 # One-shot: refresh the testnot.work staging mirror from the latest prod backup.
2 # Paired with mnw-testnot-refresh.timer for daily execution.
3 #
4 # Runs after sandod-backup-fetch so it uses a fresh dump. Needs root on fw13:
5 # reads /srv/sando/backups (sando-owned) and uses Tailscale SSH (node identity)
6 # to reach testnot as root.
7 #
8 # Place at /etc/systemd/system/mnw-testnot-refresh.service on the Sando host.
9
10 [Unit]
11 Description=MNW: refresh testnot staging mirror from prod backup
12 After=sandod-backup-fetch.service network-online.target
13 Wants=network-online.target
14
15 [Service]
16 Type=oneshot
17 ExecStart=/usr/local/bin/mnw-testnot-refresh.sh
18 # A failed refresh leaves testnot on its previous data + the app restarted;
19 # the next daily cycle retries. Don't hammer.
20