Skip to content

Instantly share code, notes, and snippets.

@wavejumper
Last active August 29, 2015 14:01
Show Gist options
  • Save wavejumper/473fe946381d55bad422 to your computer and use it in GitHub Desktop.
Save wavejumper/473fe946381d55bad422 to your computer and use it in GitHub Desktop.
#!/bin/bash
DOWNLOADS=/home/wavejumper/files
WATCH_FOLDER=/home/wavejumper/deluge-watch
SEEDBOX_BOOKMARK=Seedbox
case "$1" in
upload)
scp "$2" $SEEDBOX:$WATCH_FOLDER
;;
mirror)
lftp $SEEDBOX_BOOKMARK -e "m '$DOWNLOADS/$2';exit"
;;
pget)
lftp $SEEDBOX_BOOKMARK -e "p '$DOWNLOADS/$2';exit"
;;
ls)
lftp $SEEDBOX_BOOKMARK -e "ls '$DOWNLOADS/$2';exit"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment