Commits on Jun 21, 2016
  1. @tomduckering @jalogisch

    Exit if no frequency is set (#45)

    This was causing problems when someone tried to disable our backups.
    
    The expected behaviour (no backups) didn't happen :(
    
    Instead the script just backs up without FILE variable being set which
    causes the mongodump to run into the the CWD which is worse.
    
    Exit with non zero return code seems best as when in a cron we get a
    message to say that it failed. It's probably best to be bugged when
    backsup are not running as it should be an execptional config state.
    tomduckering committed with jalogisch Jun 21, 2016
Commits on Jun 15, 2016
  1. @contiero-roberto @jalogisch
  2. @tomduckering @jalogisch

    Appeasing shellcheck (#43)

    Appeasing spellcheck 
    
    @tomduckering i assume that you have tested it ;)
    tomduckering committed with jalogisch Jun 15, 2016
Commits on May 4, 2016
  1. @jalogisch

    Merge pull request #41 from cprato79/cpt-incrementalbackup

    Update automongobackup.sh
    jalogisch committed May 4, 2016
  2. @cprato79

    Update automongobackup.sh

    - Fixed bugs in select_secondary_member() with authdb enabled
    - Fixed bugs in Compression function by removing the * symbol
    - Added incremental backup feature
    - Added option to select the collections to backup
    cprato79 committed May 4, 2016
Commits on Apr 21, 2016
  1. @pirxpilot @jalogisch

    add support for splitting backup files into chunks (#40)

    * add support for splitting resulting files into chunks
    
    add MAXFILESIZE option that determines the size of the largest file
    generated by backup
    if MAXFILESIZE is not set (default bahavior) automongobackyp is not splitting files
    
    * add write_file function to cleanup code
    
    write file splits the resulting stream into files if MAXFILESIZE is
    defined, or just cats it directly if not
    pirxpilot committed with jalogisch Apr 21, 2016
  2. @pirxpilot @jalogisch

    add execute mode to automongobackup.sh (#39)

    made the script executable by default
    pirxpilot committed with jalogisch Apr 21, 2016
  3. @pirxpilot @jalogisch

    use --quiet mode for mongodump (#38)

    standard mongodump output includes progress bars for each collection and
    adds a lot of noise to the log file
    pirxpilot committed with jalogisch Apr 21, 2016
  4. @sm11963 @jalogisch

    Add exclude collections prarameter (#33)

    Add exclude collections parameter
    sm11963 committed with jalogisch Apr 21, 2016
Commits on Feb 15, 2016
  1. @jalogisch

    Merge pull request #30 from fluential/master

    Fail early on any error - not tested myself but looks good
    jalogisch committed Feb 15, 2016
Commits on Feb 12, 2016
  1. @fluential

    Fail early on any error

    Stop script running if any underlaying command exits with non zero status. You don't want crippled scripts running on your systems, potentially wreaking havoc
    fluential committed Feb 12, 2016
Commits on Oct 14, 2015
  1. @jalogisch

    Merge pull request #29 from david-harrison/monthly_rotation

    Monthly rotation thx @david-harrison
    jalogisch committed Oct 14, 2015
Commits on Sep 17, 2015
  1. @david-harrison
  2. @david-harrison
Commits on Sep 16, 2015
  1. @jalogisch

    Merge pull request #28 from phoolish/require_authdb

    allow $DBUSERNAME without $DBAUTHDB
    jalogisch committed Sep 16, 2015
Commits on Sep 15, 2015
  1. @phoolish
Commits on Sep 10, 2015
  1. @david-harrison

    Initial set of changes to make backup types, retention periods config…

    …urable. Still needs tested.
    david-harrison committed Sep 10, 2015
Commits on Jun 22, 2015
  1. @jalogisch

    Merge pull request #26 from gurix/master

    Added option to backup only a specific database -
    jalogisch committed Jun 22, 2015
  2. @gurix
Commits on Dec 13, 2013
  1. @jalogisch

    Merge pull request #21 from eltimn/patch-1

    Updated help text
    jalogisch committed Dec 12, 2013
Commits on Dec 12, 2013
  1. @eltimn

    Updated help text

    eltimn committed Dec 12, 2013
Commits on Nov 26, 2013
  1. @jalogisch

    Merge pull request #20 from javiermon/master

    add parameter for choosing which database for authentication
    jalogisch committed Nov 26, 2013
Commits on Nov 25, 2013
  1. @javiermon
Commits on Oct 12, 2012
  1. @jalogisch

    Merge pull request #19 from jaramir/master

    Fixed bash syntax for backup rotation
    jalogisch committed Oct 12, 2012
Commits on Sep 7, 2012
  1. Fixed bash syntax for backup rotation

    For filename expansion to happen the pattern should not be quoted
    therefore I removed the quotes around the patterns used for the
    removal of the old daily and weekly backups
    Francesco Gigli committed Sep 7, 2012
Commits on Apr 26, 2012
  1. @jalogisch

    Merge pull request #15 from kmullin/code_cleanup

    cleaned up alot of code
    jalogisch committed Apr 26, 2012
Commits on Apr 25, 2012
  1. @jalogisch

    Merge pull request #16 from kmullin/feature/remove_journal

    as per mongodump manual, --journal only works when doing backups with --...
    jalogisch committed Apr 25, 2012
Commits on Apr 24, 2012
  1. @kmullin

    as per mongodump manual, --journal only works when doing backups with…

    … --dbpath which bypasses mongod, so this code is useless
    kmullin committed Apr 24, 2012
  2. @kmullin

    cleaned up alot of code

    Code cleanup:
    
    * better way to handle EXTERNAL_CONFIG is to just load it if its there
    * date +%N doesnt work on osx and presumably *bsd, use Hour:Minute instead of nanoseconds
    * mkdir -p tests for file existence, so do it once and exit out because it cant create them
    * sed -i doesnt work on osx and presumably *bsd the way it does in linux, workaround by detecting
    * connect to the actual mongo host specified when trying to detect secondaries
    * fixed compression() to be a bit cleaner, and not 'cd' into a dir without going back to prev
    * more indentation issues in the backup part (whitespace)
    * BACKUPS: all backups did the same thing but just used a different file, so I simplified this with a 'variable'
    * sed could be run before the if statement eliminating duplicates
    
    New Stuff:
    * created shellout function to have a nice way of exiting if things go wrong (ie. cant create dirs)
    kmullin committed Apr 23, 2012
  3. @jalogisch

    Merge pull request #14 from kmullin/f5314218

    Remove Whitespace and Tabs
    jalogisch committed Apr 23, 2012
  4. @kmullin
Commits on Apr 23, 2012
  1. @kmullin

    more whitespace

    kmullin committed Apr 23, 2012
  2. @kmullin

    removed verbose conditional

    kmullin committed Apr 23, 2012
  3. @kmullin
Commits on Apr 22, 2012
  1. @jalogisch

    Merge pull request #13 from kaiinkinen/master

    Support both debian and centos/redhat type config out-of-the-box
    jalogisch committed Apr 22, 2012