xxMegaKeep
Script that prevents your MEGA accounts from expiring by logging and doing file operations.
Concept
- The script gets all accounts from a file.
- Tries to login and if successfull - uploads/replaces a file called xxMegaKeep.txt which contains the last date when this action had succeeded.
Requirements
- Bash
- Megatools
Setup Accounts
Create a file (example: .accounts) and store the accounts you need checked in the following format:
acc1 pass1
acc2 pass2
acc3 pass3
Usage
- Copy the .env.example to .env and change the variables accordingly.
- Copy the .accounts.example to .accounts and add your MEGA accounts.
- Start the script
bash xxMegaKeep.sh
or
./xxMegaKeep.sh
Todos
- Fix the uploading for the PowerShell version.
- Create a script to set everything up on a fresh device - Windows/Linux/Mac.
- Add example setup snippet for a cronjob and for a sheduled task.