Skip to content

Conversation

@RaphDal
Copy link
Contributor

@RaphDal RaphDal commented Dec 23, 2025

This PR documents the backup and restore functionality for QuestDB Enterprise (from https://github.com/questdb/questdb-enterprise/pull/647).

Changes

New Pages

  • reference/sql/backup.md - SQL reference for BACKUP DATABASE and BACKUP ABORT commands

Enhanced Documentation

Enterprise Backup (operations/backup.md)

  • Quick start section for fast onboarding
  • Configuration reference table with verified defaults from source code
  • Performance characteristics - explains pressure-sensitive throttling, batch uploads, compression
  • Filesystem backups - fs:: object store option for air-gapped environments
  • Instance name discovery - how to find your backup_instance_name
  • Restore failure recovery - .restore_failed/ artifacts and recovery steps
  • Troubleshooting section with common errors and resolutions

Error Codes (troubleshooting/error-codes.md)

  • ER007 - Data ID mismatch error with resolution steps
  • Starting fresh with a new Data ID - guide for generating new Data ID

OSS Checkpoint Restore

  • AWS EBS lazy loading warning - FSR and fio pre-warm workarounds

Fixes

  • Clarified trigger file differences (_backup_restore vs _restore)
  • Fixed config defaults from source (retention=5, compression=5)
  • Clarified replicas CAN be backed up (separate backup_instance_name)
  • Fixed backups() column names and status values
  • Removed non-existent backup_schedule() function
  • Various grammar and consistency improvements

Files Changed

  • documentation/operations/backup.md - Major enhancements
  • documentation/reference/sql/backup.md - New file
  • documentation/troubleshooting/error-codes.md - Added ER007
  • documentation/sidebars.js - Added BACKUP to SQL reference nav

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

🚀 Build success!

Latest successful preview: https://preview-302--questdb-documentation.netlify.app/docs/

Commit SHA: 82f94ad

📦 Build generates a preview & updates link on each commit.

RaphDal and others added 8 commits December 23, 2025 15:02
- Add BACKUP SQL reference page with syntax, return values, and examples
- Add ER007 error code documentation for Data ID mismatch
- Add "Starting fresh with a new Data ID" guide
- Add performance characteristics section (pressure-sensitive, batch uploads)
- Add backup retention configuration (backup.cleanup.keep.latest.n)
- Add filesystem backup option (fs:: object store)
- Add restore failure recovery documentation
- Add instance name discovery guide
- Add AWS EBS lazy loading warning with FSR and fio workarounds
- Fix trigger file confusion (Enterprise _backup_restore vs OSS _restore)
- Fix configuration defaults from source (retention=5, compression=5)
- Clarify that replicas can be backed up (separate backup_instance_name)
- Improve document flow for humans and LLMs
- Various grammar and consistency fixes

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Resolved conflicts:
- Updated replication link to /docs/high-availability/setup/
- Updated SQL reference links to /docs/query/sql/ paths
- Added BACKUP to sidebars with query/sql path
- Kept OSS backup section focused (no Enterprise replication context)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Updated replication links to new high-availability paths:
- /docs/operations/replication/#setup-object-storage -> /docs/high-availability/setup/#1-configure-object-storage
- /docs/operations/replication/ -> /docs/high-availability/setup/

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Align BACKUP SQL syntax with other SQL docs (use questdb-sql code block)
- Remove Enterprise tag from sidebar
- Clarify that Enterprise supports both backup methods
- Simplify intro to focus on user benefits, not implementation details

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add IANA timezone reference with examples
- Document hot-reload via SELECT reload_config()
- Add jump link for OSS users in overview
- External links open in new tab

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Rewrite overview to clarify Enterprise vs OSS backup differences
- Fix backup path: _backup/ -> backup/<backup_instance_name>/
- Fix restore table: Yes* -> Sometimes for backup.object.store
- Fix "object store URLs" -> "Configure object storage"

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants