/xxMegaKeep

Script that prevents your MEGA accounts from expiring by logging and doing file operations.

Primary LanguageShell

xxMegaKeep

Script that prevents your MEGA accounts from expiring by logging and doing file operations.

Concept

  1. The script gets all accounts from a file.
  2. Tries to login and if successfull - uploads/replaces a file called xxMegaKeep.txt which contains the last date when this action had succeeded.

Requirements

  1. Bash
  2. 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

  1. Copy the .env.example to .env and change the variables accordingly.
  2. Copy the .accounts.example to .accounts and add your MEGA accounts.
  3. 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.