Skip to content
Snippets Groups Projects
Commit d976dd9b authored by Bob Mottram's avatar Bob Mottram
Browse files

not

parent d64ae7a5
No related branches found
No related tags found
No related merge requests found
......@@ -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}/*
......@@ -392,7 +392,7 @@ function backup_database_remote {
fi
echo "Obtaining ${1} database backup"
mysqldump --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}/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment