SHARE
TWEET
Untitled
a guest
May 23rd, 2016
142
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #!/bin/bash
- login="user"
- pass="password"
- host="host.remoteserver"
- cd $2
- lftp -p 22 -u "$login","$pass" sftp://"$host" << EOF
- set sftp:auto-confirm yes
- set xfer:temp-file-name .in.*
- set xfer:use-temp-file yes
- set mirror:use-pget-n 5
- mirror -c -P5 "$1" "$2"
- quit
- EOF
- exit
- fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

