1+ # PostgreSQL NRT Backup Configuration
2+ # This file contains default configuration values that can be overridden by environment variables
3+
4+ # =============================================================================
5+ # Backup Configuration
6+ # =============================================================================
7+
8+ # Backup retention period in days
9+ BACKUP_RETENTION_DAYS=3
10+
11+ # Backup schedules (cron format)
12+ BASE_BACKUP_SCHEDULE="0 3 * * *"
13+ INCREMENTAL_BACKUP_SCHEDULE="0 */6 * * *"
14+
15+ # Remote storage configuration
16+ RCLONE_REMOTE_PATH="postgres-backups"
17+
18+ # pgBackRest configuration
19+ PGBACKREST_STANZA="main"
20+
21+ # =============================================================================
22+ # WAL Monitoring Configuration
23+ # =============================================================================
24+
25+ # Enable WAL growth monitoring
26+ ENABLE_WAL_MONITOR=true
27+
28+ # WAL growth threshold to trigger automatic backup
29+ WAL_GROWTH_THRESHOLD="100MB"
30+
31+ # WAL monitor check interval in seconds
32+ WAL_MONITOR_INTERVAL=60
33+
34+ # Minimum WAL growth required for scheduled backup execution
35+ MIN_WAL_GROWTH_FOR_BACKUP="1MB"
36+
37+ # =============================================================================
38+ # Recovery Configuration
39+ # =============================================================================
40+
41+ # Recovery mode (true/false)
42+ RECOVERY_MODE=false
43+
44+ # Recovery target settings
45+ RECOVERY_TARGET_INCLUSIVE=true
46+ RECOVERY_TARGET_ACTION="promote"
47+
48+ # =============================================================================
49+ # PostgreSQL Configuration
50+ # =============================================================================
51+
52+ # PostgreSQL data directory
53+ PGDATA="/var/lib/postgresql/data"
54+
55+ # PostgreSQL socket directory
56+ PGHOST="/var/run/postgresql"
57+
58+ # PostgreSQL port
59+ PGPORT=5432
60+
61+ # =============================================================================
62+ # Advanced Configuration
63+ # =============================================================================
64+
65+ # Skip rclone configuration verification (for testing only)
66+ RCLONE_SKIP_VERIFY=false
67+
68+ # Additional pgBackRest options
69+ PGBACKREST_CONFIG=/etc/pgbackrest/pgbackrest.conf
0 commit comments