How to Export and Import StoreFront Subscription Database on StoreFront 3.6

How to Export and Import StoreFront Subscription Database on StoreFront 3.6

book

Article ID: CTX216295

calendar_today

Updated On:

Description

This article explains how to export and import a StoreFront subscription database on Storefront 3.6.

Background

The previous versions of StoreFront had different commands to export and import a StoreFront subscription database. The previous commands are now obsolete.

The following is the previous StoreFront version commands:
Export-DSStoreSubscriptions –StoreName StoreName –FilePath DataFile
Import-DSStoreSubscriptions –StoreName StoreName –FilePath FilePath


Instructions

Export a StoreFront 3.6 Subscription Database

Complete the following steps to export a StoreFront 3.6 subscription database:

  1. Ensure that the StoreFront console is closed.

  2. Add the Snapin Module using the following command:
    "C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1“

    User-added image

    In case of Windows 2008R2, you might need to enter the below commands as well to import the modules :

    Import-Module Citrix.Storefront.Stores
    Import-Module Citrix.Storefront.SubscriptionsStore

  3. Define a variable for the store that you want to export the subscriptions from:
    $OriginalStore = Get-STFStoreService /Citrix/Store (Replace "/Citrix/Store" with the correct store name)

    User-added image

  4. Export the subscriptions using the following command:
    Export-STFStoreSubscriptions -Store $OriginalStore  -FilePath "$env:userprofile\desktop\export.txt"

    User-added image

Import a StoreFront 3.6 Subscription Database

The database can be imported to the same store or to a different store, as long as the Display Name of the Delivery Controllers match on both stores (Exporting from and Importing to). To verify do the following:
  1. Open the MMC on both StoreFront servers (Exporting from and Importing to).

  2. Navigate to Stores > Select the store > Manage Delivery Controllers and confirm both Stores contain the same Delivery Controller's name and type.

Once verified, use the following commands to import the StoreFront database:

  1. Define a variable for the store you want to import the subscriptions to:
    $NewStore = Get-STFStoreService /Citrix/Store (Replace "/Citrix/Store" with the correct store name)

    User-added image

  2. Import the subscriptions using the following command:
    Import-STFStoreSubscriptions -Store $NewStore  -FilePath "$env:userprofile\desktop\export.txt"

    User-added image

Issue/Introduction

This article explains how to export and import a StoreFront subscription database on Storefront 3.6.