Skip to content

Commit d091eea

Browse files
Implement backup command (serverless index backups / restore jobs) (#62)
## Problem Backups and restore jobs for serverless indexes have been supported in the `go-pinecone` SDK for a while, but they haven't been brought to the CLI. ## Solution - Implement backup command: create, list, describe, delete. - Implement backup restore command: list, describe - backup restore supports restoring indexes from backups as well. - Add unit tests for `backup` and `restore` commands. - Update `--json` flags to support shorthand `-j` across all commands. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan CI - unit & integration tests There were new unit tests added for the backup commands. I've also tested the flow of index -> backup -> restore job -> index manually. ```bash pc backup create --index-name my-index --name my-index-backup --description "backup of my-index" # list all backups for a project pc backup list # list backups for a specific index pc backup list --index-name my-index # describe backup and restore an index from that backup pc backup describe --id backup-id-123-456 pc backup restore --id backup-id-123-456 --name my-index-restored # list restore jobs pc backup restore list ``` --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1210811533821769
1 parent 254adb4 commit d091eea

File tree

516 files changed

+1420
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

516 files changed

+1420
-32
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1 03c99cf2b4cd5c80176d48862ac8e778a66fb2f5ba5c2f9deb920f8339c6b596 2a8f48266965c015b274663f152b61367ae99e8fa83a317ebbfe89a9e9a16c7b 2208 1766168468473261000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1 04fde55a95d92032e8b20874c1348de00366cb27e8e7bb8cc38842f45c28c994 f697dabedfa22182398d23272a2bf9485576acebe1cfcc5cd4539e6692398da1 2289 1766168468595799000
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1 05c56dbf57aff1b128aa2c6bc9bf6505a8e0983ba390158bfad8f76e886f2e66 cba8299cdf2f6ff3b103e62d171dc191a580890d7c9194fcc80f44a340cc2e39 783 1766168468581948000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1 05f2bbd1a4560ddb99260e95cdf779524f451295bfb1f55c8e44d9a8a5bcd60d 8a62f5abd8123158278fa41ea9d247595d866f609b87e7fcc6a91f6630a2ee5f 3048 1766168468590262000

0 commit comments

Comments
 (0)