annotate scripts/backup-container.sh @ 385:08c801c162f9
flow: Merged <release> 'v2.12.0' to <develop> ('default').
author |
Marc Davis <davis@ssdt-ohio.org> |
date |
Tue, 14 Sep 2021 09:43:21 -0400 |
parents |
2cb1093f9aef |
children |
|
rev |
line source |
54
|
1 #!/bin/bash
|
159
|
2 # Executes a database backup for the specifed database container.
|
|
3 # The current directory is expected to contaion a project configured
|
|
4 # as with SSDT conventions for an application database.
|
|
5 #
|
|
6 # When successful, the output file will be in ./backup with the
|
|
7 # container name and timestamp in the file. The format of the output
|
|
8 # is a compressed pg_dump (sql) format.
|
|
9 #
|
|
10 container=${1?Must provide container name to backup}
|
|
11
|
188
|
12 projectDir=${2:-$PWD}
|
|
13
|
|
14 cd $projectDir
|
|
15
|
159
|