Cloud backup needs to be able to implement its version of initial sync that clones all databases preserving UUIDs, including admin.system.version. However, starting up mongod without data files will itself create the admin.system.version collection with a newly generated UUID. Backup uses the technique below to replace the collection with one preserving the UUID of the backup source.
We need a test to ensure the following will keep working:
- Use listCollections to note the UUID of the existing admin.system.version
- Issue applyOps command: