Skip to content

Ensure pgBackRest schedules have a running cron service - #27

Merged
gauravtiwari merged 1 commit into
mainfrom
fix-backup-scheduler
Oct 2, 2026
Merged

gauravtiwari merged 1 commit into
mainfrom
fix-backup-scheduler

Conversation

@gauravtiwari

Copy link
Copy Markdown
Contributor

pgBackRest setup wrote backup and log-archive schedules without installing cron, so a host without cron could finish setup while scheduled work never ran.

Install cron after reconciling primary and standby schedules, enable it at boot, and fail setup if it is not active. Regression coverage checks both roles and ensures stale standby backup schedules are removed before cron installation.

Validation: full suite passed (367 tests, 1,113 assertions); after extracting the scheduler helper, focused pgBackRest tests passed (39 tests, 181 assertions). RuboCop and diff checks pass. The commit signature is verified.

@gauravtiwari
gauravtiwari merged commit d0cf930 into main Oct 2, 2026
4 checks passed
@gauravtiwari
gauravtiwari deleted the fix-backup-scheduler branch October 2, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant