Copy a directory tree, making zero-size sparse copies of big files.
Copies a directory tree, preserving permissions and modification times, but making zero-size sparse copies of big files. See the README file.
bogocopy
Copies a directory tree, preserving permissions and modification times, but making zero-size sparse copies of big files.
Installing and running
Install in the standard Haskell way: cabal install bogocopy
, or stack install bogocopy
if using Stack.
Usage:
bogocopy [-v|--verbose] (-s|--size SIZE_MB) SRCDIR DSTDIR
copy a directory tree, preserving permissions and modification times, but making zero-size sparse copies of big files
DSTDIR
will be created.
Available options:
-h,--help
Show this help text
--v,--verbose
Verbose (debugging) output
--s,--size SIZE_MB
Size limit, files leq to this size (in MB) are real-copied, those above are not.
Bugs and limitations
- Limited to unix-like systems with
rsync
andcp
commands available. - Won't preserve the "ctime" (inode change time) of a node
- Tested in only a desultory fashion, use at your own risk.