Hi Vivek,
Do you still have the backup of old data?
There are 2 ways to do the migraton. I will suggest using the MediaPress Import APi to do it without worrying about the associations.
It is possible to do it manually but that needs a lot of extra meta/taxonomy associations.
A few things to note:-
1. Copying file structure is not needed. It may cause issue with your existing media(WordPress stores relative path in meta)
2. Depending on whether the import is a WordPress attachments(we only need to add extra meta in this case) or a raw file(any file on server), the process of import differs.
I will outline the process of importing here.
1. We create atleast one gallery for each of the user(currently MediaPress needs a gallery, RT Media can work without that too).
You can either manually create it or use mpp_create_gallery() to do it. Please search on BuddyDev forum for examples on mpp_create_gallery. We have many examples there.
Here is what happens:- A post in mpp-gallery post type is created. The post is assigned the terms from 3 taxonomies( this changes in 1.5 and we will have auto migration) for privacy, component, and type. All these terms have their slug prefixed by underscore to avoid any conflict.
Once we are done with it, we add 1 extra meta ( _mpp_component_id ) which is a numeric value and it contains the user_id or the group id to which this gallery is associated.
If you use mpp_create_gallery(), It will take care of all of this and will be future proof too.
For importing a media to a gallery, we provide two options
https://buddydev.com/mediapress/media/importing-file-mediapress-gallery/
or
https://buddydev.com/mediapress/media/import-wordpress-attachment-mediapress-gallery/
If you want to do it manually, we will need to associate terms(same as gallery) and add 2 extra meta( _mpp_is_mpp_media, _mpp_component_id).
If you need further assistance, Please do let me know.
Regards
Brajesh