项目作者: vadimshchukin

项目描述 :
z/OS data set synchronization utility
高级语言: Java
项目地址: git://github.com/vadimshchukin/zsync.git
创建时间: 2015-09-03T11:57:39Z
项目社区:https://github.com/vadimshchukin/zsync

开源协议:MIT License

下载


zsync

Overview

z/OS data set uploading utility. Efficently uploads/synchronizes files to a z/OS system using only standard FTP connection. The JAR file includes all dependencies.

Features

  • Uploads only files that have been added/changed on the local side.
  • Removes files that have been deleted on the local side.
  • Creates data sets with specified allocation parameters if neccesary.

Command-line options

  1. -h,--help print this help and exit
  2. -s,--hostname <arg> FTP hostname
  3. -u,--username <arg> FTP username
  4. -p,--password <arg> FTP password
  5. -l,--local-root <arg> local root
  6. -r,--remote-root <arg> remote root
  7. -e,--exclude-path <arg> exclude path from the synchronization
  8. -d,--datasets-options <arg> data sets allocation parameters
  9. -x,--index-file <arg> index file
  10. -v,--verbose verbose
  11. -i,--update-index update index
  12. -o,--upload upload

Examples

Uploads added/changed files in the “local root directory” to the “remote data set name prefix” sandbox:

  1. $ java -jar zsync.jar -s"server address" -u"FTP username" -p"FTP password" -l"local root directory" -r"remote data set name prefix" -o

The following example shows the usage of the automatic data set allocation parameters specification. It would allocate data sets with the specified parameters if necessary:

  1. $ java -jar zsync.jar -s"server address" -u"FTP username" -p"FTP password" -l"local root directory" -r"remote data set name prefix" -d"allocation parameters file" -vo

The content of the “allocation parameters file”:

  1. ASM PDSTYPE=PDSE RECFM=FB LRECL=80 BLKSIZE=32720 DIRECTORY=100 SPACETYPE=TRACK PRIMARY=20 SECONDARY=100
  2. CPP PDSTYPE=PDSE RECFM=VB LRECL=255 BLKSIZE=32720 DIRECTORY=100 SPACETYPE=TRACK PRIMARY=20 SECONDARY=100

Dependencies

zsync depends on the following libraries: