https://github.com/bga/cp-blocks
Smart CLI copy file tool. POSIX compliant. Overwrites only changed clusters in destFile. Supports stdin
https://github.com/bga/cp-blocks
Last synced: 4 months ago
JSON representation
Smart CLI copy file tool. POSIX compliant. Overwrites only changed clusters in destFile. Supports stdin
- Host: GitHub
- URL: https://github.com/bga/cp-blocks
- Owner: bga
- License: apache-2.0
- Created: 2020-11-26T11:12:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-09T01:15:10.000Z (over 2 years ago)
- Last Synced: 2024-12-30T17:45:15.556Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Smart CLI copy file tool. POSIX compliant. Overwrites only changed clusters in destFile. Supports stdin. Supports destFile spitting.
```
./cp-blocks [options] (srcFile | -) (destFile | destDir/)
copy srcFile to destFile but do not overwrite same blocks
if destDir passed then destFile = destDir + basename(srcFile)
version 1.1.5
Options:
-S, --split-size N(M | G) split to files destFile.%03d
-n, --dry-run dry run
-#, --progress show progress
-r, --return-true-if-modified return true if modified
-s, --stat output statistics
-m, --show-modified-blocks dump modified blocks offsets
```