automongobackup
automongobackup copied to clipboard
Running the bash script with does not start backups.
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.
Try to set:
# You need this in single mode
REPLICAONSLAVE="no"
OPLOG="no"
That fixed it for me.
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...
I think this is because of set -e
and some consequences of https://mywiki.wooledge.org/BashFAQ/105