mysql-backup/cleanup-empty-files.sh

25 lines
322 B
Bash
Executable File

#!/usr/bin/env bash
USER="root"
PASSWORD="secretpass"
GZIP_ENABLED="1"
OUTPUT_DIR="./output"
HOSTNAME="127.0.0.1"
USE_PASSWORD="0"
USE_HOSTNAME="0"
# automatically export all variables
set -a
source .env
set +a
if [ "${DEBUG}" -gt "0" ]
then
set -x
fi
find "${OUTPUT_DIR}" -type f -size 0 -exec rm -v {} \;
set +x