Details
-
Improvement
-
Status: In Progress
-
Medium
-
Resolution: Unresolved
-
None
-
None
-
None
-
3
-
Yes
-
Yes
-
Yes
-
Server Features
Description
User story:
As a user I want to put multiple pbm snapshots in single directory. That will let me to add snapshots to running PITR backup and will simplify CLI opeations. Also that will match current pbm users expectations.
UI/UX:
We need to add new mandatory field `directory` backup creation form.
Acceptance criteria:
- User is able to put multiple snapshots into the single dir
- PBM can read this dir
Out of scope:
Suggested implementation:
- User specifies directory in UI (what validation should be applied to dir name?)
- We add directory name to the artifact model
- We send backup job start request including directory name (I guess we can just reuse `name` parameter for that)
- pmm agent starts backup job
- Once job started pmm angent sends to the pmm server list of arficat files as progress message
- For mongoDB it will be `2022-12-14T15:42:23Z.pbm.json` and `2022-12-14T15:42:23Z/`
- For mySQL right now we are using name as output file name, we can change it to node_name/service_name/etc+timestamp or something else
- pmm server adds files list to artifact model
- For restore pmm server adds directory (we can reuse existing name field) and artifact filenames
- For artifact deletion we remove only files specified in artifact
- Old pmm agents should still work as it was before. So if artifact files list is emty that mean backup was created on old pmm agent and backup name == file name
How to test:
Details:
Attachments
Issue Links
- relates to
-
PMM-11814 Interoperability PBM CLI <--> PMM Backups
-
- Open
-