automongobackup icon indicating copy to clipboard operation
automongobackup copied to clipboard

Running the bash script with does not start backups.

Open kollisaisriharsha opened this issue 6 years ago • 3 comments

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Server type and version:
  • Operating System and version:

OS: Ubuntu 16.04 Mongo version 3.4

ISSUE: Started running the bash script providing the hostname, port, user, password and auth database but it just creates an empty log file, empty folders in the location. But it does not start any backup or doesn't write any logs can anyone please help me here.

kollisaisriharsha avatar May 15 '18 14:05 kollisaisriharsha

Try to set:

# You need this in single mode
REPLICAONSLAVE="no"
OPLOG="no"

That fixed it for me.

jochumdev avatar Sep 30 '18 23:09 jochumdev

Thank you @pcdummy that worked perfect. I would say this should be the default behaviour in the commited file. I would submit a pull request but it doesn't look like the owner is responding as there is an active pull request from 2016...

marcusorjames avatar Jan 09 '19 10:01 marcusorjames

I think this is because of set -e and some consequences of https://mywiki.wooledge.org/BashFAQ/105

CherryDT avatar Jan 25 '20 13:01 CherryDT