RunPod.io has been my main go to for the last few weeks as I have been travelling overseas so not using my local GPU at home. Of course when you generate images using Cloud GPU like the ones provided by, you want to make sure your AI Image generations are saved quickly and easily, for this I relied on Mega.nz. Because once you shutdown and delete the RunPod.io GPU the data is also purged.

In the RunPod.io instance there are several Community Templates that I’ve been using and have become my favourites and I have used Mega.nz to automatically Sync my generations to Mega Cloud.

Why Mega.nz?

You get 20GB Free at Mega.nz when you sign up, the service is super fast and extremely reliable. They provide an easy to use Command Line that will Sync your RunPod.io folder(s) to Mega Cloud storage. It is quite simple and works like a charm!!

You will need to have an account with Mega.nz in order to proceed further. Make sure you save your password in a safe and secure place (memorise it – ideally). They also have a iOS and Android App which means that you can access your images on the phone which makes it easy to share online as well on your socials.

Mega CMD

Mega Cmd line tool can be used to specify and sync folder from your RunPod.io instance to the Mega Cloud. There is pretty well documented page available by Mega but I will provide you enough info for you to ensure you are synching your images to Mega.

  • Once you have your favourite RunPod Template running, open up Jupyter Lab > Terminal.
  • Run the command: wget https://mega.nz/linux/repo/xUbuntu_22.04/amd64/megacmd-xUbuntu_22.04_amd64.deb
    • Note: In case the above link become obsolete, a newer versions may be available from their Download page.
  • Next we install the app with the command:
    • apt install /workspace/megacmd-xUbuntu_22.04_amd64.deb
    • or
    • sudo -s apt install /workspace/megacmd-xUbuntu_22.04_amd64.deb
  • Now we can login to Mega using command: mega-login <emailid/username> <password>
  • Last step is to setup the Sync, however you need to make sure you create the destination folder in Mega via their portal. As I’m using ComfyUI and Automatic1111 the folder name I use is “output
    • For ComfyUI, generation the location for this is “/workspace/ComfyUI/output
    • and in Automatic1111, its “/workspace/Stable-Diffusion-WebUI/output“.
  • The command for sync is “mega-sync <source folder> <destination Mega folder>
    • mega-sync /workspace/ComfyUI/output output
    • mega-sync /workspace/stable-diffusion-webui/output output

That’s it and you are set!! Your local folders will sync automatically with the destination folder in Mega Cloud. Using this method you can Sync up any other folder that you prefer like models, which means you can host them on Mega and then sync them back into RunPod instance. I however use Google Drive for this purpose using a notebook.

If you'd like to support our site please consider buying us a Ko-fi, grab a product or subscribe. Need a faster GPU, get access to fastest GPUs for less than $1 per hour with RunPod.io