# Backup & Restore SUMMARY: Export your memories for backup, migrate between minds, restore after data loss. Backup & Restore Synapse provides full export/import for memory backup, migration, and disaster recovery. This guide covers the essential operations. Export Full Mind Export Export all memories in a mind as JSON: [CODE BLOCK] Response format: [CODE BLOCK] Incremental Export (Diff) Export only memories changed since a timestamp: [CODE BLOCK] Response: [CODE BLOCK] Automated Backups Schedule daily backups via cron: [CODE BLOCK] > [!NOTE] > The cron endpoint receives the response but doesn't store it. For real > backups, point the cron at your own backup server that saves the response. Better: External Backup Script [CODE BLOCK] Add to crontab: [CODE BLOCK] Restore Restore to Same Mind [CODE BLOCK] Restore to New Mind [CODE BLOCK] Python Restore Script [CODE BLOCK] Migration Between Minds [CODE BLOCK] Backup Other Data Don't forget to back up: | Data Type | Endpoint | |-----------|----------| | Memories | | | Tasks | | | Scripts | | | Webhooks | | | Cron jobs | | | Variables | | | Chat history | | Verification After restore, verify: [CODE BLOCK] Best Practices > [!TIP] > - Backup daily — automate with cron > - Test restores — a backup you can't restore is useless > - Keep multiple versions — at least 30 days > - Store offsite — S3, Backblaze B2, etc. > - Encrypt sensitive backups — memories may contain PII > - Document the restore process — you'll forget it by the time you need it Next Steps - Memory API - Cron & Scheduler — for automated backups