Files
felhom.eu/documentation/audits/rehearsal-2026-10-20/tools/brpull.sh
T
admin f84f94d987 Rehearsal 2026-10-20 (Tester4) + data-loss hunt: baselines, B1 install evidence, A6 drawn order, tools, first two reviewers' candidates
No release, deploy or publish. Off-site is OFF for Tester4 and the owner passphrase is needed from the operator (bind blocked after 2 of 5 tries).
2026-10-20 11:57:55 +02:00

7 lines
350 B
Bash
Executable File

#!/bin/bash
# brpull.sh DEST — copy every new screenshot out of the browser LXC into DEST, then empty /root/shots there.
set -euo pipefail; mkdir -p "$1"
ssh demo-hp "LC_ALL=C pct exec ${BR_CT:-9330} -- tar cf - -C /root/shots ." | tar xf - -C "$1"
ssh demo-hp "LC_ALL=C pct exec ${BR_CT:-9330} -- find /root/shots -type f -delete"
ls "$1" | wc -l