Skip to content

Commit

Permalink
PBM-948 Updated the putputs of describe restore and backup commands (#55
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nastena1606 authored Oct 12, 2022
1 parent 0fbff1e commit e7e41ac
Showing 1 changed file with 41 additions and 35 deletions.
76 changes: 41 additions & 35 deletions docs/reference/pbm-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Provides the detailed information about a backup:
- size
- error message for failed backup
- last write timestamp
- last write time - human-readable indication of the last write
- last transition time - the timestamp when a backup changed its status
- cluster information: the replica set name, the backup status on this replica set, whether it is used as a config server replica set, last write timestamp
- replica set info: name, backup status, last write timestamp and last transition time, `mongod` security options, if encryption is configured.
Expand All @@ -169,30 +170,31 @@ pbm describe-backup [<backup-name>] [<flags>]

```json
{
"name": "2022-08-17T10:49:03Z",
"type": "logical",
"last_write_ts": 1662047326,17
"last_transition_ts": "1662047337"
},
"namespaces": [
"flight.*"
],
"mongodb_version": "5.0.10-9",
"pbm_version": "2.0.0",
"status": "done",
"size": 10234670,
"error": "",
"replsets": [
{
"name": "rs1",
"status": "done",
"iscs": false,
"last_write_ts": 1662047326,17
"last_transition_ts": "1662047337"
},
"error": ""
}
]
"name": "<backup_name>",
"opid": "<string>",
"type": "logical",
"last_write_ts": Timestamp,
"last_transition_ts": Timestamp,
"last_write_time": "2022-09-30T14:02:49Z",
"last_transition_time": "2022-09-30T14:02:54Z",
"namespaces": [
"flight.booking"
],
"mongodb_version": "<version>",
"pbm_version": "<version>",
"status": "done",
"size": 470805945,
"size_h": "449.0 MiB",
"replsets": [
{
"name": "<name>",
"status": "done",
"last_write_ts": Timestamp,
"last_transition_ts": Timestamp,
"last_write_time": "2022-09-30T14:02:49Z",
"last_transition_time": "2022-09-30T14:02:53Z"
}
]
}
```

Expand Down Expand Up @@ -343,6 +345,7 @@ The command accepts the following flags:
## pbm describe-restore

Shows the detailed information about the restore.

The command has the following syntax:

```sh
Expand All @@ -361,33 +364,34 @@ The command accepts the following flags:
```json
{
"name": "<restore_name>",
"opid": "string",
"backup": "<backup_name>",
"restore_to": Timestamp
"type": "logical",
"status": "done",
"ts_to_restore": Timestamp,
"time_to_restore": "Time",
"namespaces": [
"<database.*>"
]
"replsets": [
{
"name": "rs1",
"status": "done",
"last_transition_time": "Timestamp"
"last_transition_ts": Timestamp,
"last_transition_time": "Time"
},
{
"name": "rs0",
"status": "done",
"last_transition_time": "Timestamp"
"last_transition_ts": Timestamp,
"last_transition_time": "Time"
},
{
"name": "cfg",
"status": "done",
"last_transition_time": "Timestamp"
"last_transition_ts": Timestamp,
"last_transition_time": "Time"
}
],
"opid": "62fa3d7460d0d259449f7061",
"start": "Timestamp",
"last_transition_time": "Timestamp"
}
```

Expand All @@ -396,26 +400,28 @@ The command accepts the following flags:
```json
{
"name": "<restore_name>",
"opid": "string",
"backup": "<backup_name>",
"type": "physical",
"status": "done",
"last_transition_ts": Timestamp,
"last_transition_time": "Time",
"replsets": [
{
"name": "rs1",
"status": "done",
"last_transition_ts": Timestamp,
"last_transition_time": "Timestamp",
"nodes": [
{
"name": "IP:port",
"status": "done",
"last_transition_ts": Timestamp,
"last_transition_time": "Timestamp"
}
]
}
],
"opid": "62fa2aaf6e8356a773a0a357",
"start": "Timestamp",
"last_transition_time": "Timestamp"
}
```

Expand Down

0 comments on commit e7e41ac

Please sign in to comment.