Database Engines
fastapi-dbbackup supports PostgreSQL, MySQL, and SQLite.
PostgreSQL
- Tool: Uses
pg_dumpandpg_restore. - Format: Custom archive format (
-Fc) by default. - Streaming: Supported for backups.
- Security: Uses
PGPASSWORDenvironment variable. - Robustness: Dynamic argument building handles missing host/credentials (supports Trust auth).
- Version Compatibility: Supports all Postgres versions. Ensure the
pg_dumpclient version is equal to or higher than the server version.
MySQL
- Tool: Uses
mysqldumpandmysql. - Format: Standard SQL dump.
- Streaming: Supported for backups.
- Security: Uses
MYSQL_PWDenvironment variable. - Robustness: Dynamic argument building handles missing host/credentials (supports Trust auth).
- Version Compatibility: Supports all MySQL versions. Ensure the
mysqldumpclient version is equal to or higher than the server version.
SQLite
- Tool: Uses
sqlite3CLI or Pythonsqlite3.backupAPI fallback. - Streaming: Not supported (file-based only).
- Cleanup: Temporary local files are automatically deleted after cloud upload.