⚰️(scalingo) remove scalingo pgdump

Remove the scalingo backup logic and cron.
As pgdumps on scalingo are now managed from our own CI.
This commit is contained in:
Stanislas Bruhiere
2026-01-27 17:38:41 +01:00
committed by Manuel Raynaud
parent 50e19c9eae
commit abd055ad0f
3 changed files with 5 additions and 47 deletions

View File

@@ -18,16 +18,17 @@ and this project adheres to
- 🚸(oidc) ignore case when fallback on email #535
### Removed
- 🔥(global) remove notion of workspace
### Fixed
- 🐛(backend) manage ole2 compound document format
- ♻️(backend) increase user short_name field length
- 🐛(helm) reverse liveness and readiness for backend deployment
### Removed
- 🔥(global) remove notion of workspace
- ⚰️(scalingo) remove scalingo pgdump
## [v0.12.0] - 2026-02-06
### Added

View File

@@ -1,36 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
mkdir -p /tmp/pgdump
cd /tmp/pgdump
RESTIC_VERSION=0.18.0
curl -fsSL --remote-name-all "https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2" \
"https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/SHA256SUMS" \
"https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/SHA256SUMS.asc"
curl -fsSLo - https://restic.net/gpg-key-alex.asc | gpg --import
gpg --verify SHA256SUMS.asc SHA256SUMS
grep _linux_amd64.bz2 SHA256SUMS | sha256sum -c
bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2
mv restic_${RESTIC_VERSION}_linux_amd64 restic
chmod +x ./restic
# Download postgresql client binaries
dbclient-fetcher pgsql
# Actually dump and upload to scaleway s3
FILENAME="${APP}_pgdump.sql"
pg_dump --clean --if-exists --format c --dbname "${SCALINGO_POSTGRESQL_URL}" --no-owner --no-privileges --no-comments --exclude-schema 'information_schema' --exclude-schema '^pg_*' --file "${FILENAME}"
export AWS_ACCESS_KEY_ID=${BACKUP_PGSQL_S3_KEY}
export AWS_SECRET_ACCESS_KEY=${BACKUP_PGSQL_S3_SECRET}
export RESTIC_PASSWORD=${BACKUP_PGSQL_ENCRYPTION_PASS}
export RESTIC_REPOSITORY=s3:${BACKUP_PGSQL_S3_REPOSITORY}/${APP}
./restic snapshots -q || ./restic init
./restic backup ${FILENAME}
./restic forget --keep-daily 30

View File

@@ -1,7 +0,0 @@
{
"jobs": [
{
"command": "0 0 * * * bin/scalingo_pgdump.sh"
}
]
}