GithubHelp home page GithubHelp logo

musync's Introduction

musync

musync is a small rust program that makes two directories contain the same files using a smaller number of copies and deletes than overwriting each file.

Usage

musync FROM_DIR TO_DIR or cargo run -- FROM_DIR TO_DIR Where FROM_DIR has the files you want to sync and TO_DIR is the directory you want to sync the files to.

Why

I wrote this tool after trying to sync my music collection (stored on an smb share) to my phone (over mtp) and an sd card (mounted locally). rsync seemed like a good fit, but unfortunately, I am big dum and could not figure out the right subset of its many options would give me what I wanted.

Notes

I wrote this tool as a learning exercise. Don't point it at a directory that contains any files you value.

musync only compares name, path and length of files to determine equivalence. This is to prevent reading the entire file into memory to compute hashes or checksums. Therefore if you update a file in the source directory and it retains the same name and length it will not be moved.

Applications

I created this tool after I exceeded the write endurance of an SD card from repeatedly copying my music libary to it after getting new music.

musync's People

Contributors

nbfritch avatar

Watchers

 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.