#!/bin/sh mkdir -p "$(hostname)-transfer" ts="$(date +%Y%m%d)" ./run-transfer.sh | tee "$(hostname)-transfer/${ts}-idle.txt" xz -f -v -9 -M 800M "$(hostname)-transfer/${ts}-idle.txt"