daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest May 23rd, 2016 142 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. login="user"
  3. pass="password"
  4. host="host.remoteserver"
  5.  
  6.     cd $2
  7.  
  8.     lftp -p 22 -u "$login","$pass" sftp://"$host" << EOF
  9.     set sftp:auto-confirm yes
  10.     set xfer:temp-file-name .in.*
  11.     set xfer:use-temp-file yes
  12.     set mirror:use-pget-n 5
  13.     mirror -c -P5 "$1" "$2"
  14.     quit
  15. EOF
  16.     exit
  17. 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. OK, I Understand
Pastebin PRO 'AUTUMN SPECIAL'!
Get 60% OFF Pastebin PRO accounts!
 
Top