Complete backup and restore system with directory structure preservation and multiple archive formats.
• dump_notes - Export notes to ZIP/TAR archives with hierarchical structure
• load_notes - Import JSON documents from ZIP archives
• cron integration - Daily automated backups at 2:30 AM
• Directory structure preservation (README/keys → README/keys.json)
• Root node handling (_root.json ↔ empty key)
• Multiple formats: ZIP (default), TAR
• Module-based implementation (no subprocess dependencies)
Daily cron job creates dated backups:
30 2 * * * cd /home/john/py/gdata-server && ./dump_notes backup_$(date +\%Y-\%m-\%d).zip >> backup.log 2>&1
Backup files: backup_2026-02-06.zip, backup_2026-02-07.zip, etc.