Giter VIP home page Giter VIP logo

xcp's Introduction

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)

xcp's People

Contributors

yaronha avatar gtopper 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.