Skip to content
/ xcp Public

fast directory copy for local files, AWS S3, and iguazio v3io

License

Notifications You must be signed in to change notification settings

v3io/xcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)