Use on-demand sandbox cloning to create exact replicas of existing sandboxes in minutes, not hours. It helps teams move faster while reducing risk by providing fully isolated environments for development, testing, and operational workflows.
With a single API call, provision a fully isolated replica of your sandbox that includes your database, application code, platform configurations, and all configured feature toggles.
To maintain a consistent and reliable clone, the source sandbox is automatically placed in a protected Stopped state during the cloning process. This safeguard guarantees data integrity and configuration consistency. Once cloning is complete, the source sandbox resumes normal operation.
Each cloned sandbox is fully isolated, with dedicated compute, storage, and database resources.
Typical use cases include:
Reproducing production bugs safely without impacting live systems
Validating disaster recovery plans in isolated replicas
Spinning up development or test environments for teams quickly
Validating upgrades and configuration changes before deployment
Testing feature or performance changes before deployment
Supporting CI/CD pipelines with on-demand test environments
Providing realistic training or experimentation environments
Optimizing costs by cloning sandboxes only when needed
What Is Included in a Clone
A sandbox clone includes:
Database schema and data
Custom code and cartridges
Storefront, site data, and configurations
Catalogs and pricebooks
Orders and content data
Feature toggles
Maintenance pages
Standard platform configuration files
What Is Not Included
The following data is excluded to protect security, privacy, and tenant integrity:
Logs and jobs history
Customer PII and GDPR-related data
Analytics data
Geolocation data
Order activity
Exchange rate data
Change logs
Tenant-specific configurations
Sensitive data is either omitted or transformed to ensure compliance with platform security and privacy requirements.
How Sandbox Cloning Works
The cloning process includes six detailed steps grouped into four main progress stages:
Prep Instance
Validation: Checks the source sandbox status, permissions, and resource availability.
Data Backup
Backup Creation: Creates a consistent snapshot of the source database, sharedata and configurations.
Data Restore
Target Provisioning: Allocates compute, storage, and network resources for the new sandbox.
Data Restoration: Copies database tables, indexes, and files to the cloned environment.
Configuration Transformation: Updates system files and credentials to ensure independence.
Post Validation
Activation: Validates sandbox health, tests connectivity, and makes the clone available.
Total duration is typically 10–30 minutes, depending on sandbox size and data volume.
Prerequisites
To clone sandboxes, you need:
Account Requirements
Sandbox API User role assigned in B2C Commerce Account Manager with realm/tenant-level access.
Source Sandbox Requirements
Source sandbox must be in Running or Stopped state
Sandbox cloning is available through the B2C Commerce On-Demand Sandbox REST API. Use the clone API to programmatically create and manage sandbox clones, giving developers and admins full control over provisioning and monitoring of the clones.
Monitor the progress of a clone operation using the clone ID and source sandbox ID. This can also be used to retrieve details for a specific cloned sandbox.
After cloning completes, you must manually update (if any):
Custom tenant-specific configurations
Hard-coded URLs in custom cartridges or scripts
Third-party service URLs and API endpoints
Keystore references and certificates tied to the source sandbox
Custom jobs or schedules that reference the source instance
Best Practices
Choose Appropriate Resource Profiles
Select the profile that meets your requirements. For cloning, the target profile should be the same size or larger than the source sandbox profile.
Review Custom Configurations
After cloning completes, test all integrations and custom configurations. Update third-party endpoints, keystores, and Business Manager customizations that reference the source sandbox.
Manage Cloned Sandboxes
Delete cloned sandboxes when no longer needed to reduce credit consumption.
Plan Clone Operations
Where feasible, execute large clone operations during times when sandbox usage is low.
Save Your Work
During the clone process, the source sandbox will be stopped. Make sure to save any open work before triggering the clone operation.
Monitor Clone Progress
Monitor the progress of a clone using the Monitor Clone Progress API. Poll the API every 30–60 seconds to check status, but avoid excessive polling, which may trigger rate limits.
Set Time-to-Live Values
Configure the ttl parameter to automatically clean up temporary clones and avoid consuming unnecessary credits.
Sandbox Cloning FAQ
Q. What state must the source sandbox be in to perform a clone? A. The source sandbox must be in an Enabled state, either Running or Stopped, to be successfully cloned.
Q. What happens to the source sandbox during cloning? A. It becomes temporarily unavailable and is placed in a Stopped state to protect data integrity.
Q. Can multiple clone operations run from the same source sandbox at the same time? A. No. Only one clone can run per source sandbox at a time, however different source sandboxes can be cloned simultaneously.
Q. Where is the cloned sandbox created? A. It’s created in the same realm as the source sandbox.
Q. Are platform configuration files updated automatically during cloning? A. Standard platform configurations are updated automatically. Custom configurations must be reviewed manually.
Q. Are tenant-specific configurations and customizations updated automatically? A. No. Tenant-specific configurations, custom keystores, certificates, and Business Manager customizations aren’t updated automatically.
Q. Can a clone operation be paused or resumed? A. No. Once started, a clone operation can’t be paused or resumed.
Q. How long does cloning usually take? A. It typically takes 10–30 minutes. In rare cases, it may take up to 60 minutes. If it exceeds 60 minutes, the process fails and the source sandbox is restored.
Q. Are there any credit requirements for cloning? A. Yes. A sufficient credit balance is required for both the clone operation and the target sandbox uptime.
Q. What happens to feature toggles during cloning? A. Any manually set or customized feature toggles are copied to the cloned sandbox.
Q. What is the default minimum TTL (Time To Live) for a cloned sandbox? A. The minimum TTL is 24 hours to avoid accidental deletion during setup.
Q. Can I clone a sandbox to a profile lower than the current profile of the source sandbox? A. No. The cloned sandbox can have a profile that is the same as or higher than the source sandbox’s profile, but not lower.
Q. What happens if I accidentally delete the source sandbox after successfully creating the clone? A. Once the clone sandbox is successfully created, it operates as an independent sandbox. Deleting the source sandbox will have no impact on the cloned sandbox.
Q. What happens if I don’t include the emails attribute when calling the Create Clone API? A. If you don’t explicitly provide the emails attribute, the cloned sandbox won’t inherit or copy the email settings from the source sandbox by default.