Live backup of 216 on 247 (zareian-pg216-* units, Postgres 16 tools in our dir, SCRAM hash only on 216), backup scripts take PGB_ROOT/PGB_BIN/PGB_PORT with 249 defaults, anti-bot layers documented
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
19
ops/pgbackup/zareian-pg216-wal.service
Normal file
19
ops/pgbackup/zareian-pg216-wal.service
Normal file
@@ -0,0 +1,19 @@
|
||||
# روی سرورِ بکاپ (۲۴۷). هر تغییرِ دیتابیسِ ۲۱۶ را لحظهای در ~/zareian-pgbackup-216/wal مینویسد.
|
||||
# ابزارهای Postgres 16 از مخزنِ رسمی در ~/zareian-pgbackup-216/pg16 باز شدهاند (نصبِ سیستمی نیست؛ ۲۴۷ فقط 14 دارد).
|
||||
# اسلاتِ zareian_247 روی ۲۱۶، سقف max_slot_wal_keep_size=5GB. اپ منتظرِ اینجا نمیماند.
|
||||
[Unit]
|
||||
Description=Zareian MathApp: live WAL stream from 216
|
||||
After=zareian-pg216-tunnel.service
|
||||
BindsTo=zareian-pg216-tunnel.service
|
||||
|
||||
[Service]
|
||||
User=administrator
|
||||
Environment=LD_LIBRARY_PATH=/home/administrator/zareian-pgbackup-216/pg16/root/usr/lib/x86_64-linux-gnu
|
||||
ExecStart=/home/administrator/zareian-pgbackup-216/pg16/root/usr/lib/postgresql/16/bin/pg_receivewal -h 127.0.0.1 -p 15441 -U zareian_replicator \
|
||||
--no-password --slot=zareian_247 --synchronous --no-loop \
|
||||
-D /home/administrator/zareian-pgbackup-216/wal
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user