17 releases

0.6.0 Sep 9, 2020
0.5.3 Apr 20, 2020
0.5.2 May 11, 2019
0.5.1 Feb 16, 2019
0.4.2 Jul 19, 2018

#457 in Command line utilities

Download history 40/week @ 2020-08-07 7/week @ 2020-08-14 26/week @ 2020-08-21 45/week @ 2020-08-28 69/week @ 2020-09-04 11/week @ 2020-09-11 17/week @ 2020-09-18 11/week @ 2020-09-25 24/week @ 2020-10-02 9/week @ 2020-10-09 29/week @ 2020-10-16 7/week @ 2020-10-23 8/week @ 2020-10-30 11/week @ 2020-11-06 7/week @ 2020-11-13 8/week @ 2020-11-20

111 downloads per month
Used in ramup

BSD-3-Clause

42KB
1K SLoC

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
    • Older than the source
    • Or size is different

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

~3MB
~62K SLoC