diff --git a/plugins/localdump/couchdb2.sh b/plugins/localdump/couchdb2.sh index bd6f70e75b83fc0e1f0efaeb38fd68d404e8d047..169133975662dda3aebd1897216ae83114e4540a 100755 --- a/plugins/localdump/couchdb2.sh +++ b/plugins/localdump/couchdb2.sh @@ -17,6 +17,7 @@ # delete DB before create request # 2022-01-20 v1.3 fixes with shellcheck # 2022-03-17 v1.4 WIP: add lines with prefix __DB__ +# 2022-04-07 v1.5 check archive file, not only seq file # ================================================================================ if [ -z "$BACKUP_TARGETDIR" ]; then @@ -195,7 +196,7 @@ function _doBackupOfSingleInstance(){ # echo # echo "update_seq --+-- current [${sSequenceCurrent}]" # echo " +-- backup [${sSequenceLast}]" - if [ "${sSequenceCurrent}" = "${sSequenceLast}" ]; then + if [ "${sSequenceCurrent}" = "${sSequenceLast}" ] && [ -f "$ARCHIVFILE" ]; then echo SKIP: still on sequence "${sSequenceLast}" else echo