Always backup mailcow.conf

master
Maxim Baz 2018-07-29 14:27:51 +02:00
parent ed9fae075b
commit ca18ebdb42
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ function backup() {
DATE=$(date +"%Y-%m-%d-%H-%M-%S")
mkdir -p "${BACKUP_LOCATION}/mailcow-${DATE}"
chmod 755 "${BACKUP_LOCATION}/mailcow-${DATE}"
cp "${SCRIPT_DIR}/../mailcow.conf" "${BACKUP_LOCATION}/mailcow-${DATE}"
while (( "$#" )); do
case "$1" in
vmail|all)