diff --git a/playbook/shopfloor-setup/gea-shopfloor-partmarker/manifest-entry-partmarker-backup.json b/playbook/shopfloor-setup/gea-shopfloor-partmarker/manifest-entry-partmarker-backup.json new file mode 100644 index 0000000..4830975 --- /dev/null +++ b/playbook/shopfloor-setup/gea-shopfloor-partmarker/manifest-entry-partmarker-backup.json @@ -0,0 +1,15 @@ +{ + "_comment": "Drop this entry into the SFLD share's gea-shopfloor-partmarker manifest.json (Applications array). Type=PS1 + DetectionMethod=Always means GE-Enforce runs it straight off the share every cycle under SYSTEM, with no local copy - so updating the script on the share changes fleet behaviour on the next cycle and there is nothing to heal locally. PCTypes scopes it to marker bays; the script also checks the DNC\\Mark registry itself and exits quietly on a PC that drives no marker, so a mis-scoped entry is harmless rather than noisy.", + + "_layout": "REQUIRES THREE FILES ON THE SHARE, and the script resolves its modules relative to its own location ($PSScriptRoot\\..\\lib\\): scripts\\Backup-PartMarker.ps1, lib\\TelesisMarker.psm1, lib\\ShopdbBackupClient.psm1. ShopdbBackupClient is SHARED with Backup-NtlarsSettings.ps1 and is UPDATED by this work (it gained manifest posting, the created-vs-noop reader and skipped-cycle accounting), so deploy the new copy - the NTLARS backup uses none of the additions and is unaffected. If the share puts scripts in apps\\ rather than scripts\\, the lib\\ directory must be its sibling or the imports fail.", + + "_schedule": "Captures run ONLY at shift changes - 14:00 normally, because someone is on site then to fix a problem; 06:00 and 22:00 engage only once the backup is 3+ days overdue. Outside those hours the script exits without touching the port. The marker's COM port is shared with eDNC and is exclusive-open, so a capture at a random hour would fail an operator's mark. The capture also yields the port within about a second if the marker application starts mid-run, and ShopDB's backups_intervalhours throttle still applies on top.", + + "_settings": "ShopDB must have backups_shareroot set, and the bay needs a collector key in HKLM\\SOFTWARE\\GE\\ShopDB\\CollectorKey (or C:\\Enrollment\\shopdb-key.txt) plus a machine number in C:\\Enrollment\\pc-config.txt. Missing any of these is logged once and the cycle skips - it does not error.", + + "Name": "Back up the Telesis part marker (patterns, fonts, settings) to ShopDB", + "PCTypes": ["gea-shopfloor-partmarker"], + "Script": "scripts/Backup-PartMarker.ps1", + "Type": "PS1", + "DetectionMethod": "Always" +}