Skip to content

Console Output

02:46:03 [2025-11-21T02:46:03.248Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
02:46:03 [2025-11-21T02:46:03.249Z] 		 Affected argument(s) used the following variable(s): [POSTGRES_DB]
02:46:03 [2025-11-21T02:46:03.249Z] 		 See https://jenkins.io/redirect/groovy-string-interpolation for details.
02:46:03 [2025-11-21T02:46:03.510Z] + export POSTGRES_DB=****
02:46:03 [2025-11-21T02:46:03.510Z] + export POSTGRES_USER=****
02:46:03 [2025-11-21T02:46:03.510Z] + export PGPASSWORD=****
02:46:03 [2025-11-21T02:46:03.510Z] + mkdir -p jenkins_backups
02:46:03 [2025-11-21T02:46:03.510Z] + docker exec -e PGPASSWORD=**** ****-**** pg_dump -h localhost -U **** -d **** --format=custom --compress=9 --file=/tmp/jenkins_backup_20251121_024602.sql
02:46:04 [2025-11-21T02:46:04.422Z] + docker cp ****-****:/tmp/jenkins_backup_20251121_024602.sql jenkins_backups/
02:46:04 [2025-11-21T02:46:04.422Z] + cd jenkins_backups
02:46:04 [2025-11-21T02:46:04.422Z] + sha256sum jenkins_backup_20251121_024602.sql
02:46:04 [2025-11-21T02:46:04.422Z] + echo ✅ Backup created: jenkins_backup_20251121_024602.sql
02:46:04 [2025-11-21T02:46:04.423Z] ✅ Backup created: jenkins_backup_20251121_024602.sql
02:46:04 [2025-11-21T02:46:04.423Z] + ls -lh jenkins_backup_20251121_024602.sql
02:46:04 [2025-11-21T02:46:04.423Z] -rw-r--r-- 1 root root 6.9K Nov 21 02:46 jenkins_backup_20251121_024602.sql