Skip to content
Snippets Groups Projects
Commit 998e7e12 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

FIX sqlite

parent ed850387
No related branches found
No related tags found
1 merge request!101Desktop notification
......@@ -60,17 +60,9 @@ function doSqliteBackup(){
# echo -n " to $TARGET "
sqlite3 "$DATABASE_FILE" .dump >"${TARGET}"
fetchrc >/dev/null
db._compressDumpfile "${TARGET}"
# $myrc is last returncode - set in fetchrc
if [ $myrc -eq 0 ]; then
echo -n "gzip ... "
compress_file "${TARGET}"
echo "$DATABASE_FILE" >"${META}"
# else
# echo "ERROR occured - no gzip"
fi
ls -l ${TARGET}*
db._compressDumpfile "${TARGET}" && echo "$DATABASE_FILE" >"${META}"
ls -l ${TARGET}*
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment