from pinecone import Pineconepc = Pinecone(api_key="YOUR_API_KEY")backup = pc.create_backup( index_name="docs-example", backup_name="example-backup", description="Monthly backup of production index")print(backup)
The example returns a response like the following:
Up to 100 backups are returned at a time by default, in sorted order (bitwise “C” collation). If the limit parameter is set, up to that number of backups are returned instead. Whenever there are additional backups to return, the response also includes a pagination_token that you can use to get the next batch of backups. When the response does not include a pagination_token, there are no more backups to return.
Copy
from pinecone import Pineconepc = Pinecone(api_key="YOUR_API_KEY")index_backups = pc.list_backups(index_name="docs-example")print(index_backups)
The example returns a response like the following:
Up to 100 backups are returned at a time by default, in sorted order (bitwise “C” collation). If the limit parameter is set, up to that number of backups are returned instead. Whenever there are additional backups to return, the response also includes a pagination_token that you can use to get the next batch of backups. When the response does not include a pagination_token, there are no more backups to return.
Copy
from pinecone import Pineconepc = Pinecone(api_key="YOUR_API_KEY")project_backups = pc.list_backups()print(project_backups)
The example returns a response like the following: