From 418123122e7edbc63e0765ed179935a678217fbb Mon Sep 17 00:00:00 2001 From: DHCPCD Date: Fri, 1 Apr 2022 08:54:17 +0300 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b46fad8..3a0ccc1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,6 @@ create-backup-task: - if: $CI_PIPELINE_SOURCE == "schedule" script: - export FILENAME=backup-$(date '+%Y-%m-%d.%h%m').gz - - docker exec -u postgres -it lazer-server-db pg_dump --username=postgres -d lazer --port 5432 --host localhost > lazer.sql + - docker exec -u postgres -t lazer-server-db pg_dump --username=postgres -d lazer --port 5432 --host localhost > lazer.sql - gzip -c lazer.sql > $FILENAME - curl -F "file=@./$FILENAME" -F "content=Backup for $(date)" $WEBHOOK_URL \ No newline at end of file -- GitLab