---
schema_version: "1"
id: 53a99e171beb6aaf8bfc2b3d5413a96a15164c7a3732396f6aa93586e9f122de
title: Copy Content into a Shared Library 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_copying_content_into_a_shared_library.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_copying_content_into_a_shared_library.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eff0d17bcad3618025679848067e8f2838c473c39fb49c86685905d37ad41f8f
description: Your site's private content library was created when your site was created. If you want to use this content with multiple sites, you must copy it into a shared library.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Copy Content into a Shared Library in B2C Commerce

Your site's private content library was created when your site was created. If you want to use this content with multiple sites, you must copy it into a shared library.

These instructions use the SiteGenesis application data as an example.

1. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Administration** | **Site Development** | **Site Import & Export**.
2. In the Export section, enter the archive name: sg\_export.
3. In the Data Units To Export section, select:
    - **Sites** | **SiteGenesis** | **Content**
    - **Library Static Resources** | **SiteGenesis**
4. Click **Export**.
5. Watch the status in the Status section. When the export completes, save the resulting file `sg_export.zip` to the desktop.
    1. In the Status section, click the export file's process link.
    2. Scroll down and click the export file's name link.
    3. Save the file to your local system.
    4. Within your .zip file editor, extract the files
        
        You see a content file directory structure.
6. Create the library content .zip file.
    1. Within the `sg_export` directory, create a new directory called _libraries._
    2. Within this directory, create a subdirectory to contain the shared library that you create during the process. Name the directory `SharedLibrary` (for this example).
    3. Within the `sg_export\sites\SiteGenesis\library` directory, copy the `static` subdirectory and the `library.xml` file to the new `sg_export\libraries\SharedLibrary` folder you created previously.
    4. Edit the file `sg_export\libraries\SharedLibrary\library.xml.`
    5. Add an attribute, `library-id="SharedLibrary"` to the top level `<library>` element as follows:
        
        `<library main... library-id="SharedLibrary">`
    6. Save the file.
    7. Delete the sites directory because it's no longer necessary.
    8. Rename the top-level directory from `sg_export` to `SharedLibrary.`
    9. Zip the top-level directory to create a `SharedLibrary.zip.`
7. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Administration** | **Site Development** | **Site Import & Export**. Upload this file and then import it on the same page.
    
    This creates your shared library containing all the same content as the SiteGenesis application.
8. Make sure that you imported your database content and copied your static content:
    1. Select the Apps icon **Site****Adminstrator****Content Libraries.**
        
        You can see a shared library with the same number of assets and folders as the original SiteGenesis library
    2. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **siteGenesis** | **Content** | **Import & Export** | **Manage Content Images**.
    3. Select the **SiteGenesis** private library.
        
        You can see the top level of the file system for the SiteGenesis private library.
    4. To expand the tree, click the expansion icon **+**.
        
        You can see the entire content file set.
    5. Return to the Content Images page and select the **SharedLibrary.**
        
        You can see the same file set as in the private library.