Backup & Restore ๐Ÿ’พ

February 11, 2026 ยท View on GitHub

๐ŸŒ Languages: Deutsch ยท English

Secure your notes locally - independent from the server


๐Ÿ“‹ Overview

The backup system works completely offline and independent from the WebDAV server. Perfect for:

  • ๐Ÿ“ฅ Regular backups
  • ๐Ÿ“ค Migration to new server
  • ๐Ÿ”„ Recovery after data loss
  • ๐Ÿ’พ Archiving old notes

๐Ÿ“ฅ Create Backup

Step-by-Step

  1. Open settings (โš™๏ธ icon top right)
  2. Find "Backup & Restore" section
  3. Tap "๐Ÿ“ฅ Create backup"
  4. Choose location:
    • ๐Ÿ“ Downloads
    • ๐Ÿ’ณ SD card
    • โ˜๏ธ Cloud folder (Nextcloud, Google Drive, etc.)
    • ๐Ÿ“ง Email as attachment
  5. Done! Backup file is saved

File Format

Filename: simplenotes_backup_YYYY-MM-DD_HHmmss.json

Example: simplenotes_backup_2026-01-05_143022.json

Content:

{
  "version": "1.2.1",
  "exported_at": "2026-01-05T14:30:22Z",
  "notes_count": 42,
  "notes": [
    {
      "id": "abc-123-def",
      "title": "Shopping List",
      "content": "Milk\nBread\nCheese",
      "createdAt": 1704467422000,
      "updatedAt": 1704467422000
    }
  ]
}

Format details:

  • โœ… Human-readable (formatted JSON)
  • โœ… All data included (title, content, IDs, timestamps)
  • โœ… Version info for compatibility
  • โœ… Note count for validation

๐Ÿ“ค Restore Backup

3 Restore Modes

What happens:

  • โœ… New notes from backup are added
  • โœ… Existing notes remain unchanged
  • โœ… No data loss

When to use:

  • Import backup from another device
  • Recover old notes
  • Restore accidentally deleted notes

Example:

App:    [Note A, Note B, Note C]
Backup: [Note A, Note D, Note E]
Result: [Note A, Note B, Note C, Note D, Note E]

2. Replace

What happens:

  • โŒ ALL existing notes are deleted
  • โœ… Backup notes are imported
  • โš ๏ธ Irreversible (except through auto-backup)

When to use:

  • Server migration (complete restart)
  • Return to old backup state
  • App reinstallation

Example:

App:    [Note A, Note B, Note C]
Backup: [Note X, Note Y]
Result: [Note X, Note Y]

โš ๏ธ Warning: Automatic safety backup is created!

3. Overwrite Duplicates

What happens:

  • โœ… New notes from backup are added
  • ๐Ÿ”„ On ID conflicts, backup wins
  • โœ… Other notes remain unchanged

When to use:

  • Backup is newer than app data
  • Import desktop changes
  • Conflict resolution

Example:

App:    [Note A (v1), Note B, Note C]
Backup: [Note A (v2), Note D]
Result: [Note A (v2), Note B, Note C, Note D]

Restore Process

  1. Settings โ†’ "๐Ÿ“ค Restore from file"
  2. Select backup file (.json)
  3. Choose mode:
    • ๐Ÿ”ต Merge (Default)
    • ๐ŸŸก Overwrite duplicates
    • ๐Ÿ”ด Replace (Caution!)
  4. Confirm - Automatic safety backup is created
  5. Wait - Import runs
  6. Done! - Success message with number of imported notes

๐Ÿ›ก๏ธ Automatic Safety Backup

Before every restore:

  • โœ… Automatic backup is created
  • ๐Ÿ“ Saved in: Android/data/dev.dettmer.simplenotes/files/
  • ๐Ÿท๏ธ Filename: auto_backup_before_restore_YYYY-MM-DD_HHmmss.json
  • โฑ๏ธ Timestamp: Right before restore

Why?

  • Protection against accidental "Replace"
  • Ability to undo
  • Double security

Access via file manager:

/Android/data/dev.dettmer.simplenotes/files/auto_backup_before_restore_*.json

๐Ÿ’ก Best Practices

Backup Strategy

Regular Backups

Daily:   โŒ Too often (server sync is enough)
Weekly:  โœ… Recommended for important notes
Monthly: โœ… Archiving
Before updates: โœ… Safety

3-2-1 Rule

  1. 3 copies - Original + 2 backups
  2. 2 media - e.g., SD card + cloud
  3. 1 offsite - e.g., cloud storage

Backup Locations

Local (fast):

  • ๐Ÿ“ฑ Internal storage / Downloads
  • ๐Ÿ’ณ SD card
  • ๐Ÿ–ฅ๏ธ PC (via USB)

Cloud (secure):

  • โ˜๏ธ Nextcloud (self-hosted)
  • ๐Ÿ“ง Email to yourself
  • ๐Ÿ—„๏ธ Syncthing (sync between devices)

โš ๏ธ Avoid:

  • โŒ Google Drive / Dropbox (privacy)
  • โŒ Only one copy
  • โŒ Only on server (if server fails)

๐Ÿ”ง Advanced Usage

Edit Backup File

The .json file can be edited with any text editor:

  1. Open with: VS Code, Notepad++, nano
  2. Add/remove notes
  3. Change title/content
  4. Adjust IDs (for migration)
  5. Save and import to app

โš ๏ธ Important:

  • Keep valid JSON format
  • IDs must be unique (UUIDs)
  • Timestamps in milliseconds (Unix Epoch)

Bulk Import

Merge multiple backups:

  1. Import backup 1 (Mode: Merge)
  2. Import backup 2 (Mode: Merge)
  3. Import backup 3 (Mode: Merge)
  4. Result: All notes combined

Server Migration

Step-by-step:

  1. Create backup on old server
  2. Set up new server (see QUICKSTART.en.md)
  3. Change server URL in app settings
  4. Restore backup (Mode: Replace)
  5. Test sync - All notes on new server

โŒ Troubleshooting

"Invalid backup file"

Causes:

  • Corrupt JSON file
  • Wrong file extension (must be .json)
  • Incompatible app version

Solution:

  1. Check JSON file with validator (e.g., jsonlint.com)
  2. Verify file extension
  3. Create backup with current app version

"No permission to save"

Causes:

  • Storage permission missing
  • Write-protected folder

Solution:

  1. Android: Settings โ†’ Apps โ†’ Simple Notes โ†’ Permissions
  2. Activate "Storage"
  3. Choose different location

"Import failed"

Causes:

  • Not enough storage space
  • Corrupt backup file
  • App crash during import

Solution:

  1. Free up storage space
  2. Create new backup file
  3. Restart app and try again

๐Ÿ”’ Security & Privacy

Data Protection

  • โœ… Locally stored - No cloud upload without your action
  • โœ… Optional encryption (v1.7.0+) - Password-protect backup files
  • โœ… Human-readable - Plain JSON format when unencrypted
  • โš ๏ธ Sensitive data? - Enable encryption or use external tools (e.g., 7-Zip)

Recommendations

  • ๐Ÿ” Store backup files in encrypted container
  • ๐Ÿ—‘๏ธ Regularly delete old backups
  • ๐Ÿ“ง Don't send via unencrypted email
  • โ˜๏ธ Use self-hosted cloud (Nextcloud)

๐Ÿ“Š Technical Details

Format Specification

JSON structure:

{
  "version": "string",        // App version at export
  "exported_at": "ISO8601",   // Export timestamp
  "notes_count": number,      // Number of notes
  "notes": [
    {
      "id": "UUID",           // Unique ID
      "title": "string",      // Note title
      "content": "string",    // Note content
      "createdAt": number,    // Unix timestamp (ms)
      "updatedAt": number     // Unix timestamp (ms)
    }
  ]
}

Compatibility

  • โœ… v1.2.0+ - Fully compatible
  • โš ๏ธ v1.1.x - Basic functions (without auto-backup)
  • โŒ v1.0.x - Not supported

๐Ÿ“š See also:

Last update: v1.8.1 (2026-02-11)