linderhof/roles/goaccess/templates/goaccess-sync.sh.j2

8 lines
293 B
Text
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
rsync -az --delete \
-e "ssh -i {{ goaccess_sync_ssh_key }} -p {{ goaccess_sync_ssh_port }} -o StrictHostKeyChecking=no -o BatchMode=yes" \
/srv/goaccess/reports/ \
{{ goaccess_sync_user }}@{{ goaccess_sync_host }}:{{ goaccess_sync_remote_path }}/