Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Add default shell script options
Browse files Browse the repository at this point in the history
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
  • Loading branch information
aloftus23 and dav3r committed Jun 28, 2022
1 parent c9f6dc1 commit b4d5731
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pe_reports/pe_db/pg_backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail

# Set path to save backup files
path=$PWD
backup_folder=$path/backups_$(date +%m-%d-%Y)
Expand Down
4 changes: 4 additions & 0 deletions src/pe_reports/pe_db/pg_restore.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail

# Set path to pg dump and globals backup files. ex: /Users/user/Desktop/backups
path=$PWD

Expand Down

0 comments on commit b4d5731

Please sign in to comment.