Is there any way to use mega.io as storage backend?

mega.io is much cheaper than S3 as an offsite backup!

But I can’t find anywhere obvious whether mega.io understands a protocol that duplicacy already supports.

They only provide a C++ based SDK to access their storage so it is unlikely Duplicacy will support them.

Mega has a CLI GitHub - meganz/MEGAcmd: Command Line Interactive and Scriptable Application to access MEGA that support:

  • sync
  • backup
  • act as ftp server
  • act as webdav server

You can backup your data to local using duplicacy, then use MEGAcmd to sync it to mega.

You can also use the ftp server in MEGAcmd and use that backend to backup your data.

Simply type ‘ftp /path/to/folder‘ in the MEGAcmd and you get a url for ftp access.

Though duplicacy does not support ftp, you can try to use ftpfs or curlftpfs to mount ftp into your filesystem.

Or you can use the webdav server in MEGAcmd and set duplicacy to backup using webdav, though I am not sure webdav is a good choice for backend.

@gchen once said that webdav is not as good as s3 or sftp backend in duplicacy.

Alternatively, you could use Rclone serve to access the Mega drive over sftp:

https://rclone.org/commands/rclone_serve/

2 Likes

Wow, I’ve never know rclone is this powerful.

I’ve created local webdav server via Megacmd, the link looks like http://127.0.0.1:4443/myfolder. I can past it just in windows exlorer and see my Mega folder. But Duplicacy Web requires login and password to webdav server, which is blank. Thus, it’s not possible to create a storage. How to fix it?

One way is to use rclone serve webdav instead of megacmd and configure username and password. Or use sftp instead of webdav — there are zero benefits to use webdav when literally any other alternative is available.

Edit. This was actually described above already:

2 Likes

Mega is now beta-testing their new Bucket system. https://mega.io/objectstorage It’s time to see if this is an option now.

MEGA says S4 is fully-compatible with S3, so there shouldn’t be a problem configuring Duplicacy to use it.