From 805bb13b765333c805d3ce0d002ef27a0ea333a2 Mon Sep 17 00:00:00 2001 From: fastlorenzo Date: Fri, 14 May 2021 11:58:26 +0200 Subject: [PATCH] Fixed rsync Signed-off-by: fastlorenzo --- .../redelkinstalldata/scripts/getremotelogs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elkserver/docker/redelk-base/redelkinstalldata/scripts/getremotelogs.sh b/elkserver/docker/redelk-base/redelkinstalldata/scripts/getremotelogs.sh index a5a62c9d..d44a35fc 100755 --- a/elkserver/docker/redelk-base/redelkinstalldata/scripts/getremotelogs.sh +++ b/elkserver/docker/redelk-base/redelkinstalldata/scripts/getremotelogs.sh @@ -21,8 +21,8 @@ fi mkdir -p /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 echo "$(date) ######## Start of rsync to $1" >> $LOGFILE 2>&1 -rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-~}/logs /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 -rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-~}/downloads /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 -rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-~}/profiles /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 -rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-~}/data /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 +rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-"~"}/logs /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 +rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-"~"}/downloads /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 +rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-"~"}/profiles /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 +rsync -axv -e 'ssh -p '"${4:-22}"' -o "StrictHostKeyChecking=no" -i /home/redelk/.ssh/id_rsa' "$3"@"$1":${5:-"~"}/data /var/www/html/c2logs/"$2" >> $LOGFILE 2>&1 echo "$(date) ######## Done with rsync" >> $LOGFILE 2>&1