Skip to content
Snippets Groups Projects

add lines with prefix __DB__

Merged Hahn Axel (hahn) requested to merge update-localdump-to-classlike-functions into master
8 files
+ 106
71
Compare changes
  • Side-by-side
  • Inline

Files

+ 12
10
@@ -11,6 +11,7 @@
@@ -11,6 +11,7 @@
# 2017-03-24 ah,ds v0.9 backup
# 2017-03-24 ah,ds v0.9 backup
# 2017-03-27 ..... v1.0 restore
# 2017-03-27 ..... v1.0 restore
# 2022-01-20 v1.1 fixes with shellcheck
# 2022-01-20 v1.1 fixes with shellcheck
 
# 2022-03-17 v1.2 WIP: add lines with prefix __DB__
# ================================================================================
# ================================================================================
if [ -z "$BACKUP_TARGETDIR" ]; then
if [ -z "$BACKUP_TARGETDIR" ]; then
@@ -146,16 +147,17 @@ function _doBackupOfSingleInstance(){
@@ -146,16 +147,17 @@ function _doBackupOfSingleInstance(){
python ${dirPythonPackages}/couchdb/tools/dump.py "${COUCHDB_URL}/${dbname}" >"${OUTFILE}"
python ${dirPythonPackages}/couchdb/tools/dump.py "${COUCHDB_URL}/${dbname}" >"${OUTFILE}"
fetchrc
fetchrc
 
db._compressDumpfile "${OUTFILE}"
# $myrc is last returncode - set in fetchrc
# $myrc is last returncode - set in fetchrc
if [ $myrc -eq 0 ]; then
# if [ $myrc -eq 0 ]; then
echo -n "gzip ... "
# echo -n "gzip ... "
compress_file "$OUTFILE"
# compress_file "$OUTFILE"
else
# else
echo "ERROR occured - no gzip"
# echo "ERROR occured - no gzip"
fi
# fi
ls -l "$OUTFILE"*
# ls -l "$OUTFILE"*
echo
# echo
done
done
}
}
@@ -268,10 +270,10 @@ if [ $rc -eq 0 ]; then
@@ -268,10 +270,10 @@ if [ $rc -eq 0 ]; then
else
else
rc=0
rc=0
echo "SKIP: couchdb seems not to be here"
echo "__DB__$SERVICENAME SKIP: couchdb seems not to be here"
fi
fi
echo "$0 $* [couchdb] final returncode rc=$rc"
echo "__DB__$SERVICENAME INFO: $0 $* [couchdb] final returncode rc=$rc"
# --------------------------------------------------------------------------------
# --------------------------------------------------------------------------------
Loading