Skip to content

Instantly share code, notes, and snippets.

@fieldingtron
Created August 17, 2017 16:12
Show Gist options
  • Save fieldingtron/8a113b981d56be3fc6a4da2d53648a26 to your computer and use it in GitHub Desktop.
Save fieldingtron/8a113b981d56be3fc6a4da2d53648a26 to your computer and use it in GitHub Desktop.
Move BITPORT files to Dropbox Bash script
#!/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