From d64ae7a59490d737be9e232b10b94f3f00bfd521 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Nov 2016 20:22:11 +0000 Subject: [PATCH] not --- src/freedombone-utils-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-backup b/src/freedombone-utils-backup index 60c7b257..485ca4c7 100755 --- a/src/freedombone-utils-backup +++ b/src/freedombone-utils-backup @@ -208,7 +208,7 @@ function backup_database_local { fi echo $"Obtaining ${1} database backup" mysqldump --lock-tables --password="$DATABASE_PASSWORD" ${1} > ${local_database_dir}/${1}.sql - if [ -f ${local_database_dir}/${1}.sql ]; then + if [ ! -f ${local_database_dir}/${1}.sql ]; then if [ ! -s ${local_database_dir}/${1}.sql ]; then echo $"${1} database could not be saved" shred -zu ${local_database_dir}/*