Skip to content

Commit

Permalink
Merge branch 'ND-510-DB-CLI-Update' of github.com:ministryofjustice/s…
Browse files Browse the repository at this point in the history
…taff-device-dns-dhcp-infrastructure into ND-510-DB-CLI-Update
  • Loading branch information
sb21460 authored and Stephen.James committed Sep 12, 2024
2 parents 3d2680c + 8208b52 commit 26d68d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/create_db_connection_details.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ filename="\`date "+%Y_%m_%d-%H_%M_%S"\`_${ENV}_${admin_db_name}_rds-dump.sql"; \
mysqldump \\
-u "${admin_db_username}" \\
-p \\
--ssl \\
--set-gtid-purged=OFF \\
--triggers --routines --events \\
-h "${admin_db_fqdn}" \\
"${admin_db_name}" > ~/${filename}; \\
"${admin_db_name}" > ~/\${filename}; \\
ls -al; \\
aws s3 cp ~/\${filename} s3://mojo-file-transfer/ --profile s3-role; \\
aws s3 ls s3://mojo-file-transfer/ --profile s3-role;
Expand Down Expand Up @@ -76,11 +75,10 @@ filename="\`date "+%Y_%m_%d-%H_%M_%S"\`_${ENV}_${dhcp_db_name}_rds-dump.sql"; \\
mysqldump \\
-u "${dhcp_db_username}" \\
-p \\
--ssl \\
--set-gtid-purged=OFF \\
--triggers --routines --events \\
-h "${dhcp_db_fqdn}" \\
"${dhcp_db_name}" > ~/${filename}; \\
"${dhcp_db_name}" > ~/\${filename}; \\
ls -al; \\
aws s3 cp ~/\${filename} s3://mojo-file-transfer/ --profile s3-role; \\
aws s3 ls s3://mojo-file-transfer/ --profile s3-role;
Expand Down

0 comments on commit 26d68d8

Please sign in to comment.