From ed850387944b6ec0cdbcb8ef945041a164489580 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 12 Apr 2023 15:24:00 +0200
Subject: [PATCH] FIX: write metafile for restore

---
 plugins/localdump/sqlite.sh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/plugins/localdump/sqlite.sh b/plugins/localdump/sqlite.sh
index 56c1687..4898c49 100755
--- a/plugins/localdump/sqlite.sh
+++ b/plugins/localdump/sqlite.sh
@@ -63,14 +63,14 @@ function doSqliteBackup(){
         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}*
+          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}*
 
       fi
     fi
-- 
GitLab