---
schema_version: "1"
id: 7bf32991729b8f8eef2801051e3e7eb5073e314df4e7d963b587ffdfa270cfeb
title: Replication in B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_replication.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_replication.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b2562c49825978d06c95d950c2d7105496f697af557ec566166478b13f1d8043
description: Replication securely copies selected storefront data or a code version from a staging instance to a development or production instance on your Primary Instance Group (PIG). It’s a two-step procedure that first transfers the data or code version, then publishes the data or activates the code version.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Replication in B2C Commerce

Replication securely copies selected storefront data or a code version from a staging instance to a development or production instance on your Primary Instance Group (PIG). It’s a two-step procedure that first transfers the data or code version, then publishes the data or activates the code version.

- **[Replication Processes in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_replication_processes.htm&release=264.0.0&type=5)**  
    A replication process performs a replication or rolls back a previous replication. You can run a replication process manually, or schedule it to run automatically in B2C Commerce.
- **[Replication Best Practices in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c__replication_best_practices.htm&release=264.0.0&type=5)**  
    When defining and running replication processes, follow these recommendations.
- **[Code Replication in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_code_replication.htm&release=264.0.0&type=5)**  
    Code replication transfers a code version from staging to a development or production instance and activates it on the target instance.
- **[Data Replication in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_data_replication.htm&release=264.0.0&type=5)**  
    Data replication copies data, metadata, and files from staging to a development or production instance.
- **[Page Cache and Replication in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_page_cache_replication.htm&release=264.0.0&type=5)**  
    Both code and data replication have page cache implications. Certain replication tasks automatically invalidate and refresh the cache. There are other times where you clear the cache manually.
- **[Troubleshooting Replication in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_troubleshooting_replication.htm&release=264.0.0&type=5)**  
    These tips can help you troubleshoot some common replication issues.