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