add: ability to store entire directories
This commit is contained in:
parent
232a2fc2d9
commit
65c127b86f
6 changed files with 210 additions and 12 deletions
20
README.md
20
README.md
|
@ -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.
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue