Files
whetstone_DSL/example_projects/bash_log_shipper/bin/ship_logs.sh

7 lines
131 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SRC="${1:-/var/log/app.log}"
DST="${2:-/tmp/app.log.gz}"
gzip -c "$SRC" > "$DST"
echo "$DST"