active_postgres 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -0
- data/lib/active_postgres/components/pgbackrest.rb +10 -0
- data/lib/active_postgres/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df298874014d3cc421108a44cb86429134faebb768685fc7dd3bf601998bce1c
|
|
4
|
+
data.tar.gz: b1da5f9c9d3ccf7a53fee9fc348a0665cd5620e0ddaedb873c8615638d8f0cbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '084295c32d29abc70a19effd158ae0ed1a8bba59175528f3a388885079af206ecf416cdcdb5e2af0f24aee33798348ae87ee5cf1eff38d3d194a6f83fa37c91c'
|
|
7
|
+
data.tar.gz: 770c0b891a38be2005b77fb1544daca381cd3fb9cb8a5637474103f57f1ed7bb04a7a690e48c0270f25443a466652b25bf9ff1b072f9345c628bab84265514b3
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 0.9.9 - 2026-10-02
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Install and enable cron for pgBackRest backup and PostgreSQL log-archive schedules, and fail setup if the scheduler is not active.
|
|
15
|
+
|
|
10
16
|
## 0.9.8 - 2026-10-02
|
|
11
17
|
|
|
12
18
|
### Fixed
|
data/README.md
CHANGED
|
@@ -215,6 +215,10 @@ components:
|
|
|
215
215
|
# schedule_incremental: "0 * * * *"
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
+
pgBackRest setup installs cron, enables it at boot, and checks that it is active.
|
|
219
|
+
Backup schedules run only on the primary; configured log-archive schedules run
|
|
220
|
+
on each database host.
|
|
221
|
+
|
|
218
222
|
Run a PITR restore:
|
|
219
223
|
|
|
220
224
|
```bash
|
|
@@ -151,6 +151,16 @@ module ActivePostgres
|
|
|
151
151
|
else
|
|
152
152
|
remove_backup_schedule(host)
|
|
153
153
|
end
|
|
154
|
+
|
|
155
|
+
ensure_scheduler(host)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
def ensure_scheduler(host)
|
|
159
|
+
install_apt_packages(host, 'cron')
|
|
160
|
+
ssh_executor.execute_on_host(host) do
|
|
161
|
+
execute :sudo, 'systemctl', 'enable', '--now', 'cron'
|
|
162
|
+
execute :sudo, 'systemctl', 'is-active', '--quiet', 'cron'
|
|
163
|
+
end
|
|
154
164
|
end
|
|
155
165
|
|
|
156
166
|
def setup_backup_schedules(host, pgbackrest_config)
|