You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qdrant-backup-restore/k8s/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,7 @@ Update the following environment varibles in your copy of `backup-cronjob.yaml`
120
120
5. `CURL_TIMEOUT` is set at `3000` seconds. This is the max time curl will waitforrequest to complete. Its increasedin scenarios where backup takes a while.
121
121
6. `QDRANT_S3_LINK_EXPIRY_DURATION` is set at `3600`. This is the duration that an s3 presigned url will be active. The url is used during the recovery process.
122
122
7. `QDRANT_WAIT_ON_TASK` is set as `true`. This configuation make backup process synchronous meaning 'wait for snapshot process to finish successfully before moving on'. Its used during backup and recovery.
123
+
8. `BACKUP_COLLECTION_ALIASES_ON_S3` is set as `false`. This configuration is used to toggle backup of collection aliases to S3. The collection_aliases are versioned by the timestamp.
123
124
124
125
Deploy the job!
125
126
@@ -148,6 +149,8 @@ Update the following environment varibles accordingly;
148
149
7. `QDRANT_WAIT_ON_TASK` is set as `true`. This configuation make restoration process synchronous meaning 'wait for snapshot process to finish successfully before moving on'. Its used during backup and recovery.
149
150
8. `QDRANT_SNAPSHOT_DATETIME_FILTER` is empty. Setting this filters out snapshot/backups belonging to a certain date and time using glob pattern matching. e.g `"2026-01-29"` = all snapshots in 29th January 2026, `2026-01` = all backups in January 2026.
150
151
9. `MC_CONFIG_DIR` is `mc`. This overrides the default storage location ($HOME) formc s3 client configurations. Essentialinset ups that use stricter securityContext configuration like `readOnlyRootFilesystem: true`.
152
+
10. `BACKUP_COLLECTION_ALIASES_ON_S3` is `false`. When this is set to `true` during restoration it will fetch the lastest `collection_alias` from S3.
153
+
11. `QDRANT_COLLECTION_ALIASES_STABLE_FILE` is `collection_aliases`. This configuration is used to override the stable version of collection_aliases file to restore. e.g. `collection_aliases-2026-04-30_18-31-04`. The file has to exist on s3.
# restores collection aliases to a qdrant node and appends progress to $QDRANT_ALIAS_RECOVERY_HISTORY_FILE
552
579
recover_collection_aliases() {
580
+
581
+
if [ "$BACKUP_COLLECTION_ALIASES_ON_S3"="true" ];then
582
+
if mc cp "$QDRANT_S3_ALIAS/$QDRANT_S3_BUCKET_NAME/$QDRANT_COLLECTION_ALIASES_BACKUP_FOLDER/$QDRANT_COLLECTION_ALIASES_STABLE_FILE""$QDRANT_COLLECTION_ALIASES";then
583
+
_printf "collection aliases restored from s3 bucket %s\n""$QDRANT_S3_BUCKET_NAME"
584
+
else
585
+
_printf "failed to restore collection aliases file (%s) from s3 bucket %s\n""$QDRANT_COLLECTION_ALIASES_STABLE_FILE""$QDRANT_S3_BUCKET_NAME"
0 commit comments