Hi @Davuluri, Veera
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
We understand that you want to copy the contents from a Production CDN to an Acceptance CDN to synchronize them.
- The exact method for copying content depends heavily on your CDN provider. Each provider has its own API, tools, and workflows for managing content.
- Are you dealing with just static files, or do you have dynamic content generated on the backend? Static content is easier to copy directly between CDNs. Dynamic content might require a more complex approach involving database synchronization.
- After copying content, you'll need to invalidate the caches on the Acceptance CDN. This forces the CDN to fetch the new content from the origin servers.
- It's important to have a mechanism to revert to the previous state if something goes wrong during the synchronization process. Consider versioning the content at the origin.
Use CDN provider tools for copying content:
- Most CDN providers have APIs that allow you to programmatically manage content. You can write a script that uses the Production CDN's API to list the files and then uses the Acceptance CDN's API to upload those files.
- Some CDNs have web-based control panels that allow you to manually upload files or even set up mirroring between different environments or zones. However, this is generally not scalable for large numbers of files.
- Many CDN providers offer command-line interface (CLI) tools that can be used to script content management tasks
- Determine the specific CDN provider for both your Production and Acceptance environments.
- Read the documentation for your CDN provider to understand their API, CLI, or web interface options for content management.
- Integrate the synchronization process into your deployment pipeline or schedule it to run at regular intervals using tools like cron jobs.
- Monitor the synchronization process for errors and ensure that content is being copied and cached correctly.
Kindly let us know if the above helps or you need further assistance on this issue.
Thanks,
Sai.