Skip to content

Commit

Permalink
Default backup.name to 'default' and use the path that rpms (and one-…
Browse files Browse the repository at this point in the history
…day debs) use as default location. This will avoid permissions issues on the docker image too
  • Loading branch information
timvaillancourt committed Sep 6, 2017
1 parent 054aa7a commit c49da09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mongodb_consistent_backup/Backup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def config(parser):
parser.add_argument("-n", "--backup.name", dest="backup.name", help="Name of the backup set (required)", type=str)
parser.add_argument("-l", "--backup.location", dest="backup.location", help="Base path to store the backup data (required)", type=str)
parser.add_argument("-n", "--backup.name", dest="backup.name", help="Name of the backup set (default: default)", default='default', type=str)
parser.add_argument("-l", "--backup.location", dest="backup.location", help="Base path to store the backup data (default: /var/lib/mongodb-consistent-backup)", default='/var/lib/mongodb-consistent-backup', type=str)
parser.add_argument("-m", "--backup.method", dest="backup.method", help="Method to be used for backup (default: mongodump)", default='mongodump', choices=['mongodump'])
return parser

0 comments on commit c49da09

Please sign in to comment.