Skip to content

Instantly share code, notes, and snippets.

@xpepper
Last active October 29, 2022 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xpepper/465c9895721a044a8fca87c125a50dbb to your computer and use it in GitHub Desktop.
Save xpepper/465c9895721a044a8fca87c125a50dbb to your computer and use it in GitHub Desktop.
Mega Uploader Script
#!/bin/bash
mega_user="<MEGA ACCOUNT EMAIL>"
mega_pass="<MEGA ACCOUNT PWD>"
mega_path="<MEGA REMOTE TARGET FOLDER>"
folder="${mega_path}/$(date +'%Y-%m-%d')"
megamkdir -u ${mega_user} -p ${mega_pass} "${folder}" --reload
megaput -u ${mega_user} -p ${mega_pass} --path "${folder}" *.mp3 --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment