#!${dash-output:dash}

RSYNC_BIN={{ rsync_binary }}
SLAPGRID_LOGS={{ buildout_directory }}/../var/data-log/
RE6STLOGS={{ re6st_log_directory }}

SYSTEMLOGS={{ system_log_directory }}
SERVERLOGS={{ server_log_directory }}

$RSYNC_BIN -a --delete $SLAPGRID_LOGS $SERVERLOGS

if [ -d $RE6STLOGS ]; then
  $RSYNC_BIN -a --delete $RE6STLOGS $SYSTEMLOGS
fi
