Files
wekan/server/lib
Lauri Ojansivu 6f3f6cc5a8 Import and export Sandstorm grain backups.
A new Sandstorm heading on the Import page and in the Export menu lists the
apps whose grain backup .zip (Download backup) WeKan reads, and for most of
them writes back as a grain Sandstorm restores. The grain's metadata, a
GrainInfo Cap'n Proto message, is read and written without a Cap'n Proto
library; each app's data is read from its own storage in data/:

- WeKan: FerretDB's SQLite (JSONB documents with their own type schema) and
  the attachments; several boards become swimlanes, "One board per
  project" splits them again. Import only.
- Prioritize (data.json), Yet Another TODO list (SQLite), uTodo (a bitcask
  log with CRC-32s), SandChat (SQLite), EtherCalc (SocialCalc's save
  format), Radicale calendar (.ics) and address book (.vcf), Davros (the
  files) and Hacker CMS (a Jekyll site): import and export.
- Gogs (SQLite issues) and WordPress (its SQLite posts and pages): import
  only - their grains are whole installations.

Rocket.Chat, Text Editor, SandForms and Piwik keep their data in MongoDB's
or MySQL's own files; their grains are refused with that reason, and any
grain of another app than the one chosen with the app it is. SQLite is read
and written with Node's own node:sqlite in a temporary directory. Every
reader was run on real grains of these apps; the tests make their own.

Low confidence translations include ace, ak, ay, ba, bi, bm, bo, bua, chr,
csb, cv, dz, ee, ff, fj, fo, fur, gn, gv, ha, haw, hsb, ig, iu, kl, kok, ks,
kw, tlh, vo, tig, wal, nah, qu, zgh, ve-PP, rup, lld, szl, sah, se, om, wo,
sm, to, tpi, rn, nd, ss, ts, ve, nso, st, tn, sn, ny, lg, mg, mi, sc, scn,
nap, wa, wa-RR, ve-CC, pap, yi, sd, mai, or_IN, uz-AR, ug, wuu-Hans, rm and
oc.

Thanks to xet7 !
2026-11-21 03:47:22 +02:00
..