fastcp-cli-0.2.4 is not a library.
fastcp
fastcp — a fast cp wrapper
Disclaimers
fastcpis NOT a replacement forcp.fastcpjust appends--reflink=alwaystocpcommands on filesystems that support it. You need to havecpinstalled in order to makefastcpwork.fastcpmay be slightly slower (~5ms) than normalcpon small files, but will be faster on big files over 10GB.fastcpwill always be faster thancpon slow drives, if a supported filesystem is used.- This is the Rust rewrite. It detects CoW/reflink support once per device and caches the result in
~/.config/fastcp/, instead of re-detecting on every single copy like the old shell version did. - Want the plain Bash version instead (e.g. you don't want to compile anything)? Switch to the
bashbranch, it has its own README with its own install instructions (It's not so-nicely written though).
Table of Contents
Quick Start
- On Arch
# or fastcp-bin for a prebuilt release
- Non-arch
Note: Make sure
~/.cargo/binis in yourPATH. It's added automatically by rustup, but iffastcpisn't found, add this to your shell config file:# If you use Bash: # If you use Fish: # If you use Zsh:
# Use it!
Uninstall
&&
Usage
fastcp is a wrapper around cp that appends --reflink=always when it makes sense and is supported. You can use it exactly like cp. There is no difference in flags.
To force fastcp to re-detect reflink support for a device (e.g. after converting a filesystem or enabling XFS reflink), just delete the matching file in ~/.config/fastcp/.