Categorygithub.com/v3io/xcp
repositorypackage
0.2.6
Repository: https://github.com/v3io/xcp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

xcp

fast directory copy to/from any combination of local files, AWS S3, and iguazio v3io

Usage

xcp [flags] source dest

Example:

xcp -r -f *.ipynb v3io://webapi:8081/users/iguazio tsts8

source and destination are URLs

for faster performance (parallelism) use more workers using the -w flag

URL examples:

 s3 paths:
    s3://<bucket>/path
    s3://<access_key>:<secret_key>@<bucket>/path
    
 v3io paths:
    v3io://<API_URL>/<container>/<path>
    v3io://<username>:<password>@<API_URL>/<container>/<path>
    v3io://:<session_key>@<API_URL>/<container>/<path>

 local paths:
    path/to/files
    /opt/xyz
    c:\windows\path

Note: S3 credentials can be loaded from the standard environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
v3io URL and credentials can be loaded from environment variables (V3IO_API, V3IO_USERNAME, V3IO_PASSWORD, V3IO_ACCESS_KEY)

Flags

  -r    
        Recursive (go over child dirs)
  -f string
        filter string e.g. *.png
  -hidden
        include hidden files (start with '.')
  -empty
        include empty files (size=0)
  -m int
        maximum file size
  -n int
        minimum file size
  -t string
        minimal file time e.g. 'now-7d' or RFC3339 date
  -v string
        log level: info | debug (default "debug")
  -w int
        num of worker routines (default 8)