GithubHelp home page GithubHelp logo

niveussolutions / apigee-x-backup-tool Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.03 MB

Apigee Backup tool

Home Page: https://niveussolutions.github.io/apigee-x-backup-tool/

License: MIT License

JavaScript 99.85% Shell 0.15%
apigee backup backup-script backup-tool backup-utility cli nodejs tool apigee-hybrid apigee-x

apigee-x-backup-tool's Introduction

APIGEE - Backup Tool

Supports both Apigee x and Apigee hybrid , does not support Apigee Edge

The tool can backup Apigee Api Proxies, Shared flows, Api Products etc

NOTE: The Script is tested and works fine on Linux(ubuntu) and nodejs version >16

Prerequisite

  1. Download gcloud

  2. Install nodejs

  3. Clone the repository

  4. Create a directory where you want to backup all apigee objects

Getting Started

There are 2 ways you can run the apigee-backup-script.

  1. Using npm scripts
  2. As a cli tool

Using npm scripts

Refer Documentation

As a cli tool

This tool is published to npm registry. Can be installed as a global npm package and used as a cli tool - https://www.npmjs.com/package/@niveus/apigee-backup-tool

Usage: apigee-backup-tool [options] [command]

CLI tool to backup  apigee resources like api proxies, shared flows, Api
products etc

Options:
  -V, --version              output the version number
  -h, --help                 display help for command

Commands:
  config [options] <action>  configure organization name and backupFolderPath
  backup [options] <type>    Backup a specific apigee resource
  login                      Login to google cloud - Runs 'gcloud
                             application-default login' command
  all
      Back up following Apigee resources
          1. Api Proxy
          2. Shared Flow
          3. Api Products
          4. Developers
          5. Developer Apps
          6. Custom Reports
          7. Flow Hooks
          8. Target Servers

  api-proxy [options]        Backup all revisions of all Api Proxies
  shared-flow [options]      Backup all revisions of all Shared Flows
  api-product [options]      Backup all Api Products
  developer [options]        Backup all App Developers
  developer-app [options]    Backup all developer Apps
  flow-hook [options]        Backup all Flow Hooks
  custom-report [options]    Backup all Custom Reports
  target-server [options]    Backup all Target Server
  help [command]             display help for command



apigee-x-backup-tool's People

Contributors

adarshprabhu avatar dependabot[bot] avatar mohsinniveus avatar natesh245 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

natesh245

apigee-x-backup-tool's Issues

Unable to login

Hi,

Everything installed correctly, however I am stuck on login command:

root@promus-1-vm:~# apigee-backup-tool login

..
...

Nothing happens here?

Any idea?

Remove env argument from backupAll command

Remove env dependency in backupAll command. backupAll should backup resources for all environments without having to explicitly specifying the name of the environment

Implement Config profiles

Easily switch between gcp account and apigee organization using config profiles.

apigee-backup-tool config set --name profile-name --orgName org-name --backupFolderPath /test/

add --name option as shown above

implement apigee-backup-tool config use --name profile-name command to switch between various profiles

Current process - use login command and update config file to switch between accounts and organizations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.