- Backup scheduling and retention policies
- Tagging system and storage quotas
- Manual backup creation and CLI tools
- Security and encryption details
PostgreSQL Backup Format
PostgreSQL backups are created usingpg_dump and stored in .zip format:
- Format:
.zip(containing per-schema.dumpfiles) - Tooling:
pg_dump - Compression: Custom format (
-Fc), schema files namedschemaName.dump - Storage: Encrypted and stored in isolated object storage
Backup Configuration
You can configure backup settings in the Zerops GUI:Configure schedule
Set up automated backup schedule:
- Choose backup frequency (hourly, daily, weekly)
- Set retention period
- Configure backup window
Creating Manual Backups
You can create manual backups at any time:Using Zerops GUI
Using zCLI
Restoring PostgreSQL Backups
To restore a PostgreSQL backup:Download the backup file
Download the backup file (
.zip) from the Zerops UI:- Navigate to your PostgreSQL service
- Go to Backups List & Configuration
- Find the backup you want to restore
- Click the three dots menu (⋮)
- Select Download
Prepare target environment
Choose one of the following:
- Clean existing data in your database
- Create a new PostgreSQL service for the restore
Alternative: Using Management Tools
You can also restore backups using web-based management tools like phpMyAdmin or AdminerEvo as described in PostgreSQL Management.Restore Examples
High Availability
For PostgreSQL services running in High Availability mode:- Backups are created on a randomly selected healthy node
- Other nodes remain operational during the backup process
- Manual backups typically run on the primary node
Best Practices
Before Major Changes
Always create a manual backup with a protected tag before database migrations or major schema changes.
Test Restores
Test your restore process periodically in a non-production environment.
Monitor Storage
Monitor your backup storage usage in the Project Overview.
Use Descriptive Tags
Use descriptive tags like
pre-migration-v2 for important snapshots.Additional Best Practices
- Consider schema order - If you have dependencies between schemas, restore them in the correct order
- Protect critical backups - Use protected tags to prevent automatic deletion of important backups
- Schedule wisely - Configure backup schedules during low-traffic periods to minimize impact
- Document your process - Keep notes on your backup and restore procedures
- Verify backups - Periodically verify that backups are being created successfully
Troubleshooting
Backup fails with “out of disk space”
- Increase the
maxDisksetting in your PostgreSQL service scaling configuration - Clean up old backups to free storage quota
- Check backup retention policies
Restore is very slow
- The restore process speed depends on:
- Database size
- Available RAM and CPU resources
- Network connection (for remote restores)
- Consider temporarily scaling up your PostgreSQL service during restore
Restore fails with permission errors
- Ensure you’re using a user with sufficient privileges
- For full restores, use the superuser credentials (
postgresuser) - Check that the target database exists and is accessible
Next Steps
For assistance with the restoration process or backup configuration, contact Zerops support. For additional best practices and troubleshooting, refer to the main backup documentation.Manage Users & Databases
Create and manage users, databases, and plugins
Connect to PostgreSQL
Learn connection methods for internal and remote access