Caffeine (link) is a tiny freeware program that will keep your connection alive. Download and open it. You’ll see an empty coffee cup icon in the menu bar at the top of your screen.
Ctrl + click on the cup and select ‘Preferences’. Check ‘Activate Caffeine at launch’. Use the ‘Default duration’ menu to choose how long you want the sync to run. Click on the cup icon, and it will look full, which means it’s working. Ctrl+click and select ‘Quit’ while the cup is still full. Now on to some important tips…
When you shut down your laptop prior to an automated upload, keep the lid open. Make sure the power adapter is connected. (This won’t work if you’re running on battery.) Lastly, if Caffeine and MEGAsync don’t launch at the scheduled time, make sure your event has the correct date in Calendar. If you just move the event from one day to another, it will retain the original date.
That’s it! You’re good to go.