Skip to content

Commit 6113bf6

Browse files
committed
Update README.md
1 parent f8bab5f commit 6113bf6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ $ cat post-script.sh
137137
## $7=FILESIZE (Filesize of backup)
138138
## $8=MD5_RESULT (MD5Sum if enabled)
139139

140-
echo "${1} Backup Completed on ${2} for ${3} on ${4} ${5}. Filename: ${5} Size: ${6} MD5: ${7}"
140+
echo "${1} Backup Completed on ${2} for ${3} on ${4} ${5}. Filename: ${6} Size: ${7} bytes MD5: ${8}"
141141
````
142142
Outputs the following on the console:
143143

144144
`mysql Backup Completed on example-db for example on 2020-04-22 05:19:10. Filename: mysql_example_example-db_20200422-051910.sql.bz2 Size: 7795 bytes MD5: 952fbaafa30437494fdf3989a662cd40`
145145

146-
If you wish to change the size value from bytes to megabytes set environment variable `SIZE_VALUE=megabytes`
146+
If you wish to change the size value from bytes to megabytes set environment variable `SIZE_VALUE=megabytes`

install/etc/s6/services/10-db-backup/run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fi
1212
### Sanity Test
1313
sanity_var DB_TYPE "Database Type"
1414
sanity_var DB_HOST "Database Host"
15+
file_env 'DB_USER'
16+
file_env 'DB_PASS'
1517

1618
### Set Defaults
1719
COMPRESSION=${COMPRESSION:-GZ}
@@ -25,9 +27,9 @@ DBPASS=${DB_PASS}
2527
DBUSER=${DB_USER}
2628
DBTYPE=${DB_TYPE}
2729
MD5=${MD5:-TRUE}
30+
SIZE_VALUE=${SIZE_VALUE:-"bytes"}
2831
SPLIT_DB=${SPLIT_DB:-FALSE}
2932
TMPDIR=/tmp/backups
30-
SIZE_VALUE=${SIZE_VALUE:-"bytes"}
3133

3234
if [ "$1" = "NOW" ]; then
3335
DB_DUMP_BEGIN=+0

0 commit comments

Comments
 (0)