From 4c2400923fae48069680c1cae0612e8049897e1b Mon Sep 17 00:00:00 2001 From: James Skarzinskas Date: Mon, 8 Feb 2021 15:00:52 -0500 Subject: [PATCH] Update backup.sh --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index e85f3e6..2c19f8f 100644 --- a/backup.sh +++ b/backup.sh @@ -53,12 +53,13 @@ if [ "$INPUT_TYPE" = "db" ]; then if [ "$INPUT_DB_TYPE" = "mysql" ]; then FILENAME=$INPUT_DB_TYPE-$INPUT_DB_NAME.$THEDATE.sql + OUTPUT_ZIP=$FILENAME.zip INPUT_DB_PORT="${INPUT_DB_PORT:-3306}" if [ ! -z "$INPUT_DB_PASS" ] && [ "$INPUT_DB_PASS" != "" ]; then INPUT_PASS="-p'$INPUT_DB_PASS'" fi - INPUT_SCRIPT="mysqldump -q -u $INPUT_DB_USER -P $INPUT_DB_PORT $INPUT_PASS $INPUT_ARGS $INPUT_DB_NAME > $FILENAME && zip --password $INPUT_ZIP_PASSWORD $FILENAME.zip $FILENAME" + INPUT_SCRIPT="mysqldump -q -u $INPUT_DB_USER -P $INPUT_DB_PORT $INPUT_PASS $INPUT_ARGS $INPUT_DB_NAME > $FILENAME && zip --password $INPUT_ZIP_PASSWORD $OUTPUT_ZIP $FILENAME" fi if [ "$INPUT_DB_TYPE" = "mongo" ]; then