Skip to content

Commit

Permalink
Add check_tables command
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Aug 15, 2024
1 parent b313d60 commit 1d76f05
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/fac-backup-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ RDSToS3Dump() {
RDSToRDS() {
./gov.gsa.fac.cgov-util db_to_db --src_db "$1" --dest_db "$2" --operation "$3"
}
CheckTables() {
./gov.gsa.fac.cgov-util check_tables --source_database "$1"
}

if [ "$run_option" == "initial_backup" ]; then
GetUtil
Expand Down Expand Up @@ -71,4 +74,10 @@ elif [ "$run_option" == "media_sync" ]; then
gonogo "install_aws"
AWSS3Sync "$s3_name" "$backup_s3_name"
gonogo "s3_sync"
elif [ "$run_option" == "check_tables" ]; then
GetUtil
InstallAWS
gonogo "install_aws"
CheckTables "$db_name"
gonogo "check_tables"
fi

0 comments on commit 1d76f05

Please sign in to comment.