blob: e121a54b6c35144755e6d5b469d3690791ffb452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package options
type InputOptions struct {
Objcheck bool `long:"objcheck" description:"Validate object before inserting (default)"`
NoObjcheck bool `long:"noobjcheck" description:"Don't validate object before inserting"`
OplogReplay bool `long:"oplogReplay" description:"Replay oplog for point-in-time restore"`
OplogLimit string `long:"oplogLimit" description:"Include oplog entries before the provided Timestamp (seconds[:ordinal])"`
RestoreDBUsersAndRoles bool `long:"restoreDbUsersAndRoles" description:"Restore user and role definitions for the given database"`
Directory string `long:"dir" description:"alternative flag for entering the dump directory"`
}
func (self *InputOptions) Name() string {
return "input"
}
type OutputOptions struct {
Drop bool `long:"drop" description:"Drop each collection before import"`
WriteConcern int `long:"w" description:"Minimum number of replicas per write"`
NoIndexRestore bool `long:"noIndexRestore" description:"Don't restore indexes"`
NoOptionsRestore bool `long:"noOptionsRestore" description:"Don't restore options"`
KeepIndexVersion bool `long:"keepIndexVersion" description:"Don't update index version"`
JobThreads int `long:"jobThreads" short:"j" description:"TODO"`
}
func (self *OutputOptions) Name() string {
return "restore"
}
|