Guest User

Untitled

a guest
Oct 4th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. TORRENT_NAME=1
  4. TORRENT_PATH=2
  5. TORRENT_HASH=3
  6. TORRENT_LABEL=4
  7.  
  8. #This will rclone your file or folder whatever it was post download to Gdrive
  9.  
  10. rclone copy "$2" Gdrive: #you can additional flags if you want.
  11.  
  12. #This will lftp your files to local desktop
  13.  
  14.  
  15. if [ -d "$2" ]; then
  16. lftp -e "set ftp:ssl-protect-data true;set ssl:verify-certificate no; mirror -R ${2@Q} ~/your/local/desktop/path/where/you/need/files" -u 'USERNAME_OF_DESKTOP, PASSWORD_OF_DESKTOP' USERNAME_OF_DESKTOP@IPADDRESS; #(MAKE SURE USERNAME AND PASSWORD HAVE ' before username and post password)
  17.  
  18. else
  19. lftp -e "set ftp:ssl-protect-data true;set ssl:verify-certificate no; cd ~/your/local/desktop/path/where/you/need/files; put ${2@Q}" -u 'USERNAME_OF_DESKTOP, PASSWORD_OF_DESKTOP' USERNAME_OF_DESKTOP@IPADDRESS; #(MAKE SURE USERNAME AND PASSWORD HAVE ' before username and post password)
  20.  
  21. fi
  22.  
Add Comment
Please, Sign In to add comment