casync-rs
Experimental: Pure rust implementation of casync https://github.com/systemd/casync
Very minimal implementation of casync tool.
Command Usage
input
file will be chunked,index.caidxanddefault.castr` is created with chunks.
casync-rs make --file input
Expects
index.caidxanddefault.castrdirectory to be present to constructoutfile from the chunks and index.
casync-rs extract --file out
Expects
default.castrpresent with chunks corresponding to index.caidx file to construct theoutfile.
casync-rs extract -i index.caidx --file out
Created
default.castrdirectory and download chunks to it, followed by construction ofoutfile from the givenindex.caidxfile.
casync-rs extract -i index.caidx -s http://0.0.0.0:8000/ --file out
Creates
outfile from/index.caidxand/default.castrendpoint from remote store to constructoutfile.
casync-rs extract -i http://0.0.0.0:8000/index.caidx -s http://0.0.0.0:8000/ --file out
Default minimum chunk size: 512KB and maximum chunk size: 1024KB
Test scenario
- Run
python -m http_serverwhich runs http server on 8000 port - In a different folder run
--extractto create artifact. store and index file are also created in the same folder