For moving between instances, there is some closed-source scripts I have that 
backup, delete, and restore a project (optionally restoring with a new name).  
They have some parts I can't open-source immediately, but I can look into it.  
Conceptually they find all the models (mongo collections) that use the 
project_id and its app_config_id values.  It dumps those as files.  Then they 
can be restored back into the collection.

One thing you can try exporting all your collections from mongo.  Except users, 
neighborhoods, notifications, and things like that which are not project data 
related.  Then load those all into another server.  For the projects to join an 
existing neighborhood, you'll need to change the neighborhood_id on the 
imported projects.  Other values like project_id and app_config_id should be 
totally unique and not cause any conflicts or problems.  Obviously try the 
import on a test server first, and/or have really good backups you are 
confident you can restore from :)

For moving between neighborhoods (and possibly sub-projects, not sure) there is 
a very obscure feature.  I have no idea if it works well, or even at all.  But 
you can try it and report back.  Go to `/p/_moderate/` (replace "p" with any 
neighborhood) and you can issue an invitation for a project to join that 
neighborhood.  Then you can go to the project's admin area and there should be 
an Invitation link (url like `/othernbhd/myproj/admin/invitations`) and you can 
accept the invitation.  Good luck!  It might be made to work, if it doesn't 
currently work.


---

** [tickets:#8407] Migration of project data**

**Status:** open
**Milestone:** unreleased
**Created:** Mon Jan 03, 2022 06:42 AM UTC by Vrinda A
**Last Updated:** Mon Jan 03, 2022 08:37 AM UTC
**Owner:** nobody


I have two instances of Allura running and I want to merge both into one. To do 
this I would need to migrate the projects created on one instance into the 
other.
Is there a possibility to migrate project data of one Allura instance to 
another?


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to