rsync-logs.sh.in 351 Bytes
Newer Older
1 2 3
#!${dash-output:dash}

RSYNC_BIN={{ rsync_binary }}
4
SLAPGRID_LOGS={{ buildout_directory }}/../var/data-log/
5 6 7
RE6STLOGS={{ re6st_log_directory }}

SYSTEMLOGS={{ system_log_directory }}
8 9
SERVERLOGS={{ server_log_directory }}

10
$RSYNC_BIN -a --delete $SLAPGRID_LOGS $SERVERLOGS
11 12

if [ -d $RE6STLOGS ]; then
Rafael Monnerat's avatar
Rafael Monnerat committed
13
  $RSYNC_BIN -a --delete $RE6STLOGS $SYSTEMLOGS
14
fi