mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-10-17 05:51:45 +02:00
Minimal changes from upstream xmrcheckout to support Wownero: - Rate provider: Nonlogs WOW-BTC via Kraken BTC/USD - Subaddress derivation: Wownero network byte overrides (53/63/54) - Payment URI scheme: wownero: - Dockerfile: Wownero binaries from Codeberg - Display text: Monero→Wownero, XMR→WOW throughout UI - Default daemon: 192.168.88.235:34568 - Added wownero-logo.svg File and folder structure kept identical to upstream for easy sync.
22 lines
545 B
Bash
22 lines
545 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
: "${POSTGRES_HOST:?}"
|
|
: "${POSTGRES_USER:?}"
|
|
: "${POSTGRES_PASSWORD:?}"
|
|
: "${POSTGRES_DB:?}"
|
|
|
|
backup_retention_days="${BACKUP_RETENTION_DAYS:-7}"
|
|
|
|
export PGPASSWORD="$POSTGRES_PASSWORD"
|
|
|
|
backup_dir="/backups"
|
|
timestamp="$(date +%Y%m%d_%H%M%S)"
|
|
backup_path="${backup_dir}/${POSTGRES_DB}_${timestamp}.dump"
|
|
|
|
mkdir -p "$backup_dir"
|
|
|
|
pg_dump -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -F c -f "$backup_path"
|
|
|
|
find "$backup_dir" -type f -name "*.dump" -mtime "+${backup_retention_days}" -delete
|