Mossnote docs Open Mossnote

Your data

Data and backups

Where your journal is stored, how to export and import it, how snapshots work, and how to get back something you deleted.

Your journal belongs to you and stays with you. This page explains where it lives, how to copy it out, and the safety nets Mossnote keeps for you. Everything is under Settings → Data & backup.

Where your journal lives#

Computer version
Each journal is one SQLite file (<name>.db) in a data folder just for you. The default folder is:
SystemDefault folder
macOS~/Library/Application Support/Mossnote/
Linux$XDG_DATA_HOME/mossnote/ (usually ~/.local/share/mossnote/)
Windows%APPDATA%\Mossnote\
Inside are one .db per journal, a backups/ folder of snapshots and a few small bookkeeping files. Change the folder with --data-dir or MOSS_DATA_DIR. Installing, upgrading or reinstalling Mossnote never touches this folder.
Web version
Each journal is a database in the browser's own storage on that device. Clearing the site's data, or losing the device, loses it unless you exported a copy. See The web version.

The Data & backup section shows which of the two you have and, on a computer, the exact folder with a Copy button and an Open folder button.

Settings, Data and backup, on the computer version. The Data folder row shows the full path with Copy and Open folder buttons. Below are the journal's records and the export, import and back-up buttons. An orange box marks the data folder line and another marks the Open folder button.
On the computer version. (1) The data folder, (2) a button that opens it in your file manager.

Export#

Exporting makes a file you can keep, read or move.

The Data and backup section of Settings. A summary of the journal, then four buttons outlined in orange and numbered: Export JSON, Export Markdown, Import JSON and Back up now.
The Data & backup buttons. (1) Export JSON, (2) Export Markdown, (3) Import JSON, (4) Back up now.
  • Export JSON downloads mossnote-YYYY-MM-DD-HHMM.json, a complete copy that Mossnote can import again. It holds your notes, people, farm entries, maps, tags and settings. It does not hold the older versions kept for each map (History in the map editor). Keep this one as your real backup. Format details.
  • Export Markdown downloads mossnote-YYYY-MM-DD.md, a plain-text version you can read anywhere: your journal by day, undated notes, questions (open and solved), people, farm entries and maps. It cannot be imported back.
  • You can also download any journal, open or not, from Settings → Journals.

Import#

Import replaces everything in the journal that is open with the contents of a JSON file, including the journal's template and calendar, and it clears the version history of every map. Your other journals are untouched. The snapshot taken first still holds everything that was there.

  1. Choose Import JSON and pick a file made by Export JSON (up to 50 MB).
  2. Mossnote checks the file without changing anything. If it is not valid, you get a list of what is wrong (up to 20 items) and Nothing was changed., for example That file isn't a Mossnote export.
  3. If it is valid, you see what it holds: Contains 3 notes, 0 NPCs, 0 maps, 0 tags. Importing replaces everything in “…” only. Choose Replace this journal or Cancel.
  4. Confirm Replace your journal? Mossnote saves the journal as a snapshot first (Before an import), runs the import in one step, and reloads.

If the import fails part-way, the journal is left as it was and the message names the snapshot that was saved first. To bring a journal back onto the other kind of Mossnote, export it from one and import the file in the other.

A single map has its own export and import: see Exporting a map.

Snapshots#

A snapshot is a full copy of a journal at one moment. They are safe to take while the app runs. Restoring one puts the journal back to that moment.

The Snapshots list in Settings. Each row shows a date and time, a reason such as Automatic or Made by you, the size, and Restore and Delete buttons.
The snapshot list. Newest first, each with its reason.
Shown asMadeKept (per journal)
AutomaticAt start, if the newest snapshot is over 24 hours old (computer version)The newest 14 (MOSS_BACKUP_KEEP)
Before an updateBefore an upgrade changes a journalThe newest 3
Before an importBefore an import replaces the journalThe newest 5
Before a restoreBefore a snapshot is restoredThe newest 5
Made by youWhen you choose Back up now, and when you delete a journalAll of them
  • Back up now makes a snapshot at once and says Saved a snapshot: …. The summary above the buttons shows the last snapshot's time and how many you have.
  • Restore asks Restore this snapshot?, saves the journal as it is now first (Before a restore), then goes back. To undo a restore, restore that newer snapshot.
  • Delete removes one snapshot; your journal is unaffected.

We tested the full cycle in the web version: Back up now, change the journal, Restore, and the journal returned to the snapshot while a Before a restore snapshot appeared.

Starting safely (computer version)#

  • Every start runs an integrity check. If it fails, Mossnote refuses to start and names the newest snapshot. To restore by hand: stop Mossnote, copy the snapshot from backups/ over the journal's .db file, delete that journal's .db-wal and .db-shm files, and start again.
  • Upgrades. A journal is brought up to date automatically the first time a newer version opens it, after a Before an update snapshot. A journal made by a newer version is left untouched and not opened.
  • Going back to an older version of Mossnote is not supported. If you must, restore the Before an update snapshot.
  • Only one copy of Mossnote can have a journal open at a time: a lock file next to the journal guards it, and a second copy for the same journal refuses to start.

Recently deleted#

When you delete a note, person, farm entry or map, Mossnote does not destroy it. It moves to Settings → Recently deleted for 30 days, then is removed for good.

Settings, Recently deleted. A line says After 30 days, deleted items are gone for good, a button to delete everything here forever, and a list of deleted items, each with its kind, text, deletion time and Restore and Delete forever buttons.
Recently deleted. Each item can be restored or deleted for good.
  • Restore puts the item back, with its tags and links.
  • Delete forever (and Delete everything here forever) asks first and cannot be undone.
  • An empty list says Nothing here. Anything you delete stays here for 30 days first.
  • A deleted note shows Note deleted with Undo for a few seconds first. See Deleting and undoing.
  • Deleting a whole journal is different: it does not go here. See Deleting a journal.

Privacy#

  • Mossnote never sends your notes anywhere. There are no accounts, analytics, crash reports or update checks. The source has an automated check that fails the build if it contains a web address that could be fetched.
  • Nothing is shared unless you export a file and send it yourself.
  • Phone access (computer version) is off until you turn it on, and then lets only the devices you paired reach your own computer. See Phone access.

These pages describe Mossnote 0.1.0-beta.1 and were checked against the source and the running app. Something wrong or missing? Tell us on GitHub.