mirror of
https://github.com/luxfi/zapdb.git
synced 2026-10-30 15:12:20 +00:00
What this does do: - appends to manifest and syncs before deleting old files from disk, to ensure safety amidst kill -9 or system crash What this could do but does not: - include file size, smallest/biggest keys in the manifest - keep track of value log files It might be nice to have file size and include all files, to verify that a `cp -R` or file-based backup/restore has included everything. Right now this just gets us crash safety.
8 lines
212 B
Bash
Executable File
8 lines
212 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# You might need to go get -v github.com/gogo/protobuf/...
|
|
|
|
protos=${GOPATH-$HOME/go}/src/github.com/dgraph-io/badger/protos
|
|
pushd $protos > /dev/null
|
|
protoc --gofast_out=plugins=grpc:. -I=. *.proto
|