Merge pull request 'FEATURE: Need backup solution.' (#51) from feature/db-backup into master
All checks were successful
Deploy application with Docker / build_and_deploy (push) Successful in 2m7s
All checks were successful
Deploy application with Docker / build_and_deploy (push) Successful in 2m7s
Reviewed-on: #51
This commit is contained in:
commit
8080313c85
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/flake.lock
|
/flake.lock
|
||||||
/go.sum
|
/go.sum
|
||||||
/.env
|
/.env
|
||||||
|
/*.dump
|
||||||
|
|||||||
@ -45,6 +45,8 @@
|
|||||||
|
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
export GOARCH=amd64
|
export GOARCH=amd64
|
||||||
|
export CGO_CFLAGS=-Wno-error=cpp;
|
||||||
|
|
||||||
|
|
||||||
# Exec zsh to replace the current shell process with zsh.
|
# Exec zsh to replace the current shell process with zsh.
|
||||||
# This ensures your prompt and zsh configurations load correctly.
|
# This ensures your prompt and zsh configurations load correctly.
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Ensure the environment is sourced
|
||||||
|
source .env
|
||||||
|
|
||||||
pg_dump \
|
pg_dump \
|
||||||
-h "$PSQL_HOST" \
|
-h "$PSQL_HOST" \
|
||||||
-U "$PSQL_USERNAME" \
|
-U "$PSQL_USERNAME" \
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Ensure the environment is sourced
|
||||||
|
source .env
|
||||||
|
|
||||||
pg_restore \
|
pg_restore \
|
||||||
-h "$PSQL_HOST" \
|
|
||||||
-U "$PSQL_USERNAME" \
|
|
||||||
-v -d "$PSQL_DATABASE_BACKUP" \
|
-v -d "$PSQL_DATABASE_BACKUP" \
|
||||||
|
-U "$PSQL_USERNAME" \
|
||||||
|
-h "$PSQL_HOST" \
|
||||||
-c -F c backup.dump
|
-c -F c backup.dump
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user