Skip to content

Commit

Permalink
Version bump to v0.1.5 (#4017)
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Jun 25, 2024
1 parent e00d9db commit d5e305b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fac-backup-scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

4 changes: 2 additions & 2 deletions .github/workflows/fac-backup-util-scheduled.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fac-backup-util.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
10 changes: 5 additions & 5 deletions docs/backups_and_restores.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit d5e305b

Please sign in to comment.