Added log fetcher

master
Paco Hope 2023-01-01 11:02:23 -05:00
parent af5eef91bc
commit 083850431c
1 changed files with 11 additions and 0 deletions

11
fetch-logs.sh Normal file
View File

@ -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