{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
0
Question by Steven Wolfe · Dec 16, 2015 at 03:25 PM · 579 Views backupmigraterestore

Question about apigee-migrate-tool

Our company has been playing around with the apigee-migrate-tool as a way to backup the configuration (proxies, developers, developer api keys, etc). We wanted to have a way to backup all proxies and environments and restore them in the event a planet needed to be rebuilt.

Yesterday, I ran a trial and it pulled in the proxies, apps, developers, environments, orgs, etc. The one thing I noticed is that it did not appear to deploy the proxies to the same environments they were deployed to in the source planet. I wanted to confirm this is the expected behavior. Are there any other configurations that are not recreated with this utility?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

2 Answers

  • Sort: 
avatar image
1

Answer by sudheendras   · Dec 16, 2015 at 06:09 PM

@Steven Wolfe You need to edit config.js file to specify the Environment where you want to deploy.

module.exports = {

    from: {
        version: 'R22',
        url: 'http://mgmt-server’,
        userid: 'user-id’,
        passwd: 'your-password',
        org: 'your-org',
        env: 'your-env'
    },
    to: {
        version: '14.0.7',
        url: 'http://mgmt-server’,
        userid: 'user-id’,
        passwd: 'your-password',
        org: 'your-org',
        env: 'your-env'
    }
} ;

Thanks, Sudhee

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Steven Wolfe · Dec 30, 2015 at 05:51 AM 1
Link

Hi Sudhee,

Thanks for the response. I believe I found the root cause of the issue. After confirming my config.js file looked appropriate, I dug a little deeper into the project. Our team had been leveraging the importAll grunt task. This task does not deploy the proxies it merely imports the artifacts.

The bigger issue is that the migrate utility does not appear to be exporting which proxy is deployed to which environment. Without this information, its impossible to restore the environments exactly as they were. You can see in the deployProxies and undeployProxies that they have hardcoded the revision to v1.

Steve

avatar image
0

Answer by Neeraj Wadhwa · Jul 19, 2017 at 12:13 PM

Hi @Steven Wolfe,

You cannot replicate the source to the target even if you change the environment in the config.js file.

The problem is if you have a proxy in your source org lets name it as myProxy, and it has three revisions which are 1, 2 and 5 (note there is no revision 3 or 4), and you migrate this proxy to target org, then these revisions will become revision 1, 2, and 3 instead of 1, 2 and 5 (as you would expect), because the Edge won't let you create a specific revision or let you upload a proxy as a specific revision, so that is why cannot replicate your source org.

In Apigee Migrate Tool, you cannot download lower revisions, it will download last revision(let us say revision 10) and deploy it as revision 1, not as revision 10.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

is it possible on the free version to get backup of your data? 4 Answers

Cassandra backup failing in OPDK version 4.14.07.00 2 Answers

Backup not working after enabling Cassandra JMX authentication . 0 Answers

Migration Backup Apigee Edge Version Update 0 Answers

someone has deleted a developer and that has led to deletion of his developer apps. Is there a way to restore it? 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges