feat: automate nightly database backups - #124
Open
emirykl wants to merge 1 commit into
Open
Conversation
Contributor
|
@emirykl Pls resolve conflict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pg_restoreand upload them to S3-compatible storage with SHA-256 checksumsTest evidence
npm test -- --runInBand --no-watchman src/modules/backups/db-backup.service.spec.ts— passed, 4 testsgit diff --check— passedFixes #58
Verification
PASS: focused Jest suite (4 tests)PASS: focused TypeScript no-emit compilationPASS: Prettier checkPASS: git diff --checkBroad Jest: backup suite passed; 12 existing suites failed because the Prisma client is not generatedBuild: could not complete because Prisma generation requires writing to a sandbox-denied user cacheLint: repository has no ESLint configurationDiagnostics
Recovered command failures:
/bin/zsh -lc 'npm run build && npx eslint "src/modules/backups/**/*.ts" src/app.module.ts'(1),/bin/zsh -lc 'npx prisma generate && npm run build && npx eslint "src/modules/backups/**/*.ts" src/app.module.ts'(1),/bin/zsh -lc 'mkdir -p /tmp/hamplard-prisma-cache && XDG_CACHE_HOME=/tmp/hamplard-prisma-cache npx prisma generate && npm run build && npx eslint "src/modules/backups/**/*.ts" src/app.module.ts'(1),/bin/zsh -lc 'mkdir -p /tmp/hamplard-prisma-cache && CACHE_DIR=/tmp/hamplard-prisma-cache npx prisma generate && npm run build && npx eslint "src/modules/backups/**/*.ts" src/app.module.ts'(1),/bin/zsh -lc 'npm test -- --runInBand --no-watchman'(1)