YugabyteDB Backup
How to backup and restore your YugabyteDB database for Curio
Important: Curio uses a DB and a schema
# If you run Curio with env vars
echo "$CURIO_DB_NAME"
# If Curio is installed on PATH, you can inspect flags/defaults
curio --help | grep -E "db-(name|host|port)"# systemd (example)
systemctl cat curio | sed -n '1,200p'
# docker compose (example)
docker compose config | sed -n '1,200p'Prerequisites
Backup Methods
Method 1: Using ysql_dump (Recommended)
Full database backup
Example with typical Curio defaults
Curio schema backup
Method 2: Using ysqlsh with COPY
Restore Procedures
Restore from ysql_dump backup
Full restore (entire database)
Restore only the Curio schema
Automated Backup Script (example)
Best Practices
Troubleshooting
Connection issues
Permission errors
Additional Resources
Multi-node cluster caveats (practical ops notes)
Last updated