Git Product home page Git Product logo

csync's Introduction

csync

'csync' is a multi-node, multi-process rsync executor for copying large amount of files on clustered file system.

Overview

If you have total 100TB files on a clustered file system and want to rsync them to another fs, you probably need to run multiple rsync processes on multiple hosts. 'Csync' will help you in such situation. For example,

source directory: /fs1/src
destination directory: /fs2/dst
master host which csync runs on and which can read /fs1/src: csync_host
source hosts which can read /fs1/src: src_host_a, src_host_b
destination hosts which can write /fs2/dst: dst_host_c, dst_host_d
source directory tree:
  /fs1/src/
  /fs1/src/a/
  /fs1/src/b/
  /fs1/src/b/c
  /fs1/src/b/d
commandline: ./csync -p 2 -r src_host_a:dst_host_c -r src_host_b:dst_host_d -s /fs1/src -d /fs2/dst

+----------+  +------------+                         +----------+ 
|          |--| csync_host |--ssh--------+           |          |
| /fs1/src |  |            |--ssh------+ |           | /fs2/dst |
|          |  +------------+           | |           |          |
|          |                           | |           |          |
|          |  +------------+         +-+----------+  |          |
|          |--| src_host_a |--rsync--| dst_host_c |--|          |
|          |  |            |--rsync--|            |  |          |
|          |  +------------+         +------------+  |          |
|          |                             |           |          |
|          |  +------------+         +---+--------+  |          |
|          |--| src_host_b |--rsync--| dst_host_d |--|          |
|          |  |            |--rsync--|            |  |          |
+----------+  +------------+         +------------+  +----------+

csync executes:
 1a. ssh dst_host_c rsync -dgloptADHX src_host_a:/fs1/src/ /fs2/dst/
 1b. ssh dst_host_c rsync -dgloptADHX src_host_a:/fs1/src/a/ /fs2/dst/a/
 1c. ssh dst_host_d rsync -dgloptADHX src_host_b:/fs1/src/b/ /fs2/dst/b/
 1d. ssh dst_host_d rsync -dgloptADHX src_host_b:/fs1/src/b/c/ /fs2/dst/b/c/

 (after 1a. completed)
 2a. ssh dst_host_c rsync -dgloptADHX src_host_a:/fs1/src/b/d/ /fs2/dst/b/d/

As you can see above, each rsync will copy files in a directory but not sub-directories.

csync's People

Contributors

managata avatar

Stargazers

 avatar

Forkers

omidrey

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.