Giter Club home page Giter Club logo

zipseries's Introduction

zipSeries CLI

1   Introduction

1.1   What is zipSeries CLI?

zipSeries CLI is a command line interface for the software zipSeries.

Copy libraries / objects from one iSeries (AS/400) to another running the same (or lower) release of OS/400 as the source machine

1.2   How is zipSeries CLI licensed?

MIT license. See the LICENSE file in the distribution.

1.3   zipSeries --help

$ zipSeries --help
usage: usage: zipSeries [--version] | [--help] | [OPTION]...

Copy libraries / objects from one iSeries (AS/400) to another running the same
(or lower) release of OS/400 as source.

source options:
  -s , --source-svr       set server for the source
  -u , --source-usr       set user profile for the source
  -p , --source-pwd       set user password for the source
  -l , --source-lib       set library for the source
  -o , --source-obj       set object for the source - leave blank if whole
                          library is saved
  --source-obj-type       set object type for the source
  -c , --source-config    read source config from file
  --source-save-file      save OS/400 savfile locally all --target-* options
                          will ignored
  --source-job-log-file   save source servers job log to a file

target options:
  --target-release        set OS/400 release for the target
  -S , --target-svr       set server for the target
  -U , --target-usr       set user profile for the target
  -P , --target-pwd       set user password for the target
  -L , --target-lib       set library for the target
  -C , --target-config    read target config from file
  --target-save-file      restore from OS/400 savfile stored locally all
                          --source-* options will ignored
  --target-restore-cmd    command to run when object(s) / library is restored
                          on target machine
  --target-job-log-file   save target servers job log to a file

options:
  --source-job-log        display source servers job log
  --target-job-log        display target servers job log
  --no-prompt             do not prompt on empty password and empty object
  -v, --verbose           be more verbose/talkative during the operation
  --trace                 trace commands and other information
  --silent                silent mode. Don't output warnings
  --version               output version information and exit
  --help                  show this help message and exit

2   Install

$ cd ~
$ git clone https://github.com/andlrc/zipSeries ~/.zipSeries
$ cd .zipSeries
$ echo 'PATH="$PATH:$HOME/.zipSeries/bin" >> ~/.bashrc'

3   Usage

3.1   Copy single object

# You will be prompted with password
zipSeries \
        --source-svr server1 --source-usr QSECOFR --source-lib MYLIB --source-obj MYOBJ \
        --target-svr server2 --target-usr QSECOFR --target-lib MYLIB

3.2   Copy multiply objects

# You will be prompted with password
zipSeries \
        --source-svr server1 --source-usr QSECOFR --source-lib MYLIB --source-obj MYOBJ --source-obj MYOBJ2 \
        --target-svr server2 --target-usr QSECOFR --target-lib MYLIB

3.3   Copy whole library

# You will be prompted with password
zipSeries \
        --source-svr server1 --source-usr QSECOFR --source-lib MYLIB \
        --target-svr server2 --target-usr QSECOFR --target-lib MYLIB

3.4   Making backup

By specifying --source-save-file file.4zs you can take local backups

# You will be prompted with password
zipSeries \
        --source-svr server1 --source-usr QSECOFR --source-lib MYLIB --source-obj MYOBJ \
        --source-save-file ~/my_save_file.zs4

3.5   Restoring from backup

By specifying --target-save-file file.4zs you can restore from a local backup

# You will be prompted with password
zipSeries \
        --target-save-file ~/my_save_file.zs4 \
        --target-svr server --target-usr QSECOFR --target-lib MYLIB

3.6   Config Files

You can create config files to ease tedious backup processes etc, all config files should be stored in /etc/zipSeries and should have the extension .conf:

$ cat /etc/zipSeries/server1.conf
svr server1
usr QSECOFR
pwd secret
lib MYLIB
obj MYOBJ

$ zipSeries \
        --source-config server1 \
        --source-save-file ~/my_save_file.zs4

4   Next Versions

See TODO.md

zipseries's People

Contributors

andlrc avatar sandeshshrestha avatar

Watchers

 avatar  avatar

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.