Coder Social home page Coder Social logo

go-sync's Introduction

go-sync presentation

go-sync or gsync is a CLI tool written in go to mirror 2 directories on the filesytem

Why such a tool when there's rsync or other ?

Well, using rsync in Cygwin on Windows caused me many issues (unreadable files) due to permissions and ownership. Especially with NTFS filesystem when files are copied from 1 machine and accessed from another Windows system (to be honest I did not really investigate the mitigations)

If you are on Linux/Unix, you'd better use rsync

Limitations

  • does not follow links, neither create them

Build

  • Install go>=1.11
  • Run the Makefile make
  • The binary is copied into the bin directory

Usage

Example, mirror folder source1 and source2 into the destination directory destDir in dry-run mode

gsync -s source1 -s source2 -m -d destDir --dry-run

Then

gsync -s source1 -s source2 -m -d destDir

go-sync's People

Contributors

lucdew avatar

Stargazers

fanyang avatar Kroum Tzanev avatar

Watchers

James Cloos avatar  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.