19 releases

0.7.2 Feb 2, 2022
0.7.0 Dec 21, 2020
0.6.0 Sep 9, 2020
0.5.3 Apr 20, 2020
0.4.2 Jul 19, 2018

#1500 in Command line utilities

Download history 68/week @ 2024-01-27 18/week @ 2024-02-03 18/week @ 2024-02-24 4/week @ 2024-03-02 11/week @ 2024-03-09 2/week @ 2024-03-16 166/week @ 2024-03-30

179 downloads per month
Used in ramup

BSD-3-Clause

41KB
992 lines

Contains (ELF exe/lib, 9KB) tests/data/a_dir/foo.exe

rusync

Minimalist rsync implementation in Rust.

Usage

$ cargo install rusync
$ rusync test/src test/dest
:: Syncing from test/src to test/dest …
 50% 24/50 Downloads/archlinux.iso   00:01:30

Caveat

We do everything we can to make sure data loss is impossible, but despite our best efforts, it may still happen.

Please make sure your files files are backed up if necessary before using rusync on sensitive data.

Thank you for your understanding!

Features

  • Easy to remember command line syntax.

  • Print progress on one line, and erase it when done, thus avoiding flooding your terminal with useless noise.

  • Displays a reliable ETA, without sacrificing speed.

  • Unsurprising behavior: missing directories are created on the fly, files are only copied if:

    • destination is missing
    • destination exists but is older than the source
    • or source and destination have different sizes

Command line options

Just two at the moment:

  • --no-perms: preventsrusync from trying to preserve file permissions (useful if you copy data from a Linux partition to NTFS for instance).
  • --err-list FILE: write name of entries that caused errors in the given file, separated by \n

State of the project

I consider this project done - I don't intend on adding new features. The goal was to learn more about Rust and I've learned plenty of things already. If there's a feature present in rsync that is not available in rusync, just use rsync - or try and implement the feature yourself, I'll be happy to review and merge your changes :)

Dependencies

~3–12MB
~116K SLoC