feat(#38): backup envelope, problems and SAF I/O from floret core-backup
This commit is contained in:
1 parent
a81a3641ce
commit
5ab92d65e2
16 files changed
+319
-130
No files matched your search
+6
-1
@@ -4,7 +4,9 @@
|
||||
own data, written to (and read from) a user-chosen folder via SAF
|
||||
(`docs/PLAN.md` §7). This file is the schema's source of truth; the codec
|
||||
(`data/backup/BackupDto.kt`, `BackupCodec.kt`) implements exactly what is
|
||||
written here.
|
||||
written here. The envelope (`format`, `version`, `exportedAt`) and the
|
||||
version and size rules are floret-kit's `core-backup` `BackupFormat`, shared
|
||||
with Calendula's settings backup; the sections are Clockula's own.
|
||||
|
||||
## Top level
|
||||
|
||||
@@ -30,6 +32,9 @@ written here.
|
||||
tomorrow's, or a paused one back on. The file name stays
|
||||
`clockula-backup-v1.json` so an existing backup folder keeps working.
|
||||
- `exportedAt`: epoch milliseconds, informational only (not re-imported).
|
||||
A file without `version` or `exportedAt`, or with either not a plain
|
||||
number, is rejected as damaged.
|
||||
- A leading byte-order mark (an editor re-saving the file) is ignored.
|
||||
|
||||
## Parsing rules
|
||||
|
||||
|
||||
Reference in new issue
Block a user