Last active
October 29, 2022 17:24
-
-
Save xpepper/465c9895721a044a8fca87c125a50dbb to your computer and use it in GitHub Desktop.
Mega Uploader 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
#!/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