Skip to content

Latest commit

Β 

History

History
325 lines (244 loc) Β· 6.97 KB

File metadata and controls

325 lines (244 loc) Β· 6.97 KB

Backup & Restore πŸ’Ύ

🌍 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

1. Merge ⭐ Recommended

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)