329
|
1 #!/bin/bash
|
|
2 # This is similar to the remote backup script except it uses an existing database backup
|
|
3 # MCOECN personnel used the basic script and modified it
|
|
4 # The current directory is expected to contain a project configured
|
|
5 # as with SSDT conventions for an application database.
|
|
6 #
|
|
7 # The file will also be placed on the specified remote target
|
|
8 # The format of the output is a compressed pg_dump (sql) format.
|
332
|
9 # Still needs tweaking
|
334
|
10 #
|
336
|
11 # testing changes additional
|
329
|
12 # This will send both usasdb and uspsdb,
|
|
13 # along with the top level contents of the project directory
|
|
14 #Environment variables can be used for REMOTE_BACKUP_TARGET and REMOTE_USERNAME
|
|
15 remoteTarget=${1:-$REMOTE_BACKUP_TARGET}
|
|
16 userName=${2:-$REMOTE_USERNAME}
|
|