Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- TORRENT_NAME=1
- TORRENT_PATH=2
- TORRENT_HASH=3
- TORRENT_LABEL=4
- #This will rclone your file or folder whatever it was post download to Gdrive
- rclone copy "$2" Gdrive: #you can additional flags if you want.
- #This will lftp your files to local desktop
- if [ -d "$2" ]; then
- 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)
- else
- 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)
- fi
Add Comment
Please, Sign In to add comment