Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installing a new version

From 0.5.2 on, formicaria updates itself

formicaria says when a newer version is out, in a line at the top of every formicaria page: press Update and it does the rest. On a computer, formicaria’s browser also shows it in its own bar, above whatever tab is in front — Settings, or a web page — and that Update brings your notes forward and updates from there; Later waits three days. (Before 0.22.0 this was only in Settings → About & updates, in three presses.) formicaria asks GitHub every hour, while it runs and when it starts, and Check now in Settings asks straight away; nothing about you, this computer or your notes is sent.

  1. Press Update — in that line, or Update to v… in Settings. formicaria downloads the new version and checks that it is exactly what the release published, signed by us. Anything that does not match is refused, and nothing has changed yet. Stop stops it; pressing Update again carries on from where it was.
  2. As soon as it is checked, formicaria saves what you have typed, replaces its own program inside the folder it runs from, and restarts; the page loads again by itself once the new version is up. Your notes do not move — they stay in the vault folder beside it. If a sync or backup is still running it says so and changes nothing; press Update again when it has finished.
  3. The version you had is kept. If the new one does not suit you, Settings → Go back to v… puts it back.

Later puts the line away for three days for that version; a newer version is shown at once. The offer is always in Settings too.

If the new version will not start, start formicaria again the way you always do. When it fails to start a few times in a row, the launcher puts the previous version back by itself.

Settings says when a copy cannot update itself, and why — usually a folder the system protects (move it to your home folder), or a folder set up by a version older than 0.5.2, which needs the way below once. On a phone, see formicaria on an Android phone.

If Check now says it could not look, and the message mentions status code 403, GitHub has refused the question, not formicaria: in versions up to 0.6.9 the check uses a GitHub service that answers only a limited number of anonymous questions an hour from one network, and everybody on an office, university or phone network shares that number. Wait a while and press Check now again, or try from another network. Later versions ask a different way and do not meet this.

While a newer version is on offer, a second line says when it was found and has its own Check now, in case a newer one still has come out since.

A copy you built yourself from the source can take a published release the same way, as long as you start it from its icon. The release is installed beside your build, not over it: Go back to the build made here returns to it, and so does building again.

By hand, into a new folder

Your notes are not in the new download. They are still in the folder you have been using. Nothing about an update removes them — but you do have to bring them across, and this section is how.

Why there is anything to do at all

A download does not install itself. Each version arrives as its own folder — formicaria-v0.2.1-linux-x86_64, then formicaria-v0.2.2-linux-x86_64 — and your notes live in the vault folder inside the one you have been using. That is what makes the app portable: copy the folder to a USB stick and your notes go with it.

The cost of that is this page. A new download is a new folder, so it starts empty and opens on the same Start here note you saw the first time. It looks as though your writing is gone. It is not: it is in the old folder, untouched.

Do not delete the old folder until you have started the new one and seen your notes in it. Everything below is reversible while the old folder still exists.

The short way

  1. Unpack the new download beside the old folder.

  2. Open the new folder and double-click:

    Your systemFile
    WindowsUpdate from an older folder.bat
    macOSUpdate from an older folder.command
    LinuxUpdate from an older folder.sh
  3. It finds the old folder, says how many notes it is about to copy and whether they have history, and waits for you to type yes.

If you keep several old versions it will not guess between them — it lists what it found and asks you to drag the one you want onto the same file.

It copies into the new folder only. The old folder is never written to and never deleted, so it remains a complete second copy until you remove it yourself.

The manual way

Copy the vault folder from the old folder into the new one. That is the whole operation — your notes, their history, your attachments, your saved views and your theme all live inside it.

Two things not to copy:

  • vaults.json. It records each notebook’s absolute location, so the old folder’s copy points back at the old folder. Bring it across and the new version quietly keeps writing into the folder you are about to delete. Leave it behind and it is written afresh, pointing at the vault beside it.
  • vault/index.sqlite, if you see one. It is this machine’s search index, rebuilt automatically the next time the app starts. Copying it is harmless but pointless.

Notebooks you keep somewhere else

If you made notebooks outside the app’s folder — anywhere of your own choosing — the new version will not know about them until you add them again. The notes themselves are untouched wherever you put them. Add each one back with New vault, pointing at the folder that is already there.

The update script lists any it finds in your old settings, so you know what to re-add rather than discovering the gap later.

On the phone

Different mechanics, same question.

  • Updating the app keeps everything. Install the new APK over the old one and your notes, history and attachments stay where they are.
  • Uninstalling erases them, permanently. A phone vault lives in the app’s private storage, which Android deletes with the app. There is no copy anywhere else unless you made one.
  • The phone has no snapshot tier — restic does not exist on Android — so attachments on a phone have exactly one copy until they reach a computer.

Before you uninstall, or reset the phone: back up. Open Back up and push your notes to a remote. That covers the text and its history. Photos and recordings need a computer — see Backup & versioning.

Which version am I running?

Settings → About & updates → version. A release shows its tag; a build made from source says dev. It is worth checking when you have two folders and are not sure which one your browser is showing.

In formicaria’s browser a newer version is offered at the top of every page (Update), and in Settings → About & updates (Check now): ⚙ at the top right of the window, on every tab.