mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
A DocumentDB snapshot with users, roles and custom indexes could fail to restore into a new cluster. The archive is now restored in two passes: documents and indexes first, then the target's users and roles, so indexes on application collections and on user-created collections in admin survive. A target with no MongoDB backend to receive the archive refuses the restore with InvalidRestoreFault, and a failed restore discards only the cluster it created, checked by resource ID, so a same-named replacement is left alone. Co-authored-by: Andre Kurait <AndreKurait@gmail.com>