Moving Files from MogileFS to cloud

We have a running rails app that uses MogileFS to store the files and currently there are around 3.5 millions files on MogileFS. We wanna move to cloud from MogileFS. Wanted to know how should i go about this massive transfer of files. Any suggestions??

Thanks in advance Binu