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