v0.6.0: strengthen backup integrity
pipeline / test (push) Has been cancelled
pipeline / build (push) Has been cancelled

This commit is contained in:
Ein Anderssono
2026-06-15 00:34:32 +02:00
parent 0a905758cc
commit 05188e5451
13 changed files with 840 additions and 97 deletions
+4 -2
View File
@@ -49,7 +49,8 @@ func ConvertFromJSONL(dir string) (Manifest, error) {
}
for id, e := range src.Entries() {
dst.Add(id, e.Filename, e.Size, e.Cloud)
e.ID = id
dst.AddEntry(e)
}
os.Remove(JSONLPath(dir))
@@ -69,7 +70,8 @@ func ConvertFromSQLite(dir string) (Manifest, error) {
}
for id, e := range src.Entries() {
dst.Add(id, e.Filename, e.Size, e.Cloud)
e.ID = id
dst.AddEntry(e)
}
if err := dst.Save(); err != nil {
return nil, fmt.Errorf("save jsonl: %w", err)