#/bin/sh
HOST=10.46.164.55
USER=username
PASS=passwd
echo "Starting to sftp..."
lftp -u ${USER},${PASS} sftp://${HOST}:22 <<EOF
cd /home/a/nginx/logs
mget *.*
#/bin/sh
HOST=10.46.164.55
USER=username
PASS=passwd
echo "Starting to sftp..."
lftp -u ${USER},${PASS} sftp://${HOST}:22 <<EOF
cd /home/a/nginx/logs
mget *.*