Expand description
Configuration backup and rollback functionality
This module provides:
- Configuration file backup before changes
- Rollback to previous configurations
- Configuration history tracking
- Automatic backup on configuration changes
Structs§
- Config
Backup - Backup metadata
- Config
History Entry - Configuration history entry
- PgHba
Rule - pg_hba.conf rule
Enums§
- PgHba
Diff - pg_hba.conf difference
Functions§
- backup_
config - Create a backup of PostgreSQL configuration files
- cleanup_
old_ backups - Delete old backups, keeping only the most recent N backups
- diff_
pg_ hba_ rules - Compare two sets of pg_hba rules and return differences
- list_
backups - List available configuration backups
- parse_
pg_ hba_ rules - Parse pg_hba.conf into structured rules
- read_
pg_ hba - Read current pg_hba.conf content
- restore_
backup - Restore configuration from a backup
- rollback_
config - Rollback to the most recent backup