Hi Khushaal Kurswani •,
Welcome to Micrsoft Q&A forum.
As I understand, you want to merge original Cosmos DB data with the restored data from continuous backup.
You could do so using Azure Data Factory.
Create Linked Service to both the main and restored Cosmos DB Account.
Create Data Pipeline using Data Flow transformations needed as per your requirement to filter records to avoid overwriting.
Set up incremental load handle changes and avoid re-copying existing records.
Helpful reference links:
https://learn.microsoft.com/en-us/azure/data-factory/connector-azure-cosmos-db?tabs=data-factory
https://learn.microsoft.com/en-us/azure/data-factory/tutorial-incremental-copy-overview
https://www.youtube.com/watch?v=q6eqH22SGBE
You may try to create your own custom function and achieve this task.
Let us know if you have further queries in this or while implementation of ADF pipeline.
Thanks