Unique name for restore operation

Description

Restore commands returns only snapshot field. It's not enough as unique identifier.
We are checking status of restore operation by command:

pbm list --out=json --restore

There we can see list of restores. But one snapshot can be used for many restores.

There is field "name" which seems to be unique. 

I'm suggesting to return also "name" field in case of restore command, so then we can match that restore to restore in list.

Environment

None

Smart Checklist

Activity

andrew.pogrebnoi December 8, 2022 at 10:18 AM

CLI wasn't returning a restore name for PITR restore. Been fixed

andrew.pogrebnoi December 7, 2022 at 11:21 AM

In PBM 2.0.2 PITR restores should have a `name` field as well

Pavel Khripkov October 12, 2022 at 8:42 AM

now we have name field for restores of snapshot, but don't have for PITR restores. Can you fix it? I'm using PBM 2.0

andrew.pogrebnoi January 4, 2022 at 11:19 AM

 actually I forgot that there is a `--full` flag which will show backup's name.

 

$ pbm list --restore --full -o json [{"start":1640782295,"status":"done","type":"snapshot","snapshot":"2021-12-29T12:35:55Z","name":"2021-12-29T12:51:34.141869749Z"}]

Will this do?

 

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created September 15, 2021 at 1:37 PM
Updated March 5, 2024 at 7:01 PM
Resolved December 7, 2022 at 1:46 PM

Flag notifications