collection restore for mongodb
This commit is contained in:
parent
264cebd2b1
commit
2fea429d78
1 changed files with 3 additions and 0 deletions
|
@ -161,4 +161,7 @@ def build_restore_command(extract_process, database, dump_filename):
|
||||||
command.extend(('--authenticationDatabase', database['authentication_database']))
|
command.extend(('--authenticationDatabase', database['authentication_database']))
|
||||||
if 'restore_options' in database:
|
if 'restore_options' in database:
|
||||||
command.extend(database['restore_options'].split(' '))
|
command.extend(database['restore_options'].split(' '))
|
||||||
|
if database['schemas']:
|
||||||
|
for schema in database['schemas']:
|
||||||
|
command.extend(('--nsInclude', schema))
|
||||||
return command
|
return command
|
||||||
|
|
Loading…
Reference in a new issue