From d5e305bbbcb17750ab865b933da6516b2123fd03 Mon Sep 17 00:00:00 2001 From: Alex Steel <130377221+asteel-gsa@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:48:05 -0400 Subject: [PATCH] Version bump to v0.1.5 (#4017) --- .github/workflows/deploy-application.yml | 2 +- .github/workflows/fac-backup-scheduler.yml | 2 +- .github/workflows/fac-backup-util-scheduled.yml | 4 ++-- .github/workflows/fac-backup-util.yml | 4 ++-- docs/backups_and_restores.md | 10 +++++----- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-application.yml b/.github/workflows/deploy-application.yml index a31920be90..64cd7019f7 100644 --- a/.github/workflows/deploy-application.yml +++ b/.github/workflows/deploy-application.yml @@ -77,7 +77,7 @@ jobs: cf_password: ${{ secrets.CF_PASSWORD }} cf_org: gsa-tts-oros-fac cf_space: ${{ env.space }} - command: cf run-task gsa-fac -k 7G -m 3G --name deploy_backup --command "./fac-backup-util.sh v0.1.3 deploy_backup" + command: cf run-task gsa-fac -k 7G -m 3G --name deploy_backup --command "./fac-backup-util.sh v0.1.5 deploy_backup" - name: Deploy Preview to cloud.gov if: ${{ inputs.environment == 'preview' }} diff --git a/.github/workflows/fac-backup-scheduler.yml b/.github/workflows/fac-backup-scheduler.yml index 72683b4490..4488cf0107 100644 --- a/.github/workflows/fac-backup-scheduler.yml +++ b/.github/workflows/fac-backup-scheduler.yml @@ -19,6 +19,6 @@ jobs: secrets: inherit with: environment: ${{ matrix.environment.name }} - util_version: "v0.1.3" + util_version: "v0.1.5" backup_operation: "scheduled_backup" diff --git a/.github/workflows/fac-backup-util-scheduled.yml b/.github/workflows/fac-backup-util-scheduled.yml index d98a5a1be7..653ac6c1c9 100644 --- a/.github/workflows/fac-backup-util-scheduled.yml +++ b/.github/workflows/fac-backup-util-scheduled.yml @@ -1,8 +1,8 @@ --- name: Backup the database with fac-backup-utility ### Common Commands: -# ./fac-backup-util.sh v0.1.3 scheduled_backup -# ./fac-backup-util.sh v0.1.3 daily_backup +# ./fac-backup-util.sh v0.1.5 scheduled_backup +# ./fac-backup-util.sh v0.1.5 daily_backup on: workflow_call: inputs: diff --git a/.github/workflows/fac-backup-util.yml b/.github/workflows/fac-backup-util.yml index a3ff9767e6..b4395288d8 100644 --- a/.github/workflows/fac-backup-util.yml +++ b/.github/workflows/fac-backup-util.yml @@ -1,8 +1,8 @@ --- name: Backup the database with fac-backup-utility ### Common Commands: -# ./fac-backup-util.sh v0.1.3 initial_backup -# ./fac-backup-util.sh v0.1.3 deploy_backup +# ./fac-backup-util.sh v0.1.5 initial_backup +# ./fac-backup-util.sh v0.1.5 deploy_backup on: workflow_dispatch: inputs: diff --git a/docs/backups_and_restores.md b/docs/backups_and_restores.md index 55c00bee10..307c319afb 100644 --- a/docs/backups_and_restores.md +++ b/docs/backups_and_restores.md @@ -34,7 +34,7 @@ Information regarding the fac-backup-utility can be found [at the repository](ht Database backups occur in the following ways: 1. An initial backup, where a backup has not been run in the target environment. This input of `initial_backup` is important, as when it does a the `db_to_db` command, it will not truncate the target table, as the table does not exist in the destination database. ```bash -./fac-backup-util.sh v0.1.3 initial_backup +./fac-backup-util.sh v0.1.5 initial_backup # Curl the utility # Install AWS # DB to S3 table dump (backups) @@ -44,7 +44,7 @@ Database backups occur in the following ways: 2. A deploy backup, where the `db_to_db` function is not called. This is a standard backup strategy before the application deploys, to ensure the s3 contents of the primary s3 are sync'd to the backups bucket, and a table dump is stored in the backups bucket. ```bash -./fac-backup-util.sh v0.1.3 deploy_backup +./fac-backup-util.sh v0.1.5 deploy_backup # Curl the utility # Install AWS # DB to S3 table dump (backups) @@ -53,7 +53,7 @@ Database backups occur in the following ways: 3. A scheduled backup is run every two hours, across each environment, ensuring that we have a clean backup in s3, rds, and the bucket contents are in sync. ```bash -./fac-backup-util.sh v0.1.3 scheduled_backup +./fac-backup-util.sh v0.1.5 scheduled_backup # Curl the utility # Install AWS # DB to S3 table dump (fac-db -> backups) @@ -66,7 +66,7 @@ Restoring from backups can be run via workflow, from designated individuals. The 1. S3 Restore takes a `operation-mm-DD-HH` input (ex `scheduled-06-04-10`), and is required for the backups to be restored. The utility looks in `s3://${bucket}/backups/operation-mm-DD-HH/` for its table dumps, and without supplying the target backups, it will not restore. Once it does a `--data-only` restoration, it will then sync the files from the backups bucket to the application bucket. We do this to ensure the contents of the application bucket are up to date, relative to the data in the database. We know that if we use the latest folder in `/backups/` then the contents of the s3 are the latest available, from the prior backup. ```bash -./fac-restore-util.sh v0.1.3 s3_restore scheduled-06-04-10 +./fac-restore-util.sh v0.1.5 s3_restore scheduled-06-04-10 # Curl the utility # Install AWS # DB to S3 table dump (backups -> fac-db) [Truncate target table before --data-only pg_restore] @@ -81,7 +81,7 @@ daily-mm-dd 2. Database to database restoration also can occur as well, using `psql` to dump the tables from the cold store database to the live database. ```bash -./fac-restore-util.sh v0.1.3 db_restore +./fac-restore-util.sh v0.1.5 db_restore # Curl the utility # Install AWS # DB to DB table dump (fac-snapshot-db -> fac-db) [Truncate target table before dump]