hi @Tejas_Sharma !!
All hosted clusters in our cloud have a backup bucket already configured.
This means that, at any time, you can create or restore from your own backups, on top of the automated backups we do from our side.
Those “ad-hoc” backups can be store up to 1 month.
Here is an example code in python v4 client for that, using a real serverless cluster in our cloud:
client.collections.delete("Collection1")
collection = client.collections.create("Collection1")
collection.data.insert({"name": "John"})
collection.data.insert({"name": "Mary"})
print("Collection1 exists?", client.collections.exists("Collection1"))
print("Collection1 total count", collection.aggregate.over_all())
backup_task = client.backup.create(backup_id="super-cool-backup-id", backend="gcs", include_collections=["Collection1"], wait_for_completion=True)
print("Backup task", backup_task)
client.collections.delete("Collection1")
print("Collection1 deleted!")
print("Collection1 exists?", client.collections.exists("Collection1"))
restore_task = client.backup.restore(backup_id="super-cool-backup-id", backend="gcs", include_collections="Collection1", wait_for_completion=True)
print("Collection1 restore task", restore_task)
print("Collection1 exists?", client.collections.exists("Collection1"))
print("Collection1 total count", collection.aggregate.over_all())
I got this as the output:
Collection1 exists? True
Collection1 total count AggregateReturn(properties={}, total_count=2)
Backup task error=None status=<BackupStatus.SUCCESS: 'SUCCESS'> path='gs://weaviate-wcs-prod-cust-us-west3-workloads-backups/69e14018-8f2c-4361-bf79-0953902372b3/super-cool-backup-id' backup_id='super-cool-backup-id' collections=['Collection1']
Collection1 deleted!
Collection1 exists? False
Collection1 restore task error=None status=<BackupStatus.SUCCESS: 'SUCCESS'> path='gs://weaviate-wcs-prod-cust-us-west3-workloads-backups/69e14018-8f2c-4361-bf79-0953902372b3/super-cool-backup-id' backup_id='super-cool-backup-id' collections=['Collection1']
Collection1 exists? True
Collection1 total count AggregateReturn(properties={}, total_count=2)
We do not provide a feature in our console to export your backup.
However, If you ever need a copy of your backups for testing or in case you want take your vectors elsewhere - hope that’s not the case!! - you can always reach out to our super friendly support line at:
Let me know if this answer your questions!
Thanks!