GithubHelp home page GithubHelp logo

aipescience / copy-files-in-parallel Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 3.0 9 KB

A python wrapper to rsync and parallel to copy a large number files using parallel threads.

License: Apache License 2.0

Python 100.00%

copy-files-in-parallel's Introduction

copy-files-in-parallel

A python wrapper to rsync and parallel to copy a large number files using parallel threads.

Prerequisites

You need GNU parallel to run this script. On debian/Ubuntu you should be able to install it using:

apt-get install parallel

For other systems, please follow the information on (http://www.gnu.org/software/parallel/).

Usage

To copy all files and directories in foo to bar use:

copy-files-in-parallel /path/to/foo /path/to/bar

or

copy-files-in-parallel /path/to/foo other.machine:/path/to/bar
copy-files-in-parallel other.machine:/path/to/bar /path/to/foo

for a copy using ssh.

More information can be found using the -h/--help option:

usage: copy-files-in-parallel [-h] [-j J] [-c C] [--resume RESUME] [--dry]
                              [--lfs] [--arcfour] [--tmp TMP]
                              source destination

Copy files in parallel.

positional arguments:
  source           source path
  destination      destination path

optional arguments:
  -h, --help       show this help message and exit
  -j J             number of threads to use
  -c C             number of files in one chunk
  --resume RESUME  resume previous job (skip finding files)
  --dry            perform a trial run with no changes made
  --lfs            use lustre utilities
  --arcfour        use arcfour as compression algorithm
  --tmp TMP        path to store temporary data

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.