Commit c13fce5
authored
[POSIX] Migrate allows writing checkpoint (#906)
This is a pragmatic way to support setting up mirrors (#576) from POSIX logs.
Confirmed this works by cloning SumDB to a POSIX TLogTiles log:
```shell
go run github.com/transparency-dev/incubator/tree/main/sumdb/cmd@main
--listen=":8089" &
go run ./cmd/experimental/migrate/posix \
--storage_dir ~/log-clones/sumdb \
--source_url http://localhost:8089/ \
--save_checkpoint
echo sum.golang.org+033de0ae+Ac4zctda0e5eza+HJyk9SxEdh+s3Ux18htTTAD8OuAn8 > ~/.go.sum.vkey
go run github.com/transparency-dev/tessera/cmd/fsck@main \
--storage_url file:///${HOME}/log-clones/sumdb/ \
--public_key ~/.go.sum.vkey \
--origin "go.sum database tree"
```1 parent 10c5ad5 commit c13fce5
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
0 commit comments