diff --git a/fetch-logs.sh b/fetch-logs.sh new file mode 100644 index 0000000..67ef30c --- /dev/null +++ b/fetch-logs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +LOCATIONS="nova singapore sydney dublin brazil" +SSHKEY="~/.ssh/id-paco-2022" + +for location in ${LOCATIONS} +do + OUTDIR="logs/${location}" + [[ -d ${OUTDIR} ]] || mkdir -p ${OUTDIR} + scp -pr -i ${SSHKEY} "admin@${location}.nickhope.world:/var/log/apache2" ${OUTDIR} +done \ No newline at end of file