Update README.md

This commit is contained in:
Dave Conroy
2020-04-22 05:36:03 -07:00
parent f8bab5f045
commit 6113bf64b2
2 changed files with 5 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ $ cat post-script.sh
## $7=FILESIZE (Filesize of backup) ## $7=FILESIZE (Filesize of backup)
## $8=MD5_RESULT (MD5Sum if enabled) ## $8=MD5_RESULT (MD5Sum if enabled)
echo "${1} Backup Completed on ${2} for ${3} on ${4} ${5}. Filename: ${5} Size: ${6} MD5: ${7}" echo "${1} Backup Completed on ${2} for ${3} on ${4} ${5}. Filename: ${6} Size: ${7} bytes MD5: ${8}"
```` ````
Outputs the following on the console: Outputs the following on the console:

View File

@@ -12,6 +12,8 @@ fi
### Sanity Test ### Sanity Test
sanity_var DB_TYPE "Database Type" sanity_var DB_TYPE "Database Type"
sanity_var DB_HOST "Database Host" sanity_var DB_HOST "Database Host"
file_env 'DB_USER'
file_env 'DB_PASS'
### Set Defaults ### Set Defaults
COMPRESSION=${COMPRESSION:-GZ} COMPRESSION=${COMPRESSION:-GZ}
@@ -25,9 +27,9 @@ DBPASS=${DB_PASS}
DBUSER=${DB_USER} DBUSER=${DB_USER}
DBTYPE=${DB_TYPE} DBTYPE=${DB_TYPE}
MD5=${MD5:-TRUE} MD5=${MD5:-TRUE}
SIZE_VALUE=${SIZE_VALUE:-"bytes"}
SPLIT_DB=${SPLIT_DB:-FALSE} SPLIT_DB=${SPLIT_DB:-FALSE}
TMPDIR=/tmp/backups TMPDIR=/tmp/backups
SIZE_VALUE=${SIZE_VALUE:-"bytes"}
if [ "$1" = "NOW" ]; then if [ "$1" = "NOW" ]; then
DB_DUMP_BEGIN=+0 DB_DUMP_BEGIN=+0