add: ability to store entire directories

This commit is contained in:
trisua 2025-06-08 00:42:56 -04:00
parent 232a2fc2d9
commit 65c127b86f
6 changed files with 210 additions and 12 deletions

View file

@ -22,8 +22,28 @@ Delete file and all chunk off remote:
renbin -i ./path/to/file.ext.toml -e rentry -x
```
Store entire directory as ledger:
```
renbin -i ./ -r -s target -s .git -n dir_name -e rentry
```
Note that `-s` (`--skip`) is used to ignore directories/files. Any file matching the names given through skip will be ignored.
The `-n` (`--name`) flag is required to give a name to the ledger.
Restore from ledger:
```
renbin -i ./dir_name.toml -r -e rentry -d
```
### Local
You can also store files locally using `-e fs` (`--engine fs`). This mode is generally **_much_** quicker. This is the mode that will be used by default if no engine flag is provided.
Local files are split into chunks of exactly 200 KB, while the rentry engine splits files into chunks of 150 KB. While larger chunks _could_ be used, that's not as fun.
```
```