Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.79 KB

copy-backend.md

File metadata and controls

55 lines (40 loc) · 1.79 KB

Copy Backend

This command makes a copy of the referenced backend. Target backend will be searched by the source backend system name. System name can be overridden with --target-system-name option. If a backend with the selected system-name is not found, it will be created.

Components of the backend being copied:

  • backend settings
  • metrics
  • methods
  • mapping rules

If a backend with the selected system-name is found, it will be updated. Only missing metrics, methods will be created. Mapping rules will be replaced, deleting existing old mapping rules.

3scale instances can be either a URL or the name of a remote.

NAME
    copy - Copy backend

USAGE
    3scale backend copy [opts] -s <source-remote>
    -d <target-remote> <source-backend>

DESCRIPTION
    This command makes a copy of the referenced backend. Target backend will
    be searched by source backend system name. System name can be overridden
    with `--target-system-name` option. If a backend with the selected
    `system-name` is not found, it will be created.

    Components of the backend being copied:

    metrics

    methods

    mapping rules

    If a backend with the selected `system-name` is found, it will be
    updated. Only missing metrics, methods and mapping rules will be created.

OPTIONS
    -d --destination=<value>             3scale target instance. Url or
                                         remote name
    -s --source=<value>                  3scale source instance. Url or
                                         remote name
    -t --target-system-name=<value>      Target system name. Default to
                                         source system name
3scale backend copy [-t target-system-name] -s 3scale1 -d 3scale2 backend_01