Created
August 17, 2017 16:12
-
-
Save fieldingtron/8a113b981d56be3fc6a4da2d53648a26 to your computer and use it in GitHub Desktop.
Move BITPORT files to Dropbox Bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# NEED TO configure | |
##uses dropbox_uploader script on github | |
BITPORT_USERNAME=email_address | |
BITPORT_PASSWORD=password | |
DROPBOX_FOLDER=foldername | |
URL=$1 | |
FILENAME=$2 | |
### EXAMPLES | |
#URL="https://bitport.io/my-files/download/fffff/fffff" | |
#FILENAME="some-show-season-7-episode-3.mkv" | |
wget $URL --user=$BITPORT_USERNAME --password=$BITPORT_PASSWORD -O rm file $FILENAME | |
/root/config/dropbox_uploader.sh upload $FILENAME /$DROPBOX_FOLDER/$FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment