Skip to content

Backup and Restore

Bulbasaur edited this page Dec 2, 2026 · 1 revision

Backup and Restore

English · 한국어

Easy Diary keeps your diary in a database on the phone, so a backup is the only copy you have if the phone is lost, wiped, or replaced. The app offers four different backup paths, and they do not all carry the same things. This page explains each one, what is inside it, and how to restore it.

Start with this rule: the app's own backup never carries your lock settings (PIN and fingerprint), and no backup carries your backup password or your diary-encryption PIN. Those are yours to remember.

The four backup paths at a glance

Path Menu What it contains Where it goes
Database backup Settings → Backup and Restore (Device Storage) → Backup diary All entries, tags, schedules, D-Days, settings, as one JSON file inside a ZIP. No photos. App-private storage, or a folder you pick
Database restore Recover diary Reads that ZIP back into the app From app storage or a file you pick
Google Drive backup Settings → Backup and Restore (Google Drive & Calendar) → Backup diary, Backup attached photos Database, and separately the attached photos Your Google Drive (GMS build only)
Full data backup [BETA] Backup full data / [BETA] Recover full data The entire working directory in one ZIP: database snapshot, photos, postcards, fonts, cached markdown A file you pick with the system file picker
Scheduled backup Settings → Schedule setting → a backup schedule Depending on the type: database, Google Drive, or the full archive Internal storage, Google Drive, or an external folder you pick

1. Database backup (local)

Settings → Backup and Restore (Device Storage)

  • Backup diary writes a ZIP named easy_diary.db_<yyyyMMdd_HHmmss>.zip into the app's own folder (AAFactory/EasyDiary/Backup/Database/). The ZIP holds a single pretty-printed JSON file, easy_diary_all.json, with one key per table: PREFERENCE, META, ACTION_LOG, ALARM, D_DAY, DIARY, TAGS, DIARY_TAG_CROSS_REF.
  • Backup to external storage writes the same ZIP to a location you choose with the system file picker, so you can put it in a shared folder, a cloud-synced folder, or an SD card.
  • Backup password (optional) — since v1.4.357 the app asks for a password before you choose where to save. Leave it empty and the ZIP is an ordinary, unencrypted ZIP. Enter a password and the file is written as an AES-256 encrypted ZIP (zip4j).
  • Delete backup file removes the backup ZIPs the app keeps in its own storage. Backups you saved to an external location are not touched.

Two things to know about the internal location: files there are deleted when you uninstall the app, and other apps cannot read them. Use Backup to external storage (or Google Drive) if the backup has to outlive the app.

2. Restoring the database

Settings → Backup and Restore (Device Storage) → Recover diary (from app storage) or Restore from external storage (from a file you pick).

  • A file is treated as a database backup when its name ends in .zip and contains db_. A full-data archive is not accepted here — restore that one with [BETA] Recover full data first (see below).
  • If the archive is encrypted the app asks for the password before it opens anything. A wrong password lets you try again; cancelling leaves your data exactly as it was. A damaged file is reported as a failed import, not as a successful one that changed nothing.
  • A restore replaces the current data. Each section in the file (action log, schedules, D-Days, entries, tags, tag links, settings) is cleared and written back from the backup. It is not a merge, so entries written after the backup are gone from the app once you restore.
  • Schedules are re-registered. The alarms the app had registered are cancelled, the restored rows are inserted, and the schedules that are switched on are registered again, so they run on the new data rather than on the old.
  • The app language is applied right after the restore, and the screens you open next use it.
  • Old backups still work. A backup written before tags existed has no TAGS or DIARY_TAG_CROSS_REF keys; the tag tables simply stay empty. Tag links that point at an entry or a tag missing from the file are skipped instead of failing the restore.

3. Google Drive backup (GMS build only)

Settings → Backup and Restore (Google Drive & Calendar)

  • Backup diary uploads the database backup; Recover diary downloads it again. Backup attached photos and Recover attached photos handle the photos as a separate job, which is why the photo part is marked BETA and can fail on some devices.
  • You must be signed in to a Google account; the app asks once and keeps the sign-in.
  • The FOSS build has no Google integration, so this page is not part of it. A Google Drive schedule that arrives from a restored backup is switched off with a notification instead of running into nothing (v1.4.358 반영 예정).

4. Full data backup

Settings → Backup and Restore (Device Storage) → [BETA] Backup full data

This is the one to use when you want everything: the app compresses its whole working directory (AAFactory/EasyDiary/ under the app's private storage) into a single ZIP and writes it wherever you point the system file picker.

Inside the archive:

  • Backup/Database/easy_diary.db_<yyyyMMdd_HHmmss>.zip — the latest database snapshot, produced right before the archive is built
  • Photos/ — attached photos, including sketches and custom symbol images
  • Postcards/ — exported postcards
  • Fonts/ — TTF fonts you added
  • Markdown/ — cached help and markdown pages

Like the database backup, the full archive takes an optional password; with one it is written as an AES-256 encrypted ZIP.

5. Restoring a full data backup — it is two steps

Settings → Backup and Restore (Device Storage) → [BETA] Recover full data

  1. Pick the archive. The app checks that it really is a full backup (it reads the ZIP's central directory and looks for the Backup/Database/ entry) and refuses anything else before asking for a password. An encrypted archive asks for its password at this point.
  2. The archive is decompressed into the working directory. The app then tells you "Import complete — you can now select a restore point using the Restore Diary feature."
  3. Now run Recover diary and pick the database snapshot that arrived inside the archive (for example easy_diary.db_20261129_214500.zip). That step is what actually writes the entries into the app.

A full recovery on its own does not change what you see in the app. Photos, fonts and postcards appear as soon as they are unpacked; entries appear only after step 3.

6. Scheduled backups

Settings → Schedule setting → + and choose one of the three backup types:

Schedule type What it writes Where
Diary backup (App internal storage, database only — no photos) easy_diary.db_<yyyyMMdd_HHmmss>.zip The app's own storage; only Easy Diary can read it, and a folder-sync tool cannot reach it
Diary backup (Google Drive) Database and attached photos Your Google Drive (GMS build only)
Full backup (External folder) The same archive as [BETA] Backup full data A folder you pick, which a folder-sync tool can collect

On the schedule dialog you can also set:

  • Backup password (optional) — encrypts the archive the schedule writes. The password is stored sealed with a key in the Android Keystore, never in plain text.
  • File handling (external folder only) — Overwrite a fixed file name (easy_diary.zip) keeps exactly one archive, or Create a new file on every run (easy_diary_yyyyMMdd_HHmmss.zip) keeps a history.

The app keeps the folder permission you granted when you picked the folder, so later runs can write there without asking again. If the folder is deleted or the permission is lost, the run posts a notification asking you to choose the folder again — it does not fail silently.

If the saved password can no longer be opened — after moving to a new phone, or after the phone's Keystore was reset — the schedule does not fall back to writing an unencrypted archive. It skips the run, switches itself off, and posts a notification telling you to enter the password again (v1.4.358 반영 예정). A schedule restored from another phone's backup is switched off with a notification, for the same reason.

7. What a backup does not carry

  • Lock settings. The app's own backup leaves out the PIN lock (enabled flag, saved PIN, pause timestamp) and the fingerprint lock (enabled flag, encrypted key and IV, failure count). A restored phone starts without an app lock. This is deliberate: a lock that restores together with the data protects nothing.
  • Your backup password and your diary-encryption PIN. Neither can be recovered by the developer. If you forget them, an encrypted archive stays closed and an encrypted entry stays unreadable.
  • Photos, in the database backup. The JSON file holds the entries and the photo URIs, not the image files. Use Google Drive photo backup or the full data backup for the images.
  • Photos, in the Android platform backup. Photos sit outside the directories Android's backup rules include (see the next section).

8. Android's own backup

Separately from everything above, Android may back up app data to your Google account. The app allows this, with rules:

  • On Android 12 and later, the app's database, shared preferences and files are included in cloud backup and in device-to-device transfer; the cache and no-backup folders are excluded. Google's cloud backup has a 25 MB per-app quota, which a large diary can exceed.
  • On Android 11 and earlier, the app opts out of Android Auto Backup, so nothing is backed up this way.
  • Since v1.4.358 the PIN and fingerprint lock settings live in their own file, aaf_lock_prefs.xml, and that file is excluded from both cloud backup and device transfer (v1.4.358 반영 예정) — the same rule the app's own backup follows.

An OS backup made by an older version than v1.4.358 can still restore an app PIN, because the PIN sat in the general preferences file at that time. The fingerprint lock is switched off in that case, since its key belongs to the old device's Keystore.

Practical advice

  1. Do a backup you have tested. Make a full data backup, install the app on another phone (or after clearing data), and restore it once. A backup you have never restored is a guess.
  2. Keep one copy off the phone. Internal storage disappears with the app; an external folder or Google Drive does not.
  3. Write the password down somewhere safe. A password you set on a backup cannot be recovered, by you or by anyone else.
  4. For moving to a new phone, the shortest path is: full data backup → copy the ZIP to the new phone → install Easy Diary → [BETA] Recover full data → Recover diary → enter the app lock again if you want it.

한국어로 보기 →

Clone this wiki locally