Abinash Koirala
Abinash Koirala

Reputation: 987

Migrating Openshift Online app from one account to another account

Is there any way I can migrate an app being deployed in one Openshift Online account to another one?

Upvotes: 0

Views: 120

Answers (1)

Jiri Fiala
Jiri Fiala

Reputation: 1400

You can save and restore a snapshot of your OpenShift Online gear. This is described here, step by step: Migrating an Application to Another Gear

However, as you will be saving the snapshot from one account and restoring to another, make sure to specify your login when doing so. Assuming you have completed setup for both accounts and have created a new 'newApp' on the new account, it will look like this:

$ rhc snapshot save oldApp -l oldAccount@login
Pulling down a snapshot of application 'oldApp' to oldApp.tar.gz ... done
$ rhc snapshot restore newApp -f oldAppSnapshot.tar.gz -l newAccount@login
Restoring from snapshot oldApp.tar.gz to application 'newApp' ... done

I recommend checking developers.openshift.com for similar administrative guides on how to work with OpenShift. The above linked article can be easily found there.

Upvotes: 3

Related Questions