Advertisement
Paladinz2k

Seedbox to Seedbox ftp

Oct 20th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash
  2. if [ $# -lt 3 ]
  3. then
  4. echo "Usage: LFTPdir.sh 'user:pw' RemoteHostname Directory1 Directory2 DirectoryN..."
  5. exit
  6. fi
  7.  
  8. USER=$1
  9. shift
  10. HOST=$1
  11. shift
  12.  
  13. cd ~
  14. for DIR in $@
  15. do
  16. echo -e "\n\n *** ${DIR} *** \n\n"
  17. lftp -u ${USER} sftp://${HOST}/ -e "cd ~ ; mirror -c --parallel=4 --use-pget=5 ${DIR} ;quit"
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement