Skip to content

vrtdev/nexus_api_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nexus_api_tools

Nexus API tools

Tools to migrate repositories between Nexus servers.

This tool can modify the DockerRootDir / data-root setting so it should NOT be run on a Docker server.

Installation

python3 -m venv --clear venv
. venv/bin/activate
pip install -r requirements.txt

Usage

./nexus_copy.py --help

Action file

The Action file that can be passed as an argumet to the --file parameter is a yaml file with the following structure:

config:
  # local_path: 
  source_server: https://<source repo server>
  # source_user: admin
  # source_password: admin123
  destination_server: https://<destination repo server>
  # destination_user: admin
  # destination_password: admin123
  docker_source_server: <source docker repo server>
  docker_destination_server: <destination docker repo server>
  default_action: both
actions:
  # - repo: <repo-name>
    # description: Get & upload <repo-name> repo
    # type: <type>
    # action: both  # default, can be omitted
    # path: data/<repo>  # default, can be omitted
    # active: true  # default, can be omitted

Releases

No releases published

Packages

No packages published

Languages