Storage Backends
fastapi-dbbackup supports both local and cloud-based storage.
Local Storage
By default, backups are stored in the local file system.
- Directory: Set via
DBBACKUP_DIR. - Cleanup: Automatic retention and max backup limits apply locally.
S3-Compatible Storage
Support for AWS S3 and S3-compatible services like DigitalOcean Spaces.
Direct Streaming
For Postgres and MySQL, the tool uses streaming uploads. This means data is piped directly from the database tool to the cloud without ever touching your local disk.
- Reliability: Uses S3 multipart uploads for large files.
- Integrity: Each chunk is verified via checksums.
- Efficiency: Zero temporary disk I/O.
Configuration Example
To use DigitalOcean Spaces: