Open ndw opened 9 years ago
I got burned once when I tried to move some forests and the IDs of the roles and users no longer lined up. It would be great to have a way to spit everything out and load it into a new database so you could copy a database.
That's exactly the script I'm trying to write to test the API. Given a list of artifacts (servers, databases, users) on host1, compute the closure of all resources needed by those artifacts and save the result. Then load that result and make management API calls in the right order to reconstruct that configuration on host2.
I'm trying to craft a script that will copy the configuration of some artifacts from one host to another. That's going to mean computing the closure of important artifacts across the initial set of resources and then applying those to the target.
I'll need users, privileges, and perhaps other things along the way. I'll plan to send you a pull request for the new models.